/* 
 * Conecta Pro - Identidade Visual e Estilização Premium 
 * Cores: Azul (#1565FF) e Laranja (#FF7A00)
 * https://conectapro.com.br
 */

/* Variáveis Globais de Design */
:root {
    --primary: #1565FF;
    --primary-light: #EBF2FF;
    --primary-hover: #004ecc;
    
    --accent: #FF7A00;
    --accent-light: #FFF2E6;
    --accent-hover: #e06b00;
    
    --bg-app: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border: #F1F5F9;
    --border-dark: #E2E8F0;
    
    --success: #10B981;
    --success-light: #D1FAE5;
    
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    
    --warning: #F59E0B;
    --warning-light: #FEF3C7;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(21, 101, 255, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.025);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Geral e Acessibilidade */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent; /* Remove outline azul no mobile */
    outline: none;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
}

body {
    background-color: #0F172A; /* Slate escuro externo para destacar o celular no desktop */
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container do Web App (Estilo Celular Centrado no Desktop, 100% no Mobile) */
.app-container {
    background-color: var(--bg-app);
    width: 100%;
    max-width: 480px; /* Largura perfeita de smartphone */
    height: 100%;
    max-height: 920px; /* Altura padrão de tela de celular grande */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

@media (max-width: 480px) {
    .app-container {
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0;
    }
    body {
        background-color: var(--bg-app);
    }
}

@media (min-width: 481px) {
    .app-container {
        border-radius: 32px; /* Cantos arredondados premium de smartphone */
        border: 8px solid #1E293B; /* Moldura simulando o hardware do celular */
    }
}

/* HEADER FIXO DO APP */
.app-header {
    background-color: var(--bg-card);
    height: 64px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.orange-text {
    color: var(--accent);
}

.header-location {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.header-location:hover {
    background-color: #d6e4ff;
}

/* ÁREA DE CONTEÚDO PRINCIPAL (Permite Scroll vertical isolado) */
.app-main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Espaço para a barra inferior */
    -webkit-overflow-scrolling: touch; /* Scroll fluído no iOS */
}

/* Esconder barra de rolagem mas permitir funcionalidade */
.app-main-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* SEÇÃO DE VIEWS (Transições e Efeitos de Slide) */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TÍTULO DAS VIEWS */
.view-title-container {
    padding: 20px 20px 10px 20px;
}

.view-title-container h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.view-title-container p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================
   VIEW 1: INÍCIO (HOME) STYLE
   ========================================================== */

/* Hero Banner */
.home-hero-banner {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #0D47A1 100%);
    color: white;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
    overflow: hidden;
}

.home-hero-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.home-hero-banner h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.home-hero-banner p {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.5;
    max-width: 85%;
}

/* Caixa de Busca Principal */
.search-box-container {
    padding: 0 20px;
    margin-top: -24px;
    position: relative;
    z-index: 10;
}

.search-box-wrapper {
    background-color: var(--bg-card);
    border-radius: 16px;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(21, 101, 255, 0.08);
    transition: var(--transition);
}

.search-box-wrapper:hover,
.search-box-wrapper:focus-within {
    box-shadow: 0 12px 30px rgba(21, 101, 255, 0.12);
    border-color: rgba(21, 101, 255, 0.3);
}

.search-icon {
    color: var(--primary);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-box-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.search-box-wrapper input::placeholder {
    color: var(--text-light);
}

/* Banner de Solicitação Rápida */
.urgent-action-banner {
    margin: 20px;
    background-color: var(--accent-light);
    border: 1.5px dashed var(--accent);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.urgent-banner-content {
    flex: 1;
}

.urgent-banner-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #CC6200;
    font-family: var(--font-display);
}

.urgent-banner-content p {
    font-size: 11px;
    color: #994900;
    margin-top: 2px;
}

/* Grid de Categorias */
.categories-section {
    padding: 10px 20px;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title-wrapper h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
}

.category-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(21, 101, 255, 0.15);
}

.category-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: var(--transition);
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0;
}

.category-item:hover .category-icon-wrapper {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A;
}

/* Cores de categorias dinâmicas - Todas em Preto e Branco (Monocromáticas) */
[class*="cat-"] {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}

.category-item:hover [class*="cat-"] {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
}

.category-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 24px;
}

/* Profissionais Listas */
.professionals-section {
    padding: 20px;
}

.professionals-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card Profissional Estilo Premium */
.prof-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.prof-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(21, 101, 255, 0.15);
}

