/* Turbo Impulsione - CSS Updated: 2025-01-22 17:00 - Fixed Mobile Preview Display */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Força background transparente para imagens de upload */
.file-item img,
.file-preview-container img,
.file-preview-image,
img.file-preview-image {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.file-item,
.file-preview-container,
div.file-item,
div.file-preview-container {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Ocultar apenas a zona de upload central em mobile, mas manter previews */
@media screen and (max-width: 768px) {
    /* Ocultar apenas a zona de upload central */
    .upload-zone,
    .upload-area,
    div.upload-zone,
    div.upload-area,
    #upload-zone {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ocultar apenas os elementos de upload central */
    .upload-icon,
    .upload-text,
    .upload-hint,
    .select-files-btn,
    .upload-btn,
    #select-files-btn,
    button.upload-btn,
    button.select-files-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Manter os cards de upload funcionais no mobile */
    .upload-cards,
    .upload-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    .upload-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2) !important;
        border-color: #667eea !important;
    }
    
    .upload-card:active {
        transform: translateY(0) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* IMPORTANTE: Manter previews de arquivos visíveis em mobile */
    .uploaded-files,
    .file-item,
    .file-preview-container,
    .file-preview-image,
    .video-thumbnail-container,
    .video-thumbnail-img,
    #uploaded-files {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ajustar tamanho dos previews em mobile */
    .file-item {
        width: 280px !important;
        height: 498px !important; /* Manter proporção 9:16 */
        margin: 1rem auto !important;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-logo {
    height: 120px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    overflow-y: auto;
}

/* Ajuste específico para a página campaign-config */
body:has(.campaign-config) .main-content {
    margin-left: 280px;
    padding: 2rem;
}



.campaign-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: left;
    margin-bottom: 3rem;
    margin-left: 2rem; /* Alinha com os cards */
}

/* Ajuste específico para o form-header da página de configuração */
body:has(.campaign-config) .form-header {
    margin-left: 0;
    text-align: left;
}

.form-header h1 {
    color: #000000; /* Mudado para preto */
    font-size: 1.8rem; /* Diminuído de 2.5rem para 1.8rem */
    font-weight: 600; /* Diminuído de 700 para 600 */
    text-shadow: none; /* Removido o text-shadow */
    margin-bottom: 0.5rem;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section h2 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Option Cards - Tamanho aumentado */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Option Cards - Altura e padding aumentados */
.option-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem 0.75rem; /* Aumentado padding vertical e horizontal */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Social Buttons - Altura aumentada */
.social-btn {
    flex: 1;
    padding: 1rem; /* Aumentado de 0.5rem para 1rem */
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Gender Buttons - Altura aumentada */
.gender-btn {
    flex: 1;
    padding: 1rem; /* Aumentado de 0.5rem para 1rem */
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Estilo para primeiro clique em mobile */
.option-card.first-click {
    border-color: #8b5cf6;
    border-width: 2px;
}

.option-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #667eea;
}

.option-card.selected i {
    color: white;
}

.option-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-card p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.instagram-btn i {
    color: #e4405f;
    margin-right: 0.5rem;
}

.whatsapp-btn i {
    color: #25d366;
    margin-right: 0.5rem;
}

.social-btn.active i {
    color: white;
    margin-right: 0.5rem;
}

/* Alinhamento dos botões sociais para desktop */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.social-btn i {
    display: inline-block;
    vertical-align: middle;
}

/* Gender Buttons */
.gender-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.gender-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.gender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gender-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

/* Estilo para primeiro clique em mobile nos botões de gênero */
.gender-btn.first-click {
    border-color: #8b5cf6;
    border-width: 2px;
}

.gender-btn i {
    margin-right: 0.5rem;
}

/* Input Fields */
.profile-input,
.site-input,
.location-input,
.age-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.profile-input:focus,
.site-input:focus,
.location-input:focus,
.age-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.location-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    /* Remover qualquer fundo indesejado */
    background-image: none;
    background-color: white;
    /* Adicionar seta personalizada */
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

.location-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.location-select:hover {
    border-color: #cbd5e0;
}

/* Labels dos selects */
.estado-select-container label,
.location-selection label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.age-input {
    width: 100%;
}

/* File Upload */
.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 1rem 0;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

/* Remover indicações de drag-and-drop em dispositivos móveis */
@media (max-width: 768px) {
    .upload-area {
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -webkit-user-drag: none !important;
        user-select: none !important;
        pointer-events: none !important;
        border: 2px solid #e2e8f0 !important;
        background: #f8f9fa !important;
        cursor: default !important;
    }
    
    .upload-area:hover {
        border-color: #e2e8f0 !important;
        background: #f8f9fa !important;
        transform: none !important;
        cursor: default !important;
    }
    
    .upload-area.dragover {
        border-color: #e2e8f0 !important;
        background: #f8f9fa !important;
        transform: none !important;
        cursor: default !important;
    }
    

    
    /* Desabilitar completamente drag and drop em mobile */
    .upload-area * {
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -webkit-user-drag: none !important;
        user-select: none !important;
        pointer-events: none !important;
        cursor: default !important;
    }
    
    .upload-area .select-files-btn {
        pointer-events: auto !important;
        cursor: pointer !important;
        display: block !important;
    }
    
    .upload-area:hover .upload-icon {
        color: #cbd5e0 !important;
    }
}

.upload-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.upload-area:hover .upload-icon {
    color: #667eea;
}

.upload-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #718096;
}

/* File Preview */
.file-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem auto;
    width: 100%;
    text-align: center;
}

.file-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 338px;
    height: 601px; /* 338px * (16/9) = ~601px para manter proporção 9:16 */
    margin: 0 auto;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.file-preview-container,
div.file-preview-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.file-preview-image,
img.file-preview-image,
.file-preview-container img,
div.file-preview-container img,
.file-preview-container .file-preview-image,
div.file-preview-container .file-preview-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
}

.file-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Garantir que image-placeholder não tenha padding quando contém imagem */
.image-placeholder:has(.file-preview-image),
.image-placeholder:has(img.file-preview-image) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile: Aumentar tamanho do preview e forçar object-fit: cover */
@media (max-width: 768px) {
    .file-item {
        width: 90vw !important;
        max-width: 400px !important;
        height: calc(90vw * 16/9) !important;
        max-height: calc(400px * 16/9) !important;
    }
    
    .file-preview-video,
    .video-thumbnail-img,
    .file-preview-image,
    img.file-preview-image {
        object-fit: cover !important;
    }
    
    .video-thumbnail-container,
    .file-preview-container {
        overflow: hidden !important;
    }
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: none;
}

.file-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 3;
}

