/* FLEXCREDI - Sistema de CSS Base */

/* ========== IMPORTAÇÃO DE FONTES ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========== VARIÁVEIS CSS ========== */
:root {
    /* Cores Primárias */
    --verde-vibrante: #2ECC71;
    --verde-escuro: #27AE60;
    --cinza-escuro: #333333;
    --preto: #2C3E50;
    
    /* Cores Secundárias */
    --branco: #FFFFFF;
    --cinza-claro: #F5F5F5;
    --cinza-medio: #BDC3C7;
    --azul-claro: #3498DB;
    --azul-escuro: #2980B9;
    
    /* Cores de Status */
    --verde-sucesso: #27AE60;
    --vermelho-erro: #E74C3C;
    --amarelo-aviso: #F39C12;
    
    /* Tipografia */
    --font-principal: 'Poppins', sans-serif;
    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-large: 16px;
    --font-size-h1: 36px;
    --font-size-h2: 28px;
    --font-size-h3: 22px;
    --font-size-h4: 18px;
    --font-size-h5: 16px;
    
    /* Espaçamentos */
    --spacing-xs: 6px;
    --spacing-sm: 12px;
    --spacing-md: 18px;
    --spacing-lg: 24px;
    --spacing-xl: 36px;
    --spacing-xxl: 48px;
    
    /* Sombras */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    line-height: 1.6;
    color: var(--cinza-escuro);
    background-color: var(--branco);
    overflow-x: hidden;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--cinza-escuro);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: 500;
    line-height: 1.4;
}

h5 {
    font-size: var(--font-size-h5);
    font-weight: 500;
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--cinza-escuro);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

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

a:hover {
    color: var(--azul-escuro);
}

/* ========== COMPONENTES GLOBAIS ========== */

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-sm));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* Botões */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-principal);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1.4;
    min-width: 140px;
}

.btn-primary {
    background-color: var(--verde-vibrante);
    color: var(--branco);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: var(--verde-escuro);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--branco);
    color: var(--cinza-escuro);
    border: 2px solid var(--cinza-medio);
}

.btn-secondary:hover {
    background-color: var(--cinza-claro);
    border-color: var(--cinza-escuro);
}

.btn-outline {
    background-color: transparent;
    color: var(--verde-vibrante);
    border: 2px solid var(--verde-vibrante);
}

.btn-outline:hover {
    background-color: var(--verde-vibrante);
    color: var(--branco);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-large);
    min-width: 180px;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-small);
    min-width: 100px;
}

/* Cards */
.card {
    background-color: var(--branco);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-medium);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--cinza-claro);
}

.card-title {
    font-size: var(--font-size-h4);
    color: var(--cinza-escuro);
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-title i {
    font-size: 24px;
    display: inline-block;
    flex-shrink: 0;
}

.card-title span {
    font-weight: 600;
    display: inline-block;
    line-height: 1.3;
    white-space: nowrap;
}

.card-subtitle {
    color: var(--cinza-medio);
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
    display: block;
    width: 100%;
}

/* Formulários */
.form-group {
    margin-bottom: 8px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--cinza-escuro);
    font-size: 13px;
}

/* Label inline para slider (mantém label acima) */
.form-label-inline {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    font-family: var(--font-principal);
    border: 2px solid var(--cinza-claro);
    border-radius: var(--radius-md);
    background-color: var(--branco);
    transition: var(--transition-fast);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-color: var(--verde-vibrante);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-control.error {
    border-color: var(--vermelho-erro);
}

.form-control.success {
    border-color: var(--verde-sucesso);
}

.form-error {
    color: var(--vermelho-erro);
    font-size: var(--font-size-small);
    margin-top: var(--spacing-xs);
    display: none;
}

.form-success {
    color: var(--verde-sucesso);
    font-size: var(--font-size-small);
    margin-top: var(--spacing-xs);
    display: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--spacing-sm) center;
    background-size: 16px;
}



/* ========== SLIDER CUSTOMIZADO ========== */
.slider-container {
    position: relative;
    margin-bottom: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-slider {
    position: relative;
    width: 100%;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--cinza-claro);
    border-radius: var(--radius-lg);
    transform: translateY(-50%);
}

.slider-fill {
    height: 100%;
    background: var(--verde-vibrante);
    border-radius: var(--radius-lg);
    width: 37.5%; /* Valor inicial baseado no valor padrão de $10,000 */
    transition: width 0.2s ease;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--verde-escuro);
    border: 2px solid var(--branco);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    left: 44.4%; /* Posição inicial para $5,000 (44.4% de $1,000-$10,000) */
    z-index: 3;
}

.slider-thumb:hover {
    background: var(--verde-vibrante);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.slider-thumb.dragging {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.custom-range {
    position: relative;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 2;
    margin: var(--spacing-md) 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--cinza-medio);
    margin-top: 2px;
}

/* Layout compacto: slider e valor na mesma linha */
.form-group-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-xs);
}

.valor-display {
    min-width: 100px;
    max-width: 110px;
    flex-shrink: 0;
}

.valor-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--verde-escuro);
    text-align: center;
    border: 2px solid var(--verde-vibrante);
    border-radius: 6px;
    background-color: #f0fdf4;
    cursor: default;
    line-height: 1;
}

/* ========== BENEFÍCIOS - LAYOUT COMPACTO ========== */
.beneficios-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.beneficio-item i.benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.beneficio-item .beneficio-content {
    flex: 1;
    min-width: 0;
}

.beneficio-item h5 {
    display: inline;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--cinza-escuro);
}

.beneficio-item p {
    display: inline;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: var(--cinza-medio);
}

.beneficio-item h5::after {
    content: " - ";
    color: var(--cinza-medio);
    font-weight: 400;
}

/* ========== CALCULADORA DE EMPRÉSTIMO ========== */
.loan-calculator {
    background: var(--branco);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-light);
    margin-top: 0;
}

.calculator-title {
    color: var(--verde-escuro);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    font-size: var(--font-size-small);
}

.calculator-field {
    margin-bottom: var(--spacing-xs);
}

.calculator-label {
    display: block;
    font-weight: 500;
    color: var(--cinza-escuro);
    margin-bottom: 2px;
    font-size: var(--font-size-small);
}

/* Layout horizontal para sliders */
.slider-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.slider-container-inline {
    flex: 1;
    min-width: 0;
}

.valor-display-inline {
    flex-shrink: 0;
    width: 80px;
}

/* Sliders compactos */
.loan-calculator .custom-slider {
    height: 25px;
    margin: 2px 0;
}