.prof-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.prof-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.prof-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, #D6E4FF 100%);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    bottom: -2px;
    right: -2px;
}

.status-badge-dot.online { background-color: var(--success); }
.status-badge-dot.ocupado { background-color: var(--danger); }

.prof-info-main {
    flex: 1;
}

.prof-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.prof-name-row h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.prof-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.star-icon {
    color: #0F172A;
    fill: #0F172A;
}

.reviews-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 10px;
}

.prof-profession {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.prof-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.meta-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-gray { background-color: #F1F5F9; color: var(--text-muted); }
.tag-blue { background-color: var(--primary-light); color: var(--primary); }
.tag-orange { background-color: var(--accent-light); color: var(--accent); }

/* Rodapé do Card Profissional */
.prof-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.prof-price {
    font-size: 11px;
    color: var(--text-muted);
}

.prof-price strong {
    font-size: 14px;
    color: var(--text-main);
    font-family: var(--font-display);
}

/* ==========================================================
   VIEW 2: BUSCAR & FILTROS
   ========================================================== */

.search-header-sticky {
    position: sticky;
    top: 0;
    background-color: var(--bg-app);
    z-index: 50;
    padding: 16px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-search {
    box-shadow: var(--shadow-sm);
}

.clear-search-btn {
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.clear-search-btn:hover {
    color: var(--danger);
}

/* Filtros em carrossel horizontal */
.filters-chips-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
}

.filters-chips-carousel::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.filter-chip {
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(21, 101, 255, 0.2);
}

.search-results-container {
    padding: 0 20px;
}

.results-meta-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.professionals-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================
   VIEW 3: SOLICITAÇÕES (FORM)
   ========================================================== */

.request-form {
    background-color: var(--bg-card);
    margin: 10px 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-dark);
    font-size: 13px;
    color: var(--text-main);
    background-color: #FAFAFA;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(21, 101, 255, 0.1);
}

textarea {
    resize: none;
    line-height: 1.5;
}

/* Select wrapper com setinha customizada */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    top: 16px;
    right: 16px;
    pointer-events: none;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    top: 14px;
    left: 12px;
    color: var(--primary);
}

.input-icon-wrapper input {
    padding-left: 36px;
}

/* ==========================================================
   VIEW 4: CHATS & MENSAGENS
   ========================================================== */

/* Abas de chat e lista */
.chat-list-container {
    display: none;
}

.chat-list-container.active-subview {
    display: block;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    gap: 8px;
}

.chat-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(21, 101, 255, 0.15);
}

.chat-item-content {
    flex: 1;
    min-width: 0; /* Para forçar truncate correto */
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.chat-item-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.chat-item-time {
    font-size: 10px;
    color: var(--text-light);
}

.chat-item-content p {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tela de Conversa Ativa Aberta */
.active-chat-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-app);
    z-index: 110;
}

.active-chat-container.active-subview {
    display: flex;
}

