/* ==========================================================================
   Plataforma Mecânico em Casa - Design System Moderno Automotivo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #070a11;
    --bg-surface: #0e1526;
    --bg-surface-elevated: #141f36;
    --bg-card: rgba(19, 29, 50, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(245, 158, 11, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #f59e0b;        /* Âmbar de Emergência & Ação */
    --primary-hover: #d97706;
    --primary-light: rgba(245, 158, 11, 0.15);
    
    --secondary: #0284c7;      /* Azul Mecânico de Precisão */
    --secondary-hover: #0369a1;
    --secondary-light: rgba(2, 132, 199, 0.15);
    
    --accent-truck: #8b5cf6;   /* Linha Pesada */
    --accent-moto: #ec4899;    /* Motos */
    --accent-car: #06b6d4;     /* Carros */
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    --shadow-blue-glow: 0 0 25px rgba(2, 132, 199, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(14, 21, 38, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.4rem;
    box-shadow: var(--shadow-glow);
}

.brand-logo span.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #fbbf24);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 75%;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    opacity: 0.75;
}

/* Dropdown Menu Flutuante com Glassmorphism e Animação */
.nav-item-dropdown {
    position: relative;
    list-style: none;
}

.nav-item-dropdown:hover .nav-arrow,
.nav-item-dropdown.open .nav-arrow,
.nav-item-dropdown.active .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 280px;
    background: rgba(14, 21, 38, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.1);
    padding: 0.65rem;
    z-index: 1200;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

/* Ponte invisível para o mouse não perder o hover ao descer para o menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown-menu.nav-dropdown-right {
    left: auto;
    right: 0;
    transform: translateY(-10px) scale(0.96);
}

/* Abre no hover, no clique (.open/.active) e no foco */
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu,
.nav-item-dropdown.active .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

.nav-item-dropdown:hover .nav-dropdown-menu.nav-dropdown-right,
.nav-item-dropdown.open .nav-dropdown-menu.nav-dropdown-right,
.nav-item-dropdown.active .nav-dropdown-menu.nav-dropdown-right,
.nav-item-dropdown:focus-within .nav-dropdown-menu.nav-dropdown-right {
    transform: translateY(0) scale(1) !important;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-link:hover {
    background: rgba(245, 158, 11, 0.12);
    color: #fff;
    transform: translateX(4px);
}

.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-dropdown-link:hover .nav-dropdown-icon {
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.25);
}

.nav-dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.2;
}

.nav-dropdown-desc {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    line-height: 1.3;
}

.nav-dropdown-header {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.4rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.4rem 0;
}

/* Cápsula de Perfil da Oficina */
.user-profile-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    background: rgba(20, 31, 54, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    outline: none;
}

.user-profile-capsule:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #000;
}

/* Pílula de Créditos com Animação de Brilho */
.credit-pill-animated {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 30px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: creditPulseGlow 3s infinite ease-in-out;
}

.credit-pill-animated:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

@keyframes creditPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.45); }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #000;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Botão SOS com Radar Pulse e Varrimento de Luz */
.btn-sos {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
    animation: radarPulseSos 2.2s infinite;
}

.btn-sos::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: sweepLight 3.5s infinite;
}

.btn-sos:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    transform: translateY(-2px);
}

@keyframes radarPulseSos {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 4px 15px rgba(239, 68, 68, 0.4); }
    60% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0), 0 4px 20px rgba(239, 68, 68, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 4px 15px rgba(239, 68, 68, 0.4); }
}