.loan-calculator .slider-track {
    height: 4px;
}

.loan-calculator .slider-thumb {
    width: 14px;
    height: 14px;
}

.loan-calculator .slider-labels {
    margin-top: 2px;
    font-size: 9px;
}

.valor-input-compact {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--verde-escuro);
    background: var(--cinza-claro);
    border: 1px solid var(--verde-vibrante);
    border-radius: var(--radius-sm);
    padding: 4px 2px;
    outline: none;
}

/* Resultado compacto */
.calculator-result-compact {
    margin-top: var(--spacing-sm);
}

.result-box-compact {
    background: linear-gradient(135deg, var(--verde-vibrante), var(--verde-escuro));
    color: var(--branco);
    padding: 0 var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xs);
    height: 38px;
    min-height: 38px;
    width: 100%;
    line-height: 1;
}

.result-installments-compact {
    font-size: var(--font-size-small);
    font-weight: 600;
    opacity: 0.9;
    flex-shrink: 0;
}

.result-value-compact {
    font-size: var(--font-size-large);
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
}

.interest-rate-compact {
    font-size: 10px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Nota explicativa da calculadora */
.calculator-note {
    margin-top: 3px;
}

.calculator-note small {
    color: var(--cinza-medio);
    font-size: 9px;
    font-style: italic;
    line-height: 1.2;
}

/* ========== BOTÃO SUBMIT ESTILIZADO ========== */
.submit-button-container {
    margin-top: var(--spacing-sm);
}

.btn-submit-styled {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-vibrante), var(--verde-escuro));
    color: var(--branco);
    border: none;
    padding: 0 var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-light);
    font-size: var(--font-size-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    height: 38px;
    min-height: 38px;
    line-height: 1;
}

.btn-submit-styled:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-submit-styled:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

.btn-submit-styled i {
    font-size: var(--font-size-small);
    flex-shrink: 0;
}

.btn-submit-styled span {
    flex-grow: 1;
    text-align: center;
}

.valor-display {
    text-align: center;
    margin-top: var(--spacing-md);
}

.valor-input {
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--verde-escuro);
    background: transparent;
    border: none;
    outline: none;
}

/* ========== LOADING INDICATOR PARA ZIP CODE ========== */
.loading-zip {
    position: relative;
}

.loading-zip::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--cinza-claro);
    border-top: 2px solid var(--verde-vibrante);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========== RESPONSIVIDADE DO SLIDER ========== */
@media (max-width: 768px) {
    .custom-range {
        height: 10px;
        margin: var(--spacing-lg) 0;
    }
    
    .slider-track {
        height: 10px;
    }
    
    .slider-fill {
        height: 100%;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
    
    .valor-input {
        font-size: 16px;
    }
    
    /* Calculadora responsiva */
    .loan-calculator {
        padding: var(--spacing-xs);
    }
    
    .slider-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .valor-display-inline {
        width: 100%;
        align-self: center;
    }
    
    .loan-calculator .custom-slider {
        height: 30px;
        margin: 4px 0;
    }
    
    .loan-calculator .slider-track {
        height: 6px;
    }
    
    .loan-calculator .slider-thumb {
        width: 16px;
        height: 16px;
    }
    
    .valor-input-compact {
        font-size: var(--font-size-small);
        padding: 6px 4px;
    }
    
    .result-value-compact {
        font-size: var(--font-size-h5) !important;
    }
    
    .calculator-title {
        font-size: var(--font-size-small) !important;
        margin-bottom: 8px !important;
    }
    
    .result-box-compact {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        gap: var(--spacing-xs);
        height: 42px;
        min-height: 42px;
    }
    
    .btn-submit-styled {
        height: 42px;
        min-height: 42px;
        font-size: 12px;
    }
    
    .result-installments-compact {
        font-size: 11px;
    }
    
    .result-value-compact {
        font-size: var(--font-size-base);
    }
    
    .interest-rate-compact {
        font-size: 9px;
    }
    
    /* Seletor de idiomas responsivo */
    .language-selector {
        margin-right: 8px;
        gap: 2px;
    }
    
    .language-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
        padding: 2px;
    }
    
    /* Garantir que bandeiras sejam iguais em mobile para todos os idiomas */
    [data-lang="es"] .language-btn,
    [data-lang="pt"] .language-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
        padding: 2px;
    }
}

/* ========== ANIMAÇÃO ZIP CODE SUCESSO ========== */
.zip-success {
    border-color: var(--verde-vibrante) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
    animation: zipSuccess 0.5s ease;
}

@keyframes zipSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.checkbox-container input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    margin-top: 4px;
}

.checkbox-label {
    font-size: var(--font-size-small);
    line-height: 1.5;
    cursor: pointer;
}

/* ========== HEADER E NAVEGAÇÃO ========== */
.header {
    background-color: var(--branco);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--cinza-escuro);
    text-decoration: none;
    position: relative;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    max-width: 220px;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ========== SELETOR DE IDIOMAS ========== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
}

.language-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 2px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.language-btn:hover {
    background-color: var(--cinza-claro);
    border-color: var(--verde-vibrante);
    transform: scale(1.1);
}

.language-btn.active {
    background-color: var(--verde-vibrante);
    border-color: var(--verde-escuro);
    box-shadow: var(--shadow-light);
}

.language-btn.active:hover {
    background-color: var(--verde-escuro);
}

.logo-text {
    color: var(--cinza-escuro);
}

.logo-highlight {
    color: var(--verde-vibrante);
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-lg);
    background: transparent;
}

/* Espaçamento dinâmico por idioma - ajuste sutil para equilibrar */
[data-lang="en"] .navbar-nav {
    gap: var(--spacing-lg); /* 24px */
}

[data-lang="es"] .navbar-nav,
[data-lang="pt"] .navbar-nav {
    gap: 16px; /* Redução moderada de 24px para 16px */
}

.navbar-nav li {
    position: relative;
}