.active-chat-header {
    background-color: var(--bg-card);
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.chat-back-btn {
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.chat-back-btn:hover {
    background-color: var(--primary-light);
}

.active-chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.active-chat-avatar-wrapper {
    position: relative;
}

.avatar-circle-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.status-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 1.5px solid white;
    bottom: -1px;
    right: -1px;
}

.status-indicator.active {
    background-color: var(--success);
}

.active-chat-user-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.active-chat-user-info p {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-call-btn {
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-call-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Caixa das mensagens (balões) */
.active-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    animation: bubbleEnter 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bubbleEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-bubble.client {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(21, 101, 255, 0.15);
}

.message-bubble.professional {
    background-color: var(--bg-card);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.message-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-align: right;
    display: block;
}

.message-bubble.professional .message-time {
    color: var(--text-light);
}

/* Footer do Chat */
.active-chat-footer {
    background-color: var(--bg-card);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FAFAFA;
    border: 1px solid var(--border-dark);
    padding: 6px 6px 6px 14px;
    border-radius: var(--radius-full);
}

.chat-input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: var(--text-main);
}

.chat-send-btn {
    border: none;
    background-color: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* ==========================================================
   VIEW 5: PERFIL E CONFIGURAÇÃO
   ========================================================== */

.profile-header-card {
    background-color: var(--bg-card);
    margin: 16px 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: center;
}

.profile-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(21, 101, 255, 0.2);
}

.profile-details h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.profile-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.user-tier-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 6px;
}

/* Navegação interna do perfil (Abas) */
.profile-tabs-nav {
    display: flex;
    margin: 0 20px;
    border-bottom: 1.5px solid var(--border-dark);
}

.profile-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.profile-tab.active {
    color: var(--primary);
    font-weight: 700;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background-color: var(--primary);
    bottom: -1.5px;
    left: 30%;
    border-radius: var(--radius-full);
}

.profile-tab-content {
    display: none;
    padding: 20px;
}

.profile-tab-content.active {
    display: block;
    animation: fadeSlideIn 0.3s ease;
}

.tab-title-row {
    margin-bottom: 12px;
}

.tab-title-row h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

/* Lista de solicitações no histórico */
.solicitations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solicitation-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.sol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sol-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

.sol-date {
    font-size: 10px;
    color: var(--text-light);
}

.solicitation-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.sol-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid var(--border);
    padding-top: 8px;
}

.sol-address-meta {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sol-urgency-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.urgency-Baixa { background-color: var(--success-light); color: var(--success); }
.urgency-Média { background-color: var(--warning-light); color: var(--warning); }
.urgency-Alta { background-color: var(--danger-light); color: var(--danger); }

/* Menu Extra */
.menu-item-btn {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.menu-item-btn:hover {
    background-color: var(--primary-light);
    border-color: rgba(21, 101, 255, 0.15);
}

.text-danger {
    color: var(--danger);
}

.text-danger:hover {
    background-color: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.15);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.faq-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.faq-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================
   BARRA FIXA INFERIOR STYLE (BOTTOM NAV)
   ========================================================== */

.app-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.nav-tab {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    outline: none;
}

.nav-tab span {
    font-size: 9px;
    font-weight: 600;
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active .nav-icon {
    transform: translateY(-2px) scale(1.05);
}

.nav-icon {
    transition: var(--transition);
}

/* Tab Central Primária Elevada "Solicitar" */
.nav-tab-primary {
    position: relative;
    z-index: 10;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px !important;
    height: 100%;
}

.primary-tab-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(21, 101, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-card);
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: -26px;
    margin-bottom: 3px;
    transition: var(--transition);
}

.nav-tab-primary:hover .primary-tab-circle {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 101, 255, 0.5);
}

/* Badge de Notificação no Chat */
.chat-tab-badge-container {
    position: relative;
    display: inline-block;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 8px;
    font-weight: 800;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-card);
}

/* ==========================================================
   ELEMENTOS DE BOTÕES E UTILITÁRIOS
   ========================================================== */

/* Botões Premium */
.btn {
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(21, 101, 255, 0.25);
}

.btn-orange {
    background-color: var(--accent);
    color: white;
}

.btn-orange:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