.file-overlay .remove-file {
    pointer-events: auto;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.file-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.file-details h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.file-details p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.remove-file {
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-file:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
}

.file-item video {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.file-item img:not(.file-preview-image) {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Botão Validar Perfil */
.validate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.validate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.validate-btn:active {
    transform: translateY(0);
}

/* Cards de Upload */
.upload-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.upload-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.upload-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.upload-card.selected i {
    color: white;
}

.upload-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Zona de Upload */
.upload-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 1rem 0;
    background: #f8f9fa;
}

.upload-zone:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-zone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

/* Desabilitar funcionalidade de drag-and-drop em dispositivos móveis (manter visual) */
@media (max-width: 768px) {
    .upload-zone {
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -webkit-user-drag: none !important;
        user-select: none !important;
        pointer-events: none !important;
    }
    
    .upload-zone .select-files-btn,
    .upload-zone button {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    .upload-zone:hover {
        border-color: #cbd5e0;
        background: #f8f9fa;
        transform: none !important;
    }
    
    .upload-zone.dragover {
        border-color: #cbd5e0;
        background: #f8f9fa;
        transform: none !important;
    }
}

/* Botão de Upload */
.upload-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Informações do Perfil */
.profile-card {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    margin-right: 1rem;
    border: 3px solid #667eea;
}

.profile-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.profile-stats span {
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Slider de Quilometragem - ULTRA OTIMIZADO */
.radius-selection {
    margin-top: 0.5rem; /* Reduzido ainda mais */
    padding: 0.5rem; /* Reduzido drasticamente */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.radius-selection h4 {
    margin: 0 0 0.25rem 0; /* Reduzido ainda mais */
    color: #000; /* FONTE PRETA para legibilidade */
    font-size: 1rem;
    font-weight: 600;
}

.radius-slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Reduzido drasticamente */
}

.radius-slider-container label {
    color: #000; /* FONTE PRETA para legibilidade */
    font-weight: 500;
    margin-bottom: 0.1rem; /* Reduzido ao mínimo */
    font-size: 0.9rem;
}

.slider-wrapper {
    position: relative;
    margin: 0.25rem 0; /* Reduzido drasticamente */
    width: 100%; /* LARGURA TOTAL do container */
}

/* REGRAS PRINCIPAIS DO SLIDER - BARRA GRANDE E PONTA A PONTA */
.radius-slider {
    width: 100%; /* LARGURA TOTAL - ponta a ponta */
    height: 16px; /* BARRA MAIS ALTA e visível */
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0; /* Remove margens */
    padding: 0; /* Remove padding */
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.radius-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.radius-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.radius-display {
    text-align: center;
    font-size: 1.1rem; /* Reduzido */
    font-weight: bold;
    color: #000; /* FONTE PRETA para legibilidade */
    margin: 0.25rem 0; /* Reduzido drasticamente */
    padding: 0.3rem; /* Reduzido */
    background: rgba(255, 255, 255, 0.9); /* Fundo mais opaco para contraste */
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.radius-description {
    text-align: center;
    color: #333; /* FONTE ESCURA para legibilidade */
    font-size: 0.85rem; /* Reduzido */
    margin: 0.25rem 0 0 0; /* Reduzido drasticamente */
    line-height: 1.2; /* Reduzido */
}

.radius-description strong {
    color: #000; /* FONTE PRETA para destaque */
}

/* Responsivo para mobile - BARRA AINDA MAIOR */
@media (max-width: 768px) {
    .radius-slider {
        height: 18px; /* BARRA AINDA MAIOR no mobile */
    }
    
    .radius-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .radius-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .radius-display {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
}

/* Estilos para o mapa */
.map-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none; /* Escondido inicialmente */
}

.map-container h4 {
    color: #000;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.map-display {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .map-display {
        height: 250px;
    }
    
    .map-container {
        padding: 12px;
        margin-top: 15px;
    }
}

/* Seleção de Idade */
.age-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.age-input-group {
    display: flex;
    flex-direction: column;
}

.age-input-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

/* Arquivos Carregados */
.uploaded-files {
    margin: 2rem 0;
    padding: 1rem;
    background: transparent;
    border-radius: 10px;
    border: none;
}

.uploaded-files h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Estilos para a segunda tela - Configuração da Campanha */
.campaign-config {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 20px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.back-btn i {
    font-size: 16px;
}

/* Estilos para métricas */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.metric-card {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-card .metric-value {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
    color: #333;
}

.metric-card .metric-label {
    font-size: 11px;
    color: #666;
}

.metric-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    gap: 5px;
}

.metric-info i {
    color: #9ca3af;
    font-size: 12px;
    cursor: help;
}

.metric-info .info-text {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

/* Estilos para cards de duração */
.duration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.duration-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
}

.duration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.duration-card:hover::before {
    left: 100%;
}

.duration-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    opacity: 0.9;
}

.duration-card:not(.selected):hover {
    background: #ffffff;
    opacity: 0.85;
}

.duration-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    opacity: 1;
}

.duration-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
}

.duration-card p {
    margin: 0 0 8px 0;
    font-size: 11px;
    opacity: 0.8;
}

.duration-card .price {
    font-size: 14px;
    font-weight: 700;
    color: #28a745;
}

.duration-card.selected .price {
    color: white;
}



/* Estilos para resumo */
.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.summary-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.summary-item p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsividade para campaign-config */
@media (max-width: 768px) {
    .campaign-config {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    /* Ajustar métricas para mobile */
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    
    .metric-card {
        padding: 12px 8px;
        border-radius: 8px;
    }
    
    .metric-card h4 {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .metric-card .metric-value {
        font-size: 16px;
        margin: 6px 0;
    }
    
    .metric-card .metric-label {
        font-size: 9px;
    }
    
    .metric-info {
        margin-top: 6px;
        gap: 3px;
    }
    
    .metric-info i {
        font-size: 10px;
    }
    
    .metric-info .info-text {
        font-size: 8px;
    }
    
    /* Ajustar cards de duração para mobile */
    .duration-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .duration-card {
        padding: 12px 8px;
        border-radius: 6px;
    }
    
    .duration-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .duration-card p {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .duration-card .price {
        font-size: 12px;
    }
    

    
    /* Ajustar resumo para mobile */
    .summary-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .summary-item {
        padding: 15px;
        border-radius: 8px;
    }
    
    .summary-item h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .summary-item p {
        font-size: 13px;
    }
    
    /* Ajustar botão voltar para mobile */
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* Ajustar seções para mobile */
    .section {
        margin-bottom: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .upload-cards {
        grid-template-columns: 1fr;
        gap: 6rem !important;
    }
    
    .age-selection {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Classe para esconder elementos */
.hidden {
    display: none !important;
}

/* Estilos para o botão Advantage+ */
.advantage-plus-container {
    margin: 1rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-start;
}

.advantage-plus-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.advantage-plus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #15803d, #14532d);
}

.advantage-plus-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.advantage-plus-btn .fas.fa-star {
    font-size: 0.65rem;
    color: #ffffff;
}

.advantage-plus-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.advantage-plus-btn:hover::before {
    left: 100%;
}

/* Ícone de informação do Advantage+ */
.advantage-info-icon {
    font-size: 0.9rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.advantage-info-icon:hover {
    color: #374151;
    background-color: #f3f4f6;
    transform: scale(1.1);
}

/* Pop-up do Advantage+ */
.advantage-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.advantage-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.advantage-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.advantage-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border-radius: 16px 16px 0 0;
}

.advantage-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.advantage-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.advantage-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.advantage-popup-body {
    padding: 1.5rem;
    line-height: 1.6;
}

.advantage-popup-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.advantage-popup-body strong {
    color: #1f2937;
}

.advantage-popup-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #4b5563;
}

.advantage-popup-body li {
    margin-bottom: 0.5rem;
}

.advantage-popup-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.advantage-popup-note i {
    color: #16a34a;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.advantage-popup-note span {
    color: #15803d;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsividade do pop-up */
@media (max-width: 768px) {
    .advantage-popup-content {
        width: 85%;
        max-height: 85vh;
    }
    
    .advantage-popup-header {
        padding: 1rem;
    }
    
    .advantage-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .advantage-popup-body {
        padding: 1rem;
    }
    
    .advantage-info-icon {
        font-size: 1rem;
        margin-left: 0.15rem;
        min-width: 1.8rem;
        min-height: 1.8rem;
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .advantage-plus-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .advantage-plus-container {
        justify-content: flex-start;
    }
    
    /* FORÇA MÁXIMA - Espaçamento e alinhamento mobile */
    body .upload-cards {
        gap: 2.5rem !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    body .file-preview,
    body .file-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 338px !important;
    }
    
    body .file-preview-container,
    body div.file-preview-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) !important;
    }
    
    body .file-preview-image,
    body img.file-preview-image,
    body .file-preview-container img,
    body div.file-preview-container img,
    body .video-thumbnail-img {
        margin: 0 auto !important;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    body .video-thumbnail-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        text-align: center !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) !important;
        overflow: hidden !important;
        height: 100% !important;
    }
    
    /* Melhorar posicionamento do botão de exclusão em mobile */
    .remove-file {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        top: 12px !important;
        right: 12px !important;
        background: rgba(255, 59, 48, 0.95) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        z-index: 1000 !important;
    }
    
    .remove-file:hover,
    .remove-file:active {
        transform: scale(1.05) !important;
        background: rgba(255, 59, 48, 1) !important;
    }
}

/* Estilos para subsections da seção de público */
.subsection h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Estilos para a seção de nicho/interesse */
.nicho-section {
    margin: 2rem 0;
    padding: 0; /* Removido padding para alinhar com outros campos */
    background: transparent; /* Removido background para alinhar com outros campos */
    border-radius: 0; /* Removido border-radius */
    border: none; /* Removido border */
}

.nicho-section h3 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.nicho-description {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.nicho-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.character-counter {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: right;
}

.character-counter span {
    font-weight: 500;
    color: #4a90e2;
}

.nicho-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nicho-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.nicho-input::placeholder {
    color: #9ca3af;
}

.buscar-mercado-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.buscar-mercado-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.buscar-mercado-btn:active {
    transform: translateY(0);
}

.buscar-mercado-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mercado-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.mercado-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

.mercado-results {
    margin-top: 1rem;
}

.mercados-counter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.mercados-counter.has-selection {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.mercados-counter .fa-check-circle {
    color: #667eea;
}

.mercado-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mercado-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.mercado-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.mercado-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.mercado-option:hover .mercado-checkbox {
    border-color: #667eea;
}

.mercado-option.selected .mercado-checkbox {
    background: white;
    border-color: white;
}

.mercado-checkbox .fa-check {
    font-size: 12px;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mercado-option.selected .mercado-checkbox .fa-check {
    opacity: 1;
    color: #667eea;
}

.mercado-content {
    flex: 1;
}

.mercado-option h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mercado-option p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.mercado-option.selected h4,
.mercado-option.selected p {
    color: white;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #dc2626;
}

.error-message i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .nicho-input-container {
        flex-direction: column;
    }
    
    .nicho-input {
        min-width: 100%;
    }
    
    .buscar-mercado-btn {
        justify-content: center;
    }
}

/* Estilos para o botão Criar Campanha */
.form-actions {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.confirm-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 220px;
    justify-content: center;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.confirm-btn.first-click {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.6);
    transform: translateY(-2px) scale(1.02);
    animation: pulse-confirm 1.5s infinite;
}

@keyframes pulse-confirm {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(240, 147, 251, 0.6);
    }
    50% {
        box-shadow: 0 15px 40px rgba(240, 147, 251, 0.8);
    }
}

.confirm-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.confirm-btn .fas {
    font-size: 1.2rem;
    color: #ffffff;
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.confirm-btn:hover::before {
    left: 100%;
}

/* Botão do menu mobile */
.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Botão de fechar menu */
.close-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.close-menu-btn:hover {
    color: #333;
}

/* Overlay do menu mobile */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Melhorar interatividade mobile */
.option-card, .social-btn, .gender-btn, .upload-card, .nav-link, .confirm-btn, .buscar-mercado-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.2s ease;
}

/* Feedback visual para touch */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Garantir que elementos interativos tenham cursor pointer */
.option-card, .social-btn, .gender-btn, .upload-card, .confirm-btn, .buscar-mercado-btn, .validate-btn {
    cursor: pointer;
}

/* Melhorar área de toque para botões pequenos */
.social-btn, .gender-btn {
    min-height: 48px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    /* Mostrar botão do menu mobile */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mostrar overlay quando necessário */
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Transformar sidebar em menu suspenso - garantir que inicie minimizado */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: auto !important;
        right: -280px !important;
        width: 280px;
        height: 100vh !important;
        min-height: 100vh;
        z-index: 1000;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        transform: translateX(0) !important;
    }
    
    .sidebar.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }
    
    /* Ajustar header do sidebar para mobile */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* Mostrar botão de fechar */
    .close-menu-btn {
        display: block;
    }
    
    /* Ajustar conteúdo principal */
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px 20px;
    }
    
    /* Ajustar conteúdo principal para campaign-config */
    body:has(.campaign-config) .main-content {
        padding: 20px 10px;
        margin-left: 0;
    }
    
    /* Ajustar form header para mobile */
    body:has(.campaign-config) .form-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    body:has(.campaign-config) .form-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    body:has(.campaign-config) .form-header p {
        font-size: 0.9rem;
    }
    
    .confirm-btn {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        min-width: 200px;
    }
    
    .form-actions {
        margin: 1rem 0 0.5rem 0;
        padding: 1rem 0;
    }
    
    /* Forçar estado inicial fechado do menu */
    .sidebar:not(.active) {
        right: -280px !important;
        transform: translateX(0) !important;
    }
    
    /* Garantir que overlay inicie invisível */
    .mobile-menu-overlay:not(.active) {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ajustes específicos para botões de gênero no mobile */
    .gender-btn {
        min-height: 50px;
        padding: 0.9rem 0.8rem;
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .gender-buttons {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    /* Ajustar botões sociais no mobile */
    .social-btn {
        min-height: 50px;
        padding: 0.9rem 0.8rem;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .social-buttons {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    /* Esconder mensagem inferior no mobile */
    .input-hint.desktop-only {
        display: none !important;
    }
    
    /* Mostrar apenas dica mobile */
    .mobile-hint {
        display: block !important;
    }
}

/* Estilos para resumo do perfil */
.profile-summary-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.profile-summary-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #e0e0e0;
}

.profile-summary-info {
    flex: 1;
}

.profile-summary-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.profile-summary-display {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.profile-summary-phone {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
}

.profile-summary-status {
    font-size: 11px;
    color: #25D366;
    font-weight: 500;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .profile-summary-content {
        gap: 8px;
    }
    
    .profile-summary-image {
        width: 35px;
        height: 35px;
    }
    
    .profile-summary-name {
        font-size: 13px;
    }
    
    .profile-summary-display,
    .profile-summary-phone {
        font-size: 11px;
    }
    
    .profile-summary-status {
        font-size: 10px;
    }
}

/* Estilos para mensagens de erro de validação por seção */
.section-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0 1.5rem 0;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.15);
    animation: slideInError 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.error-content i {
    font-size: 1.2rem;
    color: #dc2626;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.error-messages {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.error-message {
    color: #991b1b;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade para mensagens de erro */
@media (max-width: 768px) {
    .section-error {
        margin: 0.5rem 0 1rem 0;
        padding: 0.75rem;
    }
    
    .error-content {
        gap: 0.5rem;
    }
    
    .error-content i {
        font-size: 1.1rem;
    }
    
    .error-message {
        font-size: 0.85rem;
    }
}

/* ===== MODAL PIX STYLES ===== */
.pix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pix-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.pix-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pix-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.pix-close {
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.pix-close:hover {
    color: #e53e3e;
}

.pix-body {
    padding: 2rem;
}

/* Campaign Summary */
.campaign-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.campaign-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Persuasive Message */
.persuasive-message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.persuasive-message p {
    margin-bottom: 0.5rem;
    color: #744210;
}

.persuasive-message p:last-child {
    margin-bottom: 0;
}

/* Campaign Status */
.campaign-status {
    margin-bottom: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.status-item.active {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.status-item.processing {
    background: #fffaf0;
    border-left-color: #ed8936;
}

.status-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.status-item .fa-check {
    color: #48bb78;
}

.status-item .fa-circle-notch {
    color: #ed8936;
}

/* PIX Payment Section */
.pix-payment {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.pix-payment h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2d3748;
}

.pix-timer {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    padding: 10px;
}

.pix-code-container {
    margin-bottom: 1.5rem;
}

.pix-code-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.pix-code-input {
    display: flex;
    gap: 0.5rem;
}

.pix-code-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    background: #f7fafc;
}

.copy-btn {
    padding: 0.75rem 1rem;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #3182ce;
}

.copy-btn.copied {
    background: #48bb78;
}

.pix-instructions {
    background: #edf2f7;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.pix-instructions p {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.pix-instructions ol {
    margin-left: 1rem;
    color: #4a5568;
}

.pix-instructions li {
    margin-bottom: 0.25rem;
}

/* Loading */
.pix-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

/* Error */
.pix-error {
    text-align: center;
    padding: 2rem;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e53e3e;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.retry-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #c53030;
}

/* Success */
.pix-success {
    text-align: center;
    padding: 2rem;
}

.success-message {
    background: #f0fff4;
    color: #22543d;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #48bb78;
}

.success-message i {
    font-size: 3rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.success-message h3 {
    margin-bottom: 1rem;
    color: #22543d;
}

.success-message p {
    margin-bottom: 1.5rem;
    color: #2f855a;
}

.campaign-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: none;
}

.metric-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #22543d;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #2f855a;
    text-transform: uppercase;
    font-weight: 600;
}

.view-campaign-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

.view-campaign-btn:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PIX Modal Mobile Optimization */
@media (max-width: 768px) {
    .pix-modal-content {
        width: 98%;
        max-width: none;
        max-height: 120vh;
        min-height: 85vh;
        margin: 0 auto;
        border-radius: 12px;
        overflow-y: auto;
    }
    
    .pix-header {
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .pix-header h2 {
        font-size: 1rem;
        line-height: 1.1;
        margin: 0;
    }
    
    .pix-close {
        font-size: 1.3rem;
        top: 0.3rem;
        right: 0.3rem;
    }
    
    .pix-body {
        padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    }
    
    .campaign-summary {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 8px;
    }
    
    .campaign-summary h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .summary-row {
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .summary-row:last-child {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .persuasive-message {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 8px;
    }
    
    .persuasive-message p {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .campaign-status {
        margin-bottom: 0.6rem;
    }
    
    .status-item {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.2rem;
        border-radius: 6px;
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .status-item i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }
    
    .pix-payment {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 8px;
    }
    
    .pix-payment h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .pix-timer {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .qr-code-container {
        margin-bottom: 0.6rem;
    }
    
    .qr-code-container img {
        max-width: 140px;
        padding: 6px;
        border-radius: 6px;
    }
    
    .pix-code-container {
        margin-bottom: 0.6rem;
    }
    
    .pix-code-container label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        display: block;
    }
    
    .pix-code-input {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .pix-code-input input {
        font-size: 0.7rem;
        padding: 0.4rem;
        border-radius: 6px;
        line-height: 1.2;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.4rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    /* Reduzir espaçamentos específicos do modal PIX */
    .pix-modal .modal-actions {
        margin-top: 0.3rem;
        gap: 0.3rem;
    }
    
    .pix-modal .modal-actions button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Botão Lançar Campanha Mobile */
    .mobile-launch-btn {
        display: block !important;
        margin: 15px 0;
        text-align: center;
    }
    
    .mobile-only-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 600;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-only-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .mobile-only-btn:active {
        transform: translateY(0);
    }
}

/* Esconder botão mobile em desktop */
.mobile-launch-btn {
    display: none;
}

/* PIX Payment Integrated Styles */
.pix-payment-integrated {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.campaign-summary-small {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.campaign-summary-small h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #2d3748;
}

.summary-row-small {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-row-small:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

.payment-message {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #e6fffa;
    border-radius: 8px;
    border-left: 4px solid #38b2ac;
}

.payment-message p {
    margin: 0;
    color: #234e52;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-message-container {
    text-align: center;
    margin-bottom: 1.5rem;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-message {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    background: #f0fff4;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #48bb78;
    animation: fadeInOut 0.5s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pix-section-integrated {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pix-section-integrated h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #2d3748;
    font-size: 1.1rem;
}

.qr-code-container-small {
    text-align: center;
    margin-bottom: 1rem;
}

.loading-spinner-small {
    padding: 1rem;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem auto;
}

.qr-code-container-small img {
    max-width: 150px;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    padding: 8px;
    margin-bottom: 1rem;
}

.pix-code-section-small {
    margin-bottom: 1rem;
}

.pix-code-section-small label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.pix-input-group {
    display: flex;
    gap: 0.5rem;
}

.pix-input-group input {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    background: #f7fafc;
}

.copy-btn-small {
    padding: 0.6rem 0.8rem;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
    font-size: 0.8rem;
}

.copy-btn-small:hover {
    background: #3182ce;
}

.copy-btn-small.copied {
    background: #48bb78;
}

.timer-section-small {
    text-align: center;
    margin-top: 1rem;
}

.timer-display-small {
    font-size: 1rem;
    color: #e53e3e;
    font-weight: 600;
    background: #fed7d7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .pix-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .pix-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .pix-header h2 {
        font-size: 1.3rem;
    }
    
    .pix-body {
        padding: 1.5rem;
    }
    
    .campaign-summary,
    .persuasive-message,
    .pix-payment {
        padding: 1rem;
    }
    
    .pix-code-input {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .campaign-metrics {
        grid-template-columns: 1fr;
    }
    
    .pix-payment-integrated {
        padding: 1rem;
    }
    
    .pix-input-group {
        flex-direction: column;
    }
    
    .copy-btn-small {
        width: 100%;
    }
}

/* ===== MODAL DE PAGAMENTO PIX ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
}

/* Resumo da Campanha */
.campaign-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.campaign-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.value-highlight {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffd700;
}

/* Mensagem Persuasiva */
.persuasive-message {
    background: #f0fff4;
    border: 2px solid #68d391;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.persuasive-message p {
    margin-bottom: 0.5rem;
    color: #2f855a;
    line-height: 1.6;
}

.persuasive-message p:last-child {
    margin-bottom: 0;
}

/* Seção PIX */
.pix-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pix-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.qr-code-container {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#qr-code-image {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.loading-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-icon {
    margin-bottom: 20px;
}

.loading-content .spinner {
    margin: 0 auto 20px auto;
}

.loading-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.loading-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.info-box {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.info-box p {
    margin: 0;
    color: #0066cc;
    font-size: 13px;
}

.pix-code-section {
    margin-top: 1rem;
}

.pix-code-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.pix-code-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#pix-code {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    background: white;
}

.copy-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #38a169;
}

/* Timer */
.timer-section {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.timer-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.timer-warning {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Status da Campanha */
.campaign-status {
    margin-bottom: 1.5rem;
}

.campaign-status h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.status-item.active {
    background: #e6fffa;
    border: 2px solid #38b2ac;
}

.status-item.completed {
    background: #f0fff4;
    border: 2px solid #68d391;
}

.status-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
}

.status-item.active .status-icon {
    border-color: #38b2ac;
    background: #e6fffa;
}

.status-item.completed .status-icon {
    border-color: #68d391;
    background: #f0fff4;
}

.status-item span {
    font-weight: 500;
    color: #4a5568;
}

.status-item.active span {
    color: #2c7a7b;
    font-weight: 600;
}

.status-item.completed span {
    color: #2f855a;
    font-weight: 600;
}

/* Botões do Modal */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.secondary-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .modal-body {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    .campaign-summary {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .campaign-summary h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-row {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    .persuasive-message {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .persuasive-message p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .pix-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .pix-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .qr-code-container img {
        max-width: 180px;
        height: auto;
    }
    
    .timer-section {
        margin-bottom: 0.75rem;
    }
    
    .timer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .timer-display {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .timer-warning {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .campaign-status {
        margin-bottom: 0.75rem;
    }
    
    .campaign-status h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .status-timeline {
        gap: 0.5rem;
    }
    
    .status-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .status-icon {
        font-size: 0.8rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .pix-code-input {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #pix-code {
        margin-bottom: 0;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .pix-code-section label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Estilos para mensagem de erro de exclusividade */
.file-message {
    margin: 15px 0;
    padding: 0;
    border-radius: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    animation: slideDown 0.3s ease-out;
}

.file-message.hidden {
    display: none;
}

.message-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #856404;
}

.message-content i.fa-exclamation-triangle {
    color: #f39c12;
    margin-right: 10px;
    font-size: 16px;
}

.message-content span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    padding: 4px;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.message-close:hover {
    background: rgba(133, 100, 4, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para a Seção Informativa do Projeto */
.project-info-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-header h1 i {
    margin-right: 1rem;
    color: #ffd700;
}

.project-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-description {
    margin-bottom: 3rem;
}

.project-description h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-description h2 i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.project-description > p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.how-it-works {
    margin-bottom: 3rem;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.how-it-works h2 i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: #ffd700;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    opacity: 0.9;
    line-height: 1.6;
}

.success-cases {
    margin-bottom: 3rem;
}

.success-cases h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.success-cases h2 i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.case-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.case-icon i {
    font-size: 2.5rem;
    color: #ffd700;
}

.case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.case-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

.case-card p:last-of-type {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
}

.case-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.metric {
    font-size: 0.9rem;
    opacity: 0.8;
}

.metric i {
    margin-right: 0.3rem;
    color: #ffd700;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* Responsividade para a seção do projeto */
@media (max-width: 768px) {
    .project-info-section {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .project-header h1 {
        font-size: 1.8rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Corrigir posicionamento do rodapé no mobile */
    footer {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 3rem !important;
        padding: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Garantir que o main-content tenha espaço suficiente */
    .main-content {
        padding-bottom: 120px !important;
        min-height: calc(100vh - 120px) !important;
    }
}