.nav-link {
    color: var(--cinza-escuro);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    font-size: 12px;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Ajustes sutis para idiomas com palavras maiores */
[data-lang="es"] .nav-link,
[data-lang="pt"] .nav-link {
    padding: var(--spacing-sm) 10px; /* Redução sutil: de 12px para 10px */
    font-size: 11px; /* Redução mínima: de 12px para 11px */
    letter-spacing: 0px; /* Sem letter-spacing negativo */
    gap: 3px; /* Gap normal */
    text-transform: capitalize; /* Manter capitalização */
    font-weight: 600; /* Manter peso original */
}

/* Manter botões de ação iguais em todos os idiomas */
[data-lang="es"] .navbar-buttons,
[data-lang="pt"] .navbar-buttons {
    gap: var(--spacing-sm); /* Mesmo gap do inglês */
}

[data-lang="es"] .navbar-buttons .btn-sm,
[data-lang="pt"] .navbar-buttons .btn-sm {
    padding: 4px 8px; /* Mesmo padding do inglês */
    font-size: 10px; /* Mesmo tamanho do inglês */
    min-width: 70px; /* Mesma largura do inglês */
    font-weight: 500; /* Mesmo peso do inglês */
}

/* Manter seletor de idiomas igual em todos os idiomas */
[data-lang="es"] .language-selector,
[data-lang="pt"] .language-selector {
    margin-right: var(--spacing-md); /* Mesmo espaçamento do inglês */
    gap: 3px; /* Mesmo gap do inglês */
}

[data-lang="es"] .language-btn,
[data-lang="pt"] .language-btn {
    width: 28px; /* Mesmo tamanho do inglês */
    height: 28px;
    font-size: 16px; /* Mesmo tamanho do inglês */
}

/* Ajuste sutil do dropdown menu */
[data-lang="es"] .dropdown-menu a,
[data-lang="pt"] .dropdown-menu a {
    padding: 8px 10px; /* Redução sutil */
    font-size: 10px; /* Apenas 1px menor */
    gap: 3px; /* Gap normal */
}

[data-lang="es"] .dropdown-menu,
[data-lang="pt"] .dropdown-menu {
    min-width: 170px; /* Largura razoável */
}

[data-lang="es"] .dropdown-menu a i,
[data-lang="pt"] .dropdown-menu a i {
    font-size: 9px; /* Redução mínima */
}

/* Ajustes sutis dos ícones */
[data-lang="es"] .nav-link i,
[data-lang="pt"] .nav-link i {
    font-size: 11px; /* Apenas ligeiramente menor */
}

[data-lang="es"] .nav-dropdown .nav-link .fa-chevron-down,
[data-lang="pt"] .nav-dropdown .nav-link .fa-chevron-down {
    font-size: 9px; /* Redução sutil */
    margin-left: 2px;
}

/* Ícones dos botões mantidos no tamanho padrão */
[data-lang="es"] .navbar-buttons .btn-sm i,
[data-lang="pt"] .navbar-buttons .btn-sm i {
    font-size: inherit; /* Usar o tamanho padrão do inglês */
}

/* Ajuste sutil do espaçamento geral */
[data-lang="es"] .navbar-brand,
[data-lang="pt"] .navbar-brand {
    margin-right: 12px; /* Redução sutil do espaço após logo */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--verde-vibrante);
    transition: var(--transition-fast);
    transform: translateX(-50%);
    border-radius: var(--radius-sm);
}

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

.nav-link:hover {
    color: var(--verde-vibrante);
    background-color: rgba(46, 204, 113, 0.1);
}

.nav-link.active {
    color: var(--verde-vibrante);
    background-color: rgba(46, 204, 113, 0.15);
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.navbar-buttons .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-md) var(--spacing-xl);
}

.navbar-buttons .btn-compact {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 13px;
    font-weight: 500;
}

.navbar-buttons .btn-sm {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--cinza-escuro);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background-color: var(--cinza-claro);
    color: var(--verde-vibrante);
}

/* ========== DROPDOWN MENU ========== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--branco);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: var(--spacing-sm) 0;
    list-style: none;
    z-index: 1001;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--cinza-escuro);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--cinza-claro);
    color: var(--verde-vibrante);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .nav-link i {
    font-size: 10px;
    margin-left: var(--spacing-xs);
    transition: var(--transition-fast);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--cinza-escuro);
    color: var(--branco);
    padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--branco);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: var(--cinza-claro);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--verde-vibrante);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid var(--cinza-medio);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--cinza-claro);
    font-size: var(--font-size-small);
}

/* ========== SEÇÕES DE CONTEÚDO ========== */
.section {
    padding: var(--spacing-xl) 0;
}

/* Compensar scroll para âncoras com header fixo */
[id] {
    scroll-margin-top: 140px;
}

/* ========== PÁGINA DE APLICAÇÃO ========== */
.aplicacao-header {
    background-color: var(--cinza-claro);
    padding: 160px 0 var(--spacing-xl) 0;
    text-align: center;
}

.aplicacao-intro h1 {
    color: var(--cinza-escuro);
    margin-bottom: var(--spacing-md);
}

.aplicacao-intro .text-large {
    font-size: var(--font-size-large);
    color: var(--cinza-medio);
    margin-bottom: var(--spacing-xl);
}

.section-gray {
    background-color: var(--cinza-claro);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    text-align: center;
    color: var(--cinza-medio);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-large);
}

/* ========== HERO CAROUSEL SECTION ========== */
.hero-carousel {
    position: relative;
    height: 45vh;
    min-height: 320px;
    max-height: 400px;
    overflow: hidden;
    padding-top: 90px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlays diferentes para melhor legibilidade */
.slide-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(240, 248, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

.slide-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(46, 204, 113, 0.7) 0%, 
        rgba(39, 174, 96, 0.8) 30%,
        rgba(44, 62, 80, 0.6) 70%,
        rgba(52, 73, 94, 0.7) 100%
    );
}

.carousel-slide .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--branco);
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.carousel-slide .hero-slogan {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.95;
    line-height: 1.2;
    margin-bottom: 8px;
}