.btn-secondary {
    background-color: #F1F5F9;
    color: var(--text-main);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.badge-orange-light {
    background-color: var(--accent-light);
    color: var(--accent);
}

/* Empty States */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================================
   ANIMAÇÕES & INTERAÇÃO (UX)
   ========================================================== */

/* Ripple Effect styling */
.ripple-target,
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* Ripple cinza para botões claros */
.nav-tab .ripple-effect,
.chat-item .ripple-effect,
.menu-item-btn .ripple-effect,
.category-item .ripple-effect {
    background-color: rgba(21, 101, 255, 0.1);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Skeletons Shimmer Loader */
.skeleton-card {
    height: 110px;
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toast Notification Styles */
.toast-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #1E293B;
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }

/* Global Loading Overlay */
.global-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border: 3.5px solid var(--primary-light);
    border-top: 3.5px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================
   CLIENT AUTH GATE & PASSWORD TOGGLE PREMIUM STYLING
   ========================================================== */
.client-auth-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.auth-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand {
    text-align: center;
}

.auth-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 38px;
    width: auto;
}

.auth-brand h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-top: 8px;
}

.auth-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-app);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.auth-tab-btn {
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    background-color: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 46px;
}

.toggle-password-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* HAMBURGER MENU BUTTON */
.header-menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.header-menu-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.header-menu-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* DRAWER MENU OVERLAY */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4); /* Fundo escuro semitransparente */
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* DRAWER PANEL */
.drawer-panel {
    position: absolute;
    top: 0;
    right: -280px; /* Escondido à direita */
    width: 280px;
    height: 100%;
    background-color: var(--bg-card);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active .drawer-panel {
    right: 0; /* Desliza para dentro */
}

/* HEADER DO DRAWER */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-display);
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* LISTA DE ITENS DO MENU */
.drawer-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    text-align: left;
    width: 100%;
}

.drawer-menu-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.drawer-menu-item svg {
    color: var(--text-muted);
    transition: var(--transition);
}

.drawer-menu-item:hover svg {
    color: var(--primary);
}

/* FOOTER DO DRAWER (VERSÃO E BRANDING) */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-app);
}

.drawer-footer-brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.drawer-footer-version {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* MODAL DE CONTEÚDO DO DRAWER */
.drawer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.drawer-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-modal-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.drawer-modal-overlay.active .drawer-modal-card {
    transform: scale(1);
}

.drawer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-display);
}