@keyframes sweepLight {
    0%, 45% { left: -120%; }
    70%, 100% { left: 180%; }
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-warning {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}


.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-info {
    background: var(--secondary-light);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-car {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-moto {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-truck {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Flash Messages */
.flash-container {
    margin: 1.5rem auto 0;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.alert-info {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #38bdf8;
}

/* Cards & Surface */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.12) 0%, rgba(7, 10, 17, 0) 70%),
                radial-gradient(circle at 90% 40%, rgba(2, 132, 199, 0.08) 0%, rgba(7, 10, 17, 0) 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-title span.accent-text {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-vehicle-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.vehicle-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.vehicle-pill:hover, .vehicle-pill.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Fast SOS Request Card */
.sos-quick-card {
    background: linear-gradient(180deg, rgba(20, 31, 54, 0.9) 0%, rgba(14, 21, 38, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.sos-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sos-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(7, 10, 17, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    background: rgba(7, 10, 17, 0.95);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Feature Item */
.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: var(--primary-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Legal Banner (Blindagem STJ / CDC) */
.legal-banner-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(14, 21, 38, 0.95) 100%);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.legal-banner-icon {
    font-size: 2.2rem;
    color: var(--info);
    flex-shrink: 0;
}

.legal-banner-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #e0f2fe;
}

.legal-banner-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Provider / Mechanic Card */
.provider-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.provider-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.provider-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.provider-rating {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.provider-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
}

.provider-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Opportunity / Lead Card */
.opportunity-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-fast);
}

.opportunity-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.opportunity-client-preview {
    background: rgba(7, 10, 17, 0.6);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Pricing / Credit Plans */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(20, 31, 54, 0.95) 0%, rgba(14, 21, 38, 0.95) 100%);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: "MAIS POPULAR";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.pricing-price span.period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.pricing-features li span.icon-check {
    color: var(--success);
    font-weight: bold;
}

/* Footer */
.footer {
    background: #05080e;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 380px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal-note {
    background: rgba(14, 21, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: justify;
}

/* Separador Vertical Elegante no Menu Desktop */
.nav-separator {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    margin: 0 0.4rem;
    list-style: none;
}

.nav-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-left: 0.25rem;
}

/* Micro-animação na chave do logotipo ao passar o mouse */
.brand-logo:hover .logo-icon {
    animation: wrenchWiggle 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes wrenchWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-18deg) scale(1.08); }
    40% { transform: rotate(14deg) scale(1.08); }
    60% { transform: rotate(-8deg) scale(1.05); }
    80% { transform: rotate(4deg); }
}

/* ==========================================================================
   Responsividade Mobile, Tablet e Gaveta Lateral (Android & iOS)
   Abrange celulares, iPads (Retrato 768-834px e Paisagem 1024-1080px) e Tablets Android
   ========================================================================== */
@media (max-width: 1120px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .nav-links {
        display: none !important;
    }
    .nav-user-capsule-wrap {
        display: none !important; /* Oculta cápsula comprida do topo no mobile e tablets */
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .navbar-container {
        height: 62px;
        padding: 0 1rem;
    }
    .brand-logo {
        font-size: 1.15rem;
        gap: 0.5rem;
    }
    .brand-logo .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .nav-actions .btn {
        display: none !important; /* Oculta botões compridos do topo para foco no hamburger */
    }
    .credit-pill-label {
        display: none !important; /* Exibe apenas '🪙 8' compacto no mobile */
    }
    .credit-pill-animated {
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
    }
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

/* Botão Hamburger Moderno com Micro-Animação Interativa */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: 0.35rem;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle:active {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
    transform: scale(1.05);
}

.mobile-menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Garante que o toque nunca se perca na barra interna */
}

/* Animação do Hamburger virando X quando o menu está aberto */
.mobile-menu-toggle.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--primary);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--primary);
}

/* Fundo Escuro com Blur para o Menu Lateral */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Gaveta Lateral Flutuante com Glassmorphism */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 330px;
    max-width: 88vw;
    background: linear-gradient(180deg, #0e1526 0%, #070a12 100%);
    border-left: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.08);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.15rem;
    flex-shrink: 0;
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

/* Card do Usuário Logado no Topo da Gaveta */
.drawer-user-card {
    background: linear-gradient(135deg, rgba(20, 31, 54, 0.9), rgba(14, 21, 38, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.drawer-user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.drawer-user-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.drawer-user-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.drawer-credit-chip {
    font-size: 0.76rem;
    color: var(--primary);
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Zonas e Seções Separadas na Gaveta */
.drawer-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.5rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.drawer-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
    padding: 0.2rem 0.5rem 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 0.4rem;
}

.drawer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-menu-list li a:hover, .drawer-menu-list li a.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fff;
    transform: translateX(4px);
}

.drawer-menu-list li a.highlight-sos {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171 !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.drawer-highlight-link {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.drawer-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Animação em Cascata (Staggered Entrance) para os Itens da Gaveta */
.mobile-drawer.active .drawer-section {
    animation: drawerSectionSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-drawer.active .drawer-section:nth-child(2) { animation-delay: 0.05s; }
.mobile-drawer.active .drawer-section:nth-child(3) { animation-delay: 0.10s; }
.mobile-drawer.active .drawer-section:nth-child(4) { animation-delay: 0.15s; }
.mobile-drawer.active .drawer-section:nth-child(5) { animation-delay: 0.20s; }

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

.mobile-drawer-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   Mobile Bottom App Bar (Estilo Nativo Android & iOS)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 21, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.mobile-nav-item .mobile-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.mobile-nav-sos {
    position: relative;
    top: -12px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff !important;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
    border: 2px solid var(--bg-dark);
}

.mobile-nav-item.mobile-nav-sos .mobile-icon {
    font-size: 1.4rem;
}

/* ==========================================================================
   PWA Install Banner
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
    max-width: 520px;
    margin: 0 auto;
    background: #141f36;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-glow);
    z-index: 9998;
    animation: slideUpPwa 0.3s ease-out;
}

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

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pwa-banner-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    flex-shrink: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.pwa-banner-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pwa-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 0.3rem;
}

/* ==========================================================================
   Filtros Responsivos do Catálogo de Oficinas (prestadores.php)
   Garante campos empilhados (100% de largura) em telas mobile / celulares
   ========================================================================== */
.catalog-filter-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.catalog-filter-grid .filter-btn-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .catalog-filter-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }
    .catalog-filter-grid .filter-btn-wrap {
        grid-column: span 2 !important;
    }
}

@media (max-width: 768px) {
    .catalog-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .catalog-filter-grid .filter-btn-wrap {
        grid-column: span 1 !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .catalog-filter-grid .filter-btn-wrap .btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 1rem !important;
        justify-content: center !important;
    }
    .catalog-filter-grid .form-control {
        width: 100% !important;
        height: 48px !important;
        font-size: 0.95rem !important;
    }
    .catalog-filter-grid .form-label {
        font-size: 0.88rem !important;
        margin-bottom: 0.35rem !important;
    }
}

/* Grid Responsivo da Hero Localizada da Cidade (cidade.php) */
.cidade-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 860px) {
    .cidade-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }
}

/* ==========================================================================
   Componentes do Catálogo de Prestadores e Serviços (prestadores.php)
   Layout Centralizado com 3 Colunas Compactas, Modernas e Responsivas
   ========================================================================== */
.catalog-page-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
    width: 100%;
    box-sizing: border-box;
}

.catalog-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.25rem;
}

.catalog-title-wrap .section-title {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.catalog-title-wrap .section-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.catalog-filter-card {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(13, 21, 39, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 100%;
}

.featured-cities-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    align-items: center;
    width: 100%;
}

.featured-cities-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.featured-cities-list .badge {
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.badge-secondary, a.badge-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.badge-secondary:hover, a.badge-secondary:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fff !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.badge-warning, a.badge-warning {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.featured-cities-clear {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

/* Grid Centralizado de 3 Colunas no Catálogo */
.catalog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .catalog-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 740px;
    }
}

@media (max-width: 640px) {
    .catalog-grid-3 {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

/* Card Compacto & Elegante do Prestador */
.provider-card-compact {
    background: linear-gradient(180deg, #111a2e 0%, #0d1527 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 1.15rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.35) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    position: relative;
    height: 100%;
}

.provider-card-compact:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 16px -4px rgba(245, 158, 11, 0.15) !important;
}

.provider-card-compact .card-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.provider-card-compact .provider-header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.provider-card-compact .provider-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 0.2rem 0 !important;
    color: #f8fafc !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.55rem;
}

.provider-card-compact .provider-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.provider-card-compact .provider-title a:hover {
    color: var(--primary);
}

.provider-card-compact .provider-location {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

.provider-card-compact .provider-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.provider-card-compact .map-direct-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 600;
    margin-left: 0.15rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.provider-card-compact .map-direct-link:hover {
    text-decoration: underline;
}

.provider-card-compact .provider-rating {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
}

.provider-card-compact .provider-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.35rem 0 0.65rem 0;
    min-height: 1.5rem;
}

.provider-card-compact .provider-specs .badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.48rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}

.provider-card-compact .provider-desc {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem;
}

/* Box Compacto de Serviços */
.provider-services-box {
    background: rgba(6, 11, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.65rem;
    width: 100%;
    box-sizing: border-box;
}

.services-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.4rem;
}

.services-box-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.services-box-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    white-space: nowrap;
}

.services-box-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.provider-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    padding: 0.22rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.provider-service-row:last-child {
    border-bottom: none;
}

.provider-service-name {
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.provider-service-price {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.74rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.service-compact-more {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-decoration: none;
    transition: color 0.15s;
}

.service-compact-more:hover {
    color: #94a3b8;
}

.provider-meta-row {
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
    box-sizing: border-box;
}

.provider-meta-item {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

/* Ações no Rodapé do Card */
.card-footer-actions {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.provider-actions-dual {
    display: flex;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-action-view {
    flex: 1.1;
    height: 36px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000 !important;
    border: none;
    transition: opacity 0.15s, transform 0.15s;
}

.btn-action-view:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: #000 !important;
}

.btn-action-zap {
    flex: 0.9;
    height: 36px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    background: #25d366 !important;
    color: #fff !important;
    border: none;
    transition: background 0.15s, transform 0.15s;
}

.btn-action-zap:hover {
    background: #1ebc59 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-whatsapp-direct {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

.btn-whatsapp-direct:hover {
    background: #1ebc59 !important;
    color: #fff !important;
}

.btn-reportar-contato {
    background: none;
    border: none;
    font-size: 0.68rem;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.4rem;
    padding: 0.2rem 0;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
    box-sizing: border-box;
    transition: color 0.15s;
}

.btn-reportar-contato:hover {
    color: #94a3b8;
}

/* Paginação Centralizada */
.catalog-pagination-wrap {
    max-width: 1120px;
    margin: 2.75rem auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

/* ==========================================================================
   Blindagem de Overflow Lateral para Samsung Galaxy S24, S25, iPhones e Android
   Elimina qualquer corte na margem esquerda ou direita ('comendo a lateral')
   ========================================================================== */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .catalog-page-container {
        padding: 1.5rem 1rem 5rem !important;
    }
    .card {
        padding: 1.25rem 1rem !important;
        border-radius: var(--radius-sm) !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .provider-header {
        gap: 0.65rem !important;
    }
    .provider-title {
        font-size: 1.05rem !important;
        word-break: break-word !important;
    }
    .provider-title a {
        word-break: break-word !important;
    }
    .provider-location {
        font-size: 0.78rem !important;
        word-break: break-word !important;
    }
    .provider-desc {
        font-size: 0.82rem !important;
        word-break: break-word !important;
    }
    .provider-specs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.55rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .provider-rating {
        font-size: 0.8rem !important;
        padding: 0.2rem 0.5rem !important;
        flex-shrink: 0 !important;
    }
}

/* Telas Ultra Compactas (Galaxy S24 / S25 ~360px, iPhones Mini ~375px) */
@media (max-width: 480px) {
    .container, .catalog-page-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .card, .provider-card, .catalog-filter-card {
        padding: 1.15rem 0.8rem !important;
    }
    .provider-card * {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .provider-meta-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
    .featured-cities-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
    }
    .featured-cities-clear {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: right !important;
    }
    .provider-services-box {
        padding: 0.75rem 0.6rem !important;
    }
}