.carousel-slide h1 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.carousel-slide p {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.35);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.carousel-slide .hero-buttons .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--branco);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(46, 204, 113, 0.8);
    border-color: var(--verde-vibrante);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: var(--verde-vibrante);
    border-color: var(--verde-vibrante);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 42vh;
        min-height: 300px;
        max-height: 350px;
    }
    
    .carousel-indicators {
        right: 15px;
        bottom: 12px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 42vh;
        min-height: 300px;
        max-height: 360px;
        padding-top: 80px;
    }
    
    .carousel-slide .hero-content {
        padding: 0 var(--spacing-md);
        max-width: 90%;
    }
    
    .carousel-slide h1 {
        font-size: clamp(20px, 3vw, 26px);
        margin-bottom: 10px;
    }
    
    .carousel-slide p {
        font-size: clamp(13px, 2vw, 15px);
        margin-bottom: 12px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 40vh;
        min-height: 280px;
        max-height: 340px;
        padding-top: 70px;
    }
    
    .carousel-slide .hero-content {
        padding: 0 var(--spacing-sm);
        max-width: 92%;
    }
    
    .carousel-slide .hero-slogan {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 6px;
    }
    
    .carousel-slide h1 {
        font-size: clamp(18px, 4vw, 24px);
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .carousel-slide p {
        font-size: clamp(12px, 2.5vw, 14px);
        line-height: 1.4;
        max-width: 95%;
        margin-bottom: 10px;
    }
    
    .carousel-slide .hero-buttons .btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .carousel-indicators {
        right: 10px;
        bottom: 10px;
        gap: 5px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-slide .hero-content {
        padding: 0 var(--spacing-sm);
        max-width: 90%;
    }
}

/* ========== OTIMIZAÇÃO DE CORES DE TEXTO ========== */
/* Slides com texto escuro (para fundos mais claros) */
.slide-dark-text .hero-content {
    color: var(--preto);
}

.slide-dark-text .hero-slogan {
    color: var(--cinza-escuro);
}

.slide-dark-text h1 {
    color: var(--preto);
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

.slide-dark-text p {
    color: var(--cinza-escuro);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

/* Slides com texto claro (para fundos mais escuros) */
.slide-light-text .hero-content {
    color: var(--branco);
}

.slide-light-text .hero-slogan {
    color: #f8f9fa;
}

.slide-light-text h1 {
    color: var(--branco);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-light-text p {
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ========== BOTÕES COM CONTRASTE OTIMIZADO ========== */
/* Botão escuro para slides com texto escuro */
.slide-dark-text .btn-outline-dark {
    color: var(--preto);
    border: 2px solid var(--preto);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.slide-dark-text .btn-outline-dark:hover {
    background: var(--preto);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

/* Botão claro para slides com texto claro */
.slide-light-text .btn-outline-light {
    color: var(--branco);
    border: 2px solid var(--branco);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.slide-light-text .btn-outline-light:hover {
    background: var(--branco);
    color: var(--preto);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Botão primário verde para ambos os tipos */
.slide-dark-text .btn-primary,
.slide-light-text .btn-primary {
    background: var(--verde-vibrante);
    border: 2px solid var(--verde-vibrante);
    color: var(--branco);
    font-weight: 500;
}

.slide-dark-text .btn-primary:hover,
.slide-light-text .btn-primary:hover {
    background: var(--verde-escuro);
    border-color: var(--verde-escuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}
    
    .carousel-slide p {
        font-size: clamp(12px, 1.3vw, 14px);
    }
}

/* Hero para páginas internas */
.hero-internal {
    background: var(--cinza-claro);
    color: var(--cinza-escuro);
    padding: 160px 0 var(--spacing-xl) 0;
    text-align: center;
}

.hero-internal h1 {
    color: var(--cinza-escuro);
}

.hero-internal p {
    color: var(--cinza-medio);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 20px
        );
    filter: sepia(100%) hue-rotate(120deg) saturate(150%);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--branco);
    margin-bottom: var(--spacing-md);
    font-size: clamp(36px, 5vw, 48px);
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 1);
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-weight: 500;
}

.hero-slogan {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--branco);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ========== ALERTAS E NOTIFICAÇÕES ========== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: var(--verde-sucesso);
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: var(--vermelho-erro);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: var(--amarelo-aviso);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: var(--azul-claro);
}

/* ========== UTILITÁRIOS ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.m-0 { margin: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.text-verde { color: var(--verde-vibrante); }
.text-cinza { color: var(--cinza-medio); }
.text-branco { color: var(--branco); }

.bg-verde { background-color: var(--verde-vibrante); }
.bg-cinza-claro { background-color: var(--cinza-claro); }
.bg-branco { background-color: var(--branco); }

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
        --font-size-h3: 24px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: 32px;
        --font-size-h2: 28px;
        --font-size-h3: 22px;
        --spacing-xxl: 48px;
        --spacing-xl: 32px;
    }
    
    .header {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar {
        height: 90px;
    }
    
    .navbar-brand {
        font-size: 28px;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--branco);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-medium);
        gap: var(--spacing-md);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        background-color: var(--cinza-claro);
        margin-bottom: var(--spacing-sm);
        font-size: 13px;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-buttons {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }
    
    .navbar-buttons .btn {
        font-size: 14px;
        padding: var(--spacing-sm) var(--spacing-md);
        min-width: 100px;
    }
    
    .navbar-buttons .btn-compact {
        font-size: 12px;
        padding: var(--spacing-xs) var(--spacing-sm);
        min-width: 80px;
    }
    
    .navbar-buttons .btn-sm {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    /* Garantir que botões sejam iguais em mobile para todos os idiomas */
    [data-lang="es"] .navbar-buttons .btn-sm,
    [data-lang="pt"] .navbar-buttons .btn-sm {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .btn {
        min-width: 120px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .btn-large {
        min-width: 160px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .col-6, .col-4, .col-3 {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .hero {
        padding: 80px 0 var(--spacing-xl) 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 28px;
        --font-size-h2: 24px;
        --font-size-h3: 20px;
        --spacing-xl: 24px;
        --spacing-lg: 20px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .navbar {
        height: 60px;
    }
    
    .hero {
        padding: 60px 0 var(--spacing-lg) 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .navbar-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        min-width: 100px;
        font-size: var(--font-size-small);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ========== LOADING STATES ========== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--cinza-claro);
    border-top-color: var(--verde-vibrante);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========== ACESSIBILIDADE ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--cinza-escuro);
    color: var(--branco);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles para acessibilidade */
*:focus {
    outline: 2px solid var(--verde-vibrante);
    outline-offset: 2px;
}

button:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

/* ========== POLÍTICA DE PRIVACIDADE ========== */
.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.policy-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
}

.policy-section:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.policy-section h2 {
    color: var(--cinza-escuro);
    font-size: var(--font-size-h4);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.policy-section h3 {
    color: var(--cinza-escuro);
    font-size: var(--font-size-h5);
    font-weight: 500;
    margin: var(--spacing-sm) 0 var(--spacing-xs) 0;
}

.policy-section p {
    margin-bottom: var(--spacing-xs);
    text-align: justify;
    font-size: var(--font-size-small);
}

.policy-section ul {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
}

.policy-section li {
    margin-bottom: 2px;
    line-height: 1.4;
    font-size: var(--font-size-small);
}

.last-updated {
    background: var(--cinza-claro);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xs);
    display: inline-block;
    font-size: var(--font-size-small);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: var(--branco);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--verde-vibrante);
}

.contact-info .contact-item i {
    margin-top: 2px;
    font-size: var(--font-size-base);
}

.page-title {
    font-size: var(--font-size-h2);
    color: var(--cinza-escuro);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--cinza-medio);
    max-width: 600px;
    margin: 0 auto;
}

/* Seção hero mais compacta para política de privacidade */
.bg-cinza-claro .section {
    padding: var(--spacing-lg) 0;
}

.bg-cinza-claro .mb-5 {
    margin-bottom: var(--spacing-md) !important;
}

/* ========== HEADER SIMPLIFICADO PARA PÁGINAS LEGAIS ========== */
.legal-page-header {
    background-color: var(--branco);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--cinza-claro);
}

.legal-page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.legal-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.back-to-home-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--verde-vibrante);
    color: var(--branco);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 500;
    transition: var(--transition-fast);
}

.back-to-home-btn:hover {
    background-color: var(--verde-escuro);
    color: var(--branco);
    transform: translateX(-2px);
}

.back-to-home-btn i {
    font-size: 14px;
}

.legal-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.legal-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    max-width: 180px;
}

.legal-logo:hover .legal-logo-img {
    transform: scale(1.05);
}

.legal-page-header .language-selector {
    display: flex;
    gap: var(--spacing-xs);
}

.legal-page-header .language-btn {
    background: none;
    border: 1px solid var(--cinza-medio);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.legal-page-header .language-btn:hover,
.legal-page-header .language-btn.active {
    border-color: var(--verde-vibrante);
    background-color: var(--verde-vibrante);
    color: var(--branco);
}

/* Responsivo para header legal */
@media (max-width: 768px) {
    .legal-header-left {
        gap: var(--spacing-sm);
    }
    
    .back-to-home-btn span {
        display: none;
    }
    
    .legal-logo-img {
        height: 32px;
    }
}

/* ========== DASHBOARD CLIENT STYLES ========== */
.dashboard-page {
    background-color: #fafafa;
    min-height: 100vh;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard-header {
    background: var(--branco);
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

.dashboard-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--verde-vibrante);
}

.user-name {
    font-weight: 500;
    color: var(--cinza-escuro);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: var(--spacing-xs);
    color: var(--cinza-escuro);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-toggle:hover {
    color: var(--verde-vibrante);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--branco);
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm);
    color: var(--cinza-escuro);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--verde-vibrante);
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: var(--spacing-xs) 0;
}

.dashboard-main {
    padding: var(--spacing-xl) 0;
}

.welcome-section {
    margin-bottom: var(--spacing-xl);
}

/* Status Header */
.status-header {
    margin-bottom: var(--spacing-lg);
}

.status-card {
    background: linear-gradient(135deg, var(--verde-vibrante) 0%, var(--verde-escuro) 100%);
    border-radius: 10px;
    padding: 20px 24px;
    color: var(--branco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(46, 204, 113, 0.15);
}

.user-greeting {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--branco);
}

.application-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pre-approved {
    background: rgba(255, 255, 255, 0.2);
    color: var(--branco);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-description {
    font-size: 13px;
    opacity: 0.9;
}

.credit-summary {
    display: flex;
    gap: 24px;
    text-align: right;
}

.credit-amount, .credit-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.amount-value, .score-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.amount-label, .score-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
    color: var(--branco);
}

.welcome-subtitle {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.quick-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.quick-actions .btn {
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-actions .btn-outline {
    color: var(--branco);
    background: rgba(255, 255, 255, 0.1);
}

.quick-actions .btn-outline:hover {
    background: var(--branco);
    color: var(--verde-vibrante);
}

.welcome-stats {
    display: flex;
    gap: var(--spacing-md);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--branco);
}

.stat-info p {
    font-size: var(--font-size-small);
    opacity: 0.8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.dashboard-card {
    background: var(--branco);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
    transition: var(--transition-fast);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-medium);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: block;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    font-size: var(--font-size-h4);
    color: var(--cinza-escuro);
    margin: 0;
}

.view-all {
    color: var(--verde-vibrante);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-fast);
}

.application-item:hover {
    background-color: #f8f9fa;
}

.application-info h5 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--cinza-escuro);
}