.drawer-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.drawer-modal-close:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.drawer-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.drawer-modal-body h4 {
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.drawer-modal-body p {
    margin-bottom: 14px;
}

.drawer-modal-body p:last-child {
    margin-bottom: 0;
}

/* NATIVE PUSH NOTIFICATION BANNER (Premium iOS/Android Style) */
.native-push-container {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.native-push-notification {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 16px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.native-push-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.native-push-notification:hover {
    transform: scale(1.01);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.native-push-notification .push-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.native-push-notification .push-app-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.native-push-notification .push-app-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.native-push-notification .push-app-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.native-push-notification .push-time {
    font-size: 10px;
    color: var(--text-light);
    margin-left: auto;
    margin-right: 12px;
}

.native-push-notification .push-close-btn {
    background: #F1F5F9;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.native-push-notification .push-close-btn:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

.native-push-notification .push-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.native-push-notification .push-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.native-push-notification .push-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* MODAL DE NOTIFICAÇÃO NATIVA (iOS/Android Alert style) */
.native-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-out;
}

.native-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.native-modal-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.native-modal-overlay.active .native-modal-card {
    transform: scale(1);
}

.native-modal-body {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.native-modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.native-modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.native-modal-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.native-modal-footer {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.native-modal-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.native-modal-btn:hover {
    background-color: rgba(21, 101, 255, 0.05);
}

.native-modal-btn:active {
    background-color: rgba(21, 101, 255, 0.1);
}

/* BADGES E CARDS DE NOTIFICAÇÃO NO PERFIL DO CLIENTE */
.profile-notif-badge {
    background-color: #EF4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1.5px 5px;
    border-radius: 999px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-history-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.notification-history-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.notification-history-card.notif-type-todos {
    border-left-color: #10B981; /* emerald */
}

.notification-history-card.notif-type-profissionais {
    border-left-color: #f97316; /* orange */
}

.notification-history-card.notif-type-clientes {
    border-left-color: #3b82f6; /* blue */
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.notif-date {
    font-size: 10px;
    color: var(--text-light);
}

.notification-history-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* DARK MODE E MELHORIAS VISUAIS CONECTA PRO */
html[data-theme="dark"], body.dark-mode {
    --bg-app: #0b1329;
    --bg-card: #152243;
    --bg-card-subtle: rgba(255, 255, 255, 0.05);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --border: #1E293B;
    --border-color: #1E293B;
    --border-dark: #334155;
    --primary-light: rgba(21, 101, 255, 0.2);
    --accent-light: rgba(255, 122, 0, 0.2);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .app-header,
html[data-theme="dark"] .app-bottom-nav,
html[data-theme="dark"] .drawer-panel,
html[data-theme="dark"] .drawer-modal-card {
    background-color: #152243 !important;
    border-color: #1E293B !important;
}

html[data-theme="dark"] .prof-card,
html[data-theme="dark"] .search-input-box,
html[data-theme="dark"] .category-item,
html[data-theme="dark"] .quick-action-card,
html[data-theme="dark"] .form-control-custom,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    color-scheme: dark;
}

html[data-theme="dark"] .category-item span,
html[data-theme="dark"] .category-item p,
html[data-theme="dark"] .category-item-label,
html[data-theme="dark"] .section-title-wrapper h2,
html[data-theme="dark"] .view-title-container h2,
html[data-theme="dark"] .view-title-container p,
html[data-theme="dark"] .prof-profession,
html[data-theme="dark"] .prof-info-main h3,
html[data-theme="dark"] .prof-desc,
html[data-theme="dark"] .prof-card p,
html[data-theme="dark"] .request-form label,
html[data-theme="dark"] .request-card label,
html[data-theme="dark"] .info-row label,
html[data-theme="dark"] .info-row span,
html[data-theme="dark"] .info-value,
html[data-theme="dark"] .detail-text,
html[data-theme="dark"] .service-description {
    color: #f8fafc !important;
}

html[data-theme="dark"] .category-icon-wrapper {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .category-item.active,
html[data-theme="dark"] .filter-chip.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .category-item.active span,
html[data-theme="dark"] .category-item.active p {
    color: #ffffff !important;
}

html[data-theme="dark"] .category-item.active .category-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] [class*="cat-"] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .urgent-banner-content h3 {
    color: #ffaa44 !important;
}

html[data-theme="dark"] .urgent-banner-content p {
    color: #ffd8a8 !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] .form-control-custom:focus {
    background-color: #152243 !important;
    border-color: #1565FF !important;
    color: #f8fafc !important;
    box-shadow: 0 0 0 3px rgba(21, 101, 255, 0.25) !important;
}

html[data-theme="dark"] select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .form-control-custom::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

html[data-theme="dark"] label,
html[data-theme="dark"] .form-label-custom {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .select-wrapper::after {
    border-right-color: #94A3B8 !important;
    border-bottom-color: #94A3B8 !important;
}

html[data-theme="dark"] .filter-chip.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Botões de Ação no Card */
.btn-action-icon {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, color 0.2s ease;
}

.btn-action-icon:hover {
    transform: scale(1.1);
}

.btn-action-icon:active {
    transform: scale(0.95);
}

.btn-fav-prof.is-fav svg {
    fill: #EF4444;
    animation: heartPulse 0.35s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Badge de Verificado e Selo */
.tag-verified {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .tag-verified {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

/* Selo Atendimento 24h / Emergência */
.tag-emergency {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    animation: pulseEmergency 2s infinite;
}

html[data-theme="dark"] .tag-emergency {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes pulseEmergency {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* Banner de Instalação PWA */
.pwa-install-banner {
    margin: 16px 20px;
    background: linear-gradient(135deg, #1565FF 0%, #0D47A1 100%);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(21, 101, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    animation: slideDownBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pwa-banner-icon {
    flex-shrink: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
}

.pwa-banner-text p {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pwa-install {
    background: #FF7A00;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-pwa-install:hover {
    background: #e06b00;
    transform: scale(1.03);
}

.btn-pwa-close {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pwa-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .pwa-install-banner {
    background: linear-gradient(135deg, #1a233a 0%, #0d1322 100%);
    border-color: rgba(21, 101, 255, 0.4);
}

/* MODAL OVERLAY GENÉRICO / PORTFÓLIO */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-card, #FFFFFF);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    color: var(--text-main, #0F172A);
    box-sizing: border-box;
    padding: 18px;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.modal-close-btn {
    background: rgba(0,0,0,0.06);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #64748B);
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: rgba(0,0,0,0.12);
    color: var(--text-main, #0F172A);
}

html[data-theme="dark"] .modal-card,
body.dark-mode .modal-card,
body[data-theme="dark"] .modal-card {
    background-color: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .modal-close-btn,
body.dark-mode .modal-close-btn,
body[data-theme="dark"] .modal-close-btn,
.dark-mode .modal-close-btn,
html[data-theme="dark"] .close-btn,
body.dark-mode .close-btn,
body[data-theme="dark"] .close-btn,
.dark-mode .close-btn,
html[data-theme="dark"] button[onclick*="close"],
body.dark-mode button[onclick*="close"],
body[data-theme="dark"] button[onclick*="close"],
.dark-mode button[onclick*="close"] {
    background: #334155 !important;
    color: #F8FAFC !important;
    border: 1px solid #475569 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .modal-close-btn:hover,
body.dark-mode .modal-close-btn:hover,
body[data-theme="dark"] .modal-close-btn:hover,
.dark-mode .modal-close-btn:hover,
html[data-theme="dark"] .close-btn:hover,
body.dark-mode .close-btn:hover,
body[data-theme="dark"] .close-btn:hover,
.dark-mode .close-btn:hover,
html[data-theme="dark"] button[onclick*="close"]:hover,
body.dark-mode button[onclick*="close"]:hover,
body[data-theme="dark"] button[onclick*="close"]:hover,
.dark-mode button[onclick*="close"]:hover {
    background: #475569 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .btn-secondary,
body.dark-mode .btn-secondary,
body[data-theme="dark"] .btn-secondary,
.dark-mode .btn-secondary {
    background-color: #334155 !important;
    color: #F8FAFC !important;
    border: 1px solid #475569 !important;
}

html[data-theme="dark"] .btn-secondary:hover,
body.dark-mode .btn-secondary:hover,
body[data-theme="dark"] .btn-secondary:hover,
.dark-mode .btn-secondary:hover {
    background-color: #475569 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .auth-gate-close-btn,
body.dark-mode .auth-gate-close-btn,
body[data-theme="dark"] .auth-gate-close-btn,
.dark-mode .auth-gate-close-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .auth-gate-close-btn:hover,
body.dark-mode .auth-gate-close-btn:hover,
body[data-theme="dark"] .auth-gate-close-btn:hover,
.dark-mode .auth-gate-close-btn:hover {
    color: #F8FAFC !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Upload de Fotos no Formulário */
.photo-upload-box {
    border: 2px dashed var(--border-dark, #cbd5e1);
    border-radius: 12px;
    background: var(--bg-app, #f8fafc);
    transition: all 0.2s ease;
    overflow: hidden;
}

.photo-upload-box:hover {
    border-color: var(--primary, #1565FF);
    background: var(--primary-light, #ebf2ff);
}

html[data-theme="dark"] .photo-upload-box,
body.dark-mode .photo-upload-box,
body[data-theme="dark"] .photo-upload-box,
.dark-mode .photo-upload-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Estilos do Catálogo de Profissionais (profissionais.php) */
.catalog-page-container {
    padding-bottom: 140px !important;
}

.catalog-sub-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(21, 101, 255, 0.08);
    transition: var(--transition);
}

.btn-back-link:hover {
    background: rgba(21, 101, 255, 0.16);
    transform: translateX(-2px);
}

.category-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(21, 101, 255, 0.25);
}

.category-item.active span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.category-item.active .category-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="dark"] .catalog-sub-header {
    background-color: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .btn-back-link {
    background: rgba(21, 101, 255, 0.2);
    color: #60a5fa;
}