.application-info p {
    margin: 0;
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
}

.application-status {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d1edff;
    color: #0c5460;
}

.status-processing {
    background-color: #e2e3e5;
    color: #383d41;
}

.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--verde-vibrante);
    border-radius: 50%;
    border: 2px solid var(--branco);
    box-shadow: 0 0 0 2px var(--verde-vibrante);
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 2px;
    height: calc(100% + var(--spacing-md));
    background-color: #e9ecef;
}

.activity-content h6 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--cinza-escuro);
}

.activity-content p {
    margin: 0;
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
}

.activity-time {
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
    margin-left: auto;
    white-space: nowrap;
}

.credit-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-lg);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--verde-vibrante);
    display: block;
}

.score-label {
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-range {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    background-color: #d1edff;
}

.score-range.good {
    background-color: #d4edda;
}

.range-label {
    display: block;
    font-weight: 500;
    color: var(--cinza-escuro);
}

.range-values {
    display: block;
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
}

.time-filter {
    display: flex;
    gap: var(--spacing-xs);
}

.filter-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--verde-vibrante);
    color: var(--branco);
    border-color: var(--verde-vibrante);
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.overview-stat {
    text-align: center;
}

.overview-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verde-vibrante);
    margin-bottom: var(--spacing-xs);
}

.overview-stat .stat-label {
    font-size: var(--font-size-small);
    color: var(--cinza-medio);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    position: relative;
    height: 300px;
}

.footer-simple {
    background: var(--branco);
    border-top: 1px solid #e9ecef;
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--cinza-medio);
    text-decoration: none;
    font-size: var(--font-size-small);
}

.footer-links a:hover {
    color: var(--verde-vibrante);
}

/* Dashboard Sections */
.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-section {
    background: var(--branco);
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.section-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.section-header h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--cinza-escuro);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: var(--verde-vibrante);
    font-size: 13px;
}

.btn-edit, .btn-add {
    background: none;
    border: 1px solid #d0d7de;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--cinza-escuro);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-edit:hover, .btn-add:hover {
    border-color: var(--verde-vibrante);
    color: var(--verde-vibrante);
}

/* Estado do botão salvar */
.btn-edit.save-mode {
    background: var(--verde-vibrante);
    border-color: var(--verde-vibrante);
    color: var(--branco);
}

.btn-edit.save-mode:hover {
    background: var(--verde-escuro);
    border-color: var(--verde-escuro);
    color: var(--branco);
}

.completion-indicator {
    background: #f0f6ff;
    color: #0969da;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Profile Grid */
.profile-grid {
    padding: 12px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 12px;
    max-width: 100%;
    overflow: hidden;
}

/* Force compact layout for desktop */
@media (min-width: 1000px) {
    .profile-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px 16px;
    }
}

/* Responsive adjustments */
@media (max-width: 999px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 12px;
    }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 36px;
    justify-content: flex-start;
}

.profile-label {
    font-size: 9px;
    color: #656d76;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-value {
    font-size: 11px;
    color: var(--cinza-escuro);
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-value.editable {
    padding: 3px 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.2s;
    min-height: 16px;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.profile-value.editable.readonly {
    cursor: default;
    background: #f8f9fa;
    border-color: #e1e5e9;
}

.profile-value.editable.readonly:hover {
    background: #f8f9fa;
    border-color: #e1e5e9;
}

/* Estado de edição - campos verdes */
.profile-section.editing .profile-value.editable {
    background: #e8f5e8;
    border-color: var(--verde-vibrante);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.15);
    animation: editPulse 0.3s ease;
}

@keyframes editPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.profile-section.editing .profile-value.editable input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 11px;
    font-weight: 500;
    color: var(--cinza-escuro);
    padding: 0;
    font-family: inherit;
    line-height: 1.2;
}

.profile-section.editing .profile-value.editable input:focus {
    background: transparent;
}

/* Campos não editáveis em modo de edição */
.profile-section.editing .profile-value:not(.editable) {
    opacity: 0.6;
    background: #f0f0f0;
}

/* Removed old profile input styles - using new system */

/* Documents Grid - Alinhamento matemático perfeito */
.documents-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .document-card {
        height: 180px;
    }
    
    .doc-preview-box {
        width: 85px;
        height: 70px;
        margin: 10px auto 3px auto;
    }
    
    .preview-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .preview-text {
        font-size: 7px;
    }
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .document-card {
        height: 170px;
        padding: 8px;
    }
    
    .doc-header {
        height: 24px;
    }
    
    .doc-icon {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    
    .doc-info h4 {
        font-size: 9px;
    }
    
    .doc-info p {
        font-size: 7px;
    }
    
    .doc-preview-box {
        width: 80px;
        height: 65px;
        margin: 8px auto 2px auto;
    }
    
    .preview-icon {
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
    
    .preview-text {
        font-size: 7px;
    }
    
    .btn-status, .btn-upload, .btn-replace {
        font-size: 8px;
        min-width: 70px;
        height: 20px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .document-card {
        height: 180px;
        padding: 10px;
    }
    
    .doc-preview-box {
        height: 55px;
        max-width: 90px;
    }
    
    .doc-info h4 {
        font-size: 10px;
    }
    
    .doc-info p {
        font-size: 8px;
    }
    
    .preview-icon {
        font-size: 14px;
    }
    
    .preview-text {
        font-size: 7px;
    }
    
    .btn-status, .btn-upload, .btn-replace {
        font-size: 9px;
        padding: 5px 10px;
        min-width: 75px;
    }
}

.document-card {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s;
    position: relative;
    height: 200px;
    background: var(--branco);
    overflow: hidden;
    box-sizing: border-box;
}

.document-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.document-card:hover {
    border-color: #c9d1d9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Header do documento - Alinhamento central perfeito */
.doc-header {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.doc-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fa;
    color: var(--cinza-escuro);
    font-size: 9px;
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 30px;
}

.doc-info h4 {
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 1px 0;
    color: var(--cinza-escuro);
    line-height: 1.1;
}

.doc-info p {
    font-size: 8px;
    color: #656d76;
    margin: 0;
    line-height: 1.2;
}

/* Caixa de preview - Espaçamento otimizado */
.doc-preview-box {
    width: 100px;
    height: 80px;
    margin: 12px auto 4px auto;
    border: 2px dashed #d0d7de;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.doc-preview-box.pending {
    border-color: #f39c12;
    background: #fef5e7;
    border-style: dashed;
}

.doc-preview-box.pending .preview-icon {
    color: #f39c12;
}

.doc-preview-box.pending .preview-text {
    color: #e67e22;
    font-weight: 500;
}

.doc-preview-box.processing {
    border-color: #3498db;
    background: #e3f2fd;
    border-style: solid;
}

.doc-preview-box.processing .preview-icon {
    color: #3498db;
}

.doc-preview-box.processing .preview-text {
    color: #2980b9;
    font-weight: 500;
}

.doc-preview-box.uploaded {
    border-color: var(--verde-vibrante);
    background: #f0f9ff;
    border-style: solid;
}

.doc-preview-box.uploaded .preview-icon {
    color: var(--verde-vibrante);
}

.doc-preview-box.uploaded .preview-text {
    color: var(--verde-escuro);
    font-weight: 500;
}

.preview-icon {
    font-size: 18px;
    color: #8b949e;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
}

.preview-text {
    font-size: 8px;
    color: #8b949e;
    text-align: center;
    transition: all 0.2s;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    padding: 0 4px;
}

.doc-preview-box:hover {
    border-color: var(--verde-vibrante);
    background: #f8fff8;
}

.doc-preview-box:hover .preview-icon {
    color: var(--verde-vibrante);
    transform: scale(1.1);
}

.doc-preview-box:hover .preview-text {
    color: var(--verde-vibrante);
}

/* Quando tem imagem uploadada */
.doc-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
}

/* PDF Preview Container */
.pdf-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    width: 100%;
}

.pdf-document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-document-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.pdf-doc-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--verde-escuro);
    line-height: 1.2;
    max-width: 100px;
    text-align: center;
}

.pdf-file-type {
    font-size: 8px;
    color: #e74c3c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 8px 0;
}

.doc-status.pending {
    background: #fff3cd;
    color: #856404;
}

.doc-status.approved {
    background: #d4edda;
    color: #155724;
}

.doc-status.processing {
    background: #cce5ff;
    color: #0066cc;
}

.doc-status.rejected {
    background: #ffebee;
    color: #d32f2f;
}

.doc-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    flex-shrink: 0;
    margin-top: auto;
}

.btn-status, .btn-upload, .btn-replace {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    height: 24px;
    justify-content: center;
    box-sizing: border-box;
}

/* Sistema de Botão Único - Estados */
.btn-status {
    background: #f39c12;
    color: var(--branco);
    border: 1px solid #f39c12;
}

.btn-status:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.btn-status.ready {
    background: var(--verde-vibrante);
    color: var(--branco);
    border: 1px solid var(--verde-vibrante);
}

.btn-status.ready:hover {
    background: var(--verde-escuro);
    border-color: var(--verde-escuro);
}

.btn-status.uploaded {
    background: var(--branco);
    color: var(--verde-vibrante);
    border: 1px solid var(--verde-vibrante);
}

.btn-status.uploaded:hover {
    background: var(--verde-vibrante);
    color: var(--branco);
}

/* Estados antigos mantidos para compatibilidade */
.btn-upload {
    background: var(--verde-vibrante);
    color: var(--branco);
    border: 1px solid var(--verde-vibrante);
}

.btn-upload:hover {
    background: var(--verde-escuro);
    border-color: var(--verde-escuro);
}

.btn-upload:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-replace {
    background: var(--branco);
    color: var(--verde-vibrante);
    border: 1px solid var(--verde-vibrante);
}

.btn-replace:hover {
    background: var(--verde-vibrante);
    color: var(--branco);
}

.btn-replace:disabled {
    background: #f6f8fa;
    border-color: #d0d7de;
    color: #8b949e;
    cursor: not-allowed;
}

/* Removed old thumbnail styles - using new preview box system */

/* Document Preview Modal */
.doc-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.doc-preview-content {
    max-width: 80vw;
    max-height: 80vh;
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.doc-preview-header {
    padding: 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: between;
    align-items: center;
    background: #f8f9fa;
}

.doc-preview-body {
    padding: 20px;
    text-align: center;
}

.doc-preview-body img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
}

.doc-preview-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #656d76;
    cursor: pointer;
    z-index: 1001;
}

/* PDF Modal Styles */
.pdf-modal-content {
    width: 500px;
    max-width: 90vw;
}

.pdf-preview-body {
    padding: 24px;
}

.pdf-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pdf-large-icon {
    font-size: 48px;
    color: #e74c3c;
    flex-shrink: 0;
}

.pdf-file-details {
    text-align: left;
}

.pdf-file-details h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.pdf-file-details p {
    margin: 4px 0;
    font-size: 13px;
    color: #656d76;
}

.pdf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.pdf-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    font-size: 13px;
    color: #0c5460;
}

.pdf-note i {
    color: #17a2b8;
    flex-shrink: 0;
}

/* PDF Image Preview Styles */
.pdf-image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pdf-image-preview img:hover {
    transform: scale(1.05);
}

.pdf-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(4px);
}

.pdf-badge i {
    font-size: 8px;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    gap: 6px;
}

/* Cobuyer Document Upload Modal */
.cobuyer-doc-modal {
    width: 500px;
    max-width: 90vw;
}

.cobuyer-doc-section {
    padding: 20px;
}

.doc-info-header {
    text-align: center;
    margin-bottom: 24px;
}

.doc-info-header h4 {
    margin: 0 0 8px 0;
    color: var(--cinza-escuro);
    font-size: 18px;
}

.doc-info-header p {
    margin: 0;
    color: #656d76;
    font-size: 13px;
}

.cobuyer-doc-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.upload-requirements {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--verde-vibrante);
}

.upload-requirements h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--cinza-escuro);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-requirements h5 i {
    color: var(--verde-vibrante);
}

.upload-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.upload-requirements li {
    font-size: 13px;
    color: #656d76;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Cobuyer Document Cards in Main View */
.cobuyer-doc-card {
    background: var(--branco);
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 180px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cobuyer-doc-card:hover {
    border-color: var(--verde-vibrante);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.1);
}

.cobuyer-doc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.cobuyer-doc-header .cobuyer-doc-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #656d76;
    font-size: 14px;
}

.cobuyer-doc-header h5 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.cobuyer-doc-header p {
    margin: 0;
    font-size: 10px;
    color: #8b949e;
}

.cobuyer-doc-preview-box {
    width: 100%;
    height: 80px;
    width: 100px;
    margin: 8px auto;
    border: 2px dashed #d0d7de;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.cobuyer-doc-preview-box.pending {
    border-color: #f39c12;
    background: #fef5e7;
    border-style: dashed;
}

.cobuyer-doc-preview-box.pending .preview-icon {
    color: #f39c12;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
}

.cobuyer-doc-preview-box.pending .preview-text {
    color: #e67e22;
    font-weight: 500;
    font-size: 8px;
    line-height: 1.1;
    margin: 0;
    padding: 0 4px;
    text-align: center;
}

.cobuyer-doc-preview-box.uploaded {
    border-color: var(--verde-vibrante);
    background: #f0f9ff;
    border-style: solid;
}

.cobuyer-doc-preview-box.uploaded .preview-icon {
    color: var(--verde-vibrante);
}

.cobuyer-doc-preview-box.uploaded .preview-text {
    color: var(--verde-escuro);
    font-weight: 500;
}

.cobuyer-doc-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

.cobuyer-doc-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.cobuyer-doc-status.pending {
    background: #fff3cd;
    color: #856404;
}

.cobuyer-doc-status.uploaded {
    background: #cce5ff;
    color: #0066cc;
}

.cobuyer-doc-status.approved {
    background: #d4edda;
    color: #155724;
}

.doc-preview-close:hover {
    color: var(--cinza-escuro);
}

/* Co-buyers Section */
.cobuyers-list {
    padding: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #656d76;
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 13px;
    margin: 0 0 4px 0;
}

.empty-state small {
    font-size: 11px;
    opacity: 0.8;
}

/* Cobuyer Card */
.cobuyer-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--branco);
}

.cobuyer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e5e9;
}

.cobuyer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.cobuyer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
}

.status-incomplete {
    color: #856404;
}

.status-complete {
    color: #155724;
}

.cobuyer-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-edit-cobuyer {
    background: var(--branco);
    border: 1px solid #d0d7de;
    color: #656d76;
}

.btn-edit-cobuyer:hover {
    border-color: var(--verde-vibrante);
    color: var(--verde-vibrante);
}

.btn-remove {
    background: var(--branco);
    border: 1px solid #d32f2f;
    color: #d32f2f;
}

.btn-remove:hover {
    background: #d32f2f;
    color: var(--branco);
}

.cobuyer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cobuyer-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cobuyer-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--verde-escuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cobuyer-profile-grid,
.signer-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

/* Main Signer Card Styles */
.main-signer-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: var(--branco);
    overflow: hidden;
    margin-bottom: 20px;
}

.signer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.signer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.signer-title i {
    color: var(--verde-vibrante);
}

.signer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.signer-status.status-incomplete {
    background: #fff3cd;
    color: #856404;
}

.signer-status.status-complete {
    background: #d4edda;
    color: #155724;
}

.signer-actions {
    display: flex;
    gap: 8px;
}

.signer-content {
    padding: 20px;
}

.signer-info-section {
    margin-bottom: 24px;
}

.signer-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--verde-escuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e1e5e9;
}

.signer-documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.signer-document-card {
    height: 200px; /* Same height as cobuyer cards */
}

/* Profile Editing Styles for Both Signer and Cobuyer */
.cobuyer-profile-wrapper.editing .profile-value.editable,
.signer-profile-wrapper.editing .profile-value.editable {
    background: #e8f5e8;
    border-color: var(--verde-vibrante);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.15);
    animation: editPulse 0.3s ease;
}

.cobuyer-profile-wrapper.editing .profile-value.editable input,
.cobuyer-profile-wrapper.editing .profile-value.editable select,
.signer-profile-wrapper.editing .profile-value.editable input,
.signer-profile-wrapper.editing .profile-value.editable select {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 11px;
    font-weight: 500;
    color: var(--cinza-escuro);
    padding: 0;
    font-family: inherit;
    line-height: 1.2;
}

.cobuyer-profile-wrapper.editing .profile-value.editable select,
.signer-profile-wrapper.editing .profile-value.editable select {
    cursor: pointer;
}

.cobuyer-profile-wrapper.editing .profile-value.editable input:focus,
.cobuyer-profile-wrapper.editing .profile-value.editable select:focus,
.signer-profile-wrapper.editing .profile-value.editable input:focus,
.signer-profile-wrapper.editing .profile-value.editable select:focus {
    background: transparent;
}

.cobuyer-profile-wrapper.editing .profile-value:not(.editable),
.signer-profile-wrapper.editing .profile-value:not(.editable) {
    opacity: 0.6;
    background: #f0f0f0;
}

/* Responsive adjustments for signer */
@media (max-width: 768px) {
    .signer-documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .signer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .signer-status {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .signer-documents-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .signer-content {
        padding: 16px;
    }
}

.cobuyer-documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cobuyer-document-card {
    height: 240px; /* Same height as main signer cards */
}

@media (max-width: 768px) {
    .cobuyer-documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cobuyer-documents-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.cobuyer-doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 11px;
}

.cobuyer-doc-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fa;
    border-radius: 3px;
    font-size: 10px;
    color: #656d76;
}

.cobuyer-doc-info {
    flex: 1;
}

.cobuyer-doc-name {
    font-weight: 500;
    color: var(--cinza-escuro);
    margin-bottom: 2px;
}

.cobuyer-doc-status {
    font-size: 10px;
    color: #656d76;
}

.cobuyer-contract-section {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e1e5e9;
}

.cobuyer-contract-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.contract-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.contract-actions {
    display: flex;
    gap: 6px;
}

/* Cobuyer Modal */
.cobuyer-modal {
    max-width: 700px;
}

.cobuyer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 11px;
    color: #656d76;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.form-input {
    padding: 8px 10px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 12px;
    color: var(--cinza-escuro);
}

.form-input:focus {
    outline: none;
    border-color: var(--verde-vibrante);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Responsive Cobuyer */
@media (max-width: 768px) {
    .cobuyer-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cobuyer-profile-grid,
    .cobuyer-documents-grid {
        grid-template-columns: 1fr;
    }
    
    .cobuyer-form-grid {
        grid-template-columns: 1fr;
    }
    
    .cobuyer-actions {
        flex-direction: column;
    }
    
    .cobuyer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Contract Section */
.contract-actions {
    padding: 20px;
}

.contract-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.contract-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--cinza-escuro);
}

.contract-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.summary-item .label {
    color: #656d76;
}

.summary-item .value {
    color: var(--cinza-escuro);
    font-weight: 500;
}

.contract-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.contract-status {
    background: #e6f7ff;
    color: #0969da;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .status-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .credit-summary {
        justify-content: center;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .contract-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .contract-buttons {
        flex-direction: row;
        width: 100%;
    }
    
    .contract-buttons .btn {
        flex: 1;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .user-menu {
        position: relative;
    }
    
    .user-name {
        display: none;
    }
}

/* ========== MODAL SYSTEM STYLES ========== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

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

/* Modal Content Base */
.modal-content {
    background: var(--branco);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

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

/* Modal Header */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--cinza-escuro);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #656d76;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--cinza-escuro);
}

/* Modal Body */
.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

/* ========== CONTRACT MODAL STYLES ========== */

.contract-modal {
    max-width: 800px;
}

.contract-viewer {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cinza-escuro);
}

.contract-viewer h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    color: var(--preto);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contract-viewer h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: var(--verde-escuro);
}

.contract-viewer p {
    margin-bottom: 12px;
    text-align: justify;
}

.contract-viewer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.contract-viewer li {
    margin-bottom: 8px;
}

.contract-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e1e5e9;
    font-style: italic;
    font-size: 11px;
    color: #656d76;
}

/* ========== SIGNATURE MODAL STYLES ========== */

.signature-modal {
    max-width: 650px;
}

.signature-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--branco);
    border-color: var(--verde-vibrante);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.step.completed {
    background: #f0f9ff;
    border-color: #0969da;
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #656d76;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--verde-vibrante);
    color: var(--branco);
}

.step.completed .step-number {
    background: #0969da;
    color: var(--branco);
}

.step.completed .step-number::before {
    content: '✓';
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--cinza-escuro);
}

.step-content p {
    font-size: 12px;
    color: #656d76;
    margin: 0 0 12px 0;
}

.verification-input {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--cinza-escuro);
}

.verification-input:focus {
    outline: none;
    border-color: var(--verde-vibrante);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ========== SIGNATURE PAD STYLES ========== */

.signature-pad {
    border: 2px dashed #d0d7de;
    border-radius: 8px;
    padding: 16px;
    background: #fafbfc;
    text-align: center;
}

.signature-pad canvas {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: var(--branco);
    cursor: crosshair;
    display: block;
    margin: 0 auto;
}

.signature-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.signature-actions p {
    font-size: 11px;
    color: #656d76;
    margin: 0;
    font-style: italic;
}

.btn-clear {
    background: none;
    border: 1px solid #d0d7de;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--cinza-escuro);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    border-color: var(--vermelho-erro);
    color: var(--vermelho-erro);
}

/* ========== RESPONSIVE MODAL STYLES ========== */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .contract-modal,
    .signature-modal {
        max-width: 100%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .signature-steps {
        gap: 16px;
    }
    
    .step {
        padding: 16px;
    }
    
    .signature-pad canvas {
        width: 100%;
        height: 150px;
    }
    
    .signature-actions {
        flex-direction: column;
        text-align: center;
    }
    
    .verification-input {
        max-width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}/* Force deploy Mon Feb 23 15:06:00 UTC 2026 */
