/* Ajuste fonte do select do sistema de amortização */
#sistema-amortizacao {
    font-size: 1rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    background-color: var(--card-bg);
}

#sistema-amortizacao option {
    color: var(--text-primary);
    background: var(--card-bg);
}
    width: 100%;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

#sistema-amortizacao:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 211, 105, 0.2);
}
/* Tabela de Amortização - Financiamento Imobiliário */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(34,40,49,0.04);
}

.amortizacao-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
    min-width: 700px;
    background: var(--card-bg);
}

.amortizacao-table thead th {
    position: sticky;
    top: 0;
    background: var(--background);
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    padding: 14px 10px;
    border-bottom: 2px solid var(--primary-color);
    z-index: 2;
}

.amortizacao-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--card-bg);
}

.amortizacao-table tbody tr:nth-child(even) td {
    background: var(--background);
}

.amortizacao-table tbody tr:hover td {
    background: var(--primary-light);
    color: #222831 !important;
}
}

.amortizacao-table tfoot td {
    font-weight: 600;
    background: var(--color-salario);
    color: #fff;
}

@media (max-width: 900px) {
    .amortizacao-table {
        font-size: 0.92rem;
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .amortizacao-table {
        font-size: 0.85rem;
        min-width: 480px;
    }
    .table-container {
        border-radius: 0;
        box-shadow: none;
    }
}
/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta simplificada - fundo branco, texto preto */
    --primary-color: #FFD369;
    --primary-dark: #e6b84d;
    --primary-light: #fff3d6;
    --accent-color: #393E46;
    --accent-light: #4a5058;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --warning-color: #FFD369;
    --warning-light: #fff3d6;
    --neutral-color: #393E46;
    --background: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    
    /* Cores dos cards */
    --color-stocks: #22c55e;
    --color-compound: #3b82f6;
    --color-home: #8b5cf6;
    --color-cartao: #ec4899;
    --color-aposentadoria: #f97316;
    --color-moedas: #FFD369;
    --color-salario: #14b8a6;
    --color-rescisao: #ef4444;
    --color-ferias: #0ea5e9;
    --color-decimo: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 90px; /* espaço para a navegação fixa */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

header > * {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.header-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-text strong {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

/* Lucide Icons Styles */
.logo-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 211, 105, 0.25);
}

.logo-icon-wrapper.page-icon-stocks {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
}

.logo-icon-wrapper.page-icon-compound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.logo-lucide {
    width: 22px;
    height: 22px;
    color: #222831;
    stroke-width: 2.5;
}

.nav-lucide {
    width: 24px;
    height: 24px;
    color: #FFD369;
}

.nav-link-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.badge-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
    color: var(--primary-color);
}

.disclaimer-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    color: var(--warning-color);
}

.footer-icon-wrapper {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 211, 105, 0.3);
}

.footer-lucide {
    width: 20px;
    height: 20px;
    color: #222831;
    stroke-width: 2.5;
}

/* Tool Card Icons */
.tool-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-lucide {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2;
}

/* Cores únicas para cada calculadora */
.tool-icon-wrapper:has(.tool-lucide-stocks) {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.tool-icon-wrapper:has(.tool-lucide-compound) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.tool-icon-wrapper:has(.tool-lucide-home) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

.tool-icon-wrapper:has(.tool-lucide-cartao) {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
}

.tool-icon-wrapper:has(.tool-lucide-aposentadoria) {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.tool-icon-wrapper:has(.tool-lucide-moedas) {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    box-shadow: 0 8px 25px rgba(255, 211, 105, 0.35);
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(-3deg);
}

/* ========== CARD COLOR THEMES ========== */
/* Cada card tem sua cor única para borda, glow e tags */

/* Ações - Verde */
.card-stocks {
    --card-accent-color: #22c55e;
    --icon-glow-color: rgba(34, 197, 94, 0.5);
    --tag-bg: rgba(34, 197, 94, 0.15);
    --tag-color: #166534;
    --tag-border: rgba(34, 197, 94, 0.3);
}

/* FIIs - Rosa */
.card-fiis {
    --card-accent-color: #ec4899;
    --icon-glow-color: rgba(236, 72, 153, 0.5);
    --tag-bg: rgba(236, 72, 153, 0.15);
    --tag-color: #9d174d;
    --tag-border: rgba(236, 72, 153, 0.3);
}
.card-fiis .tool-icon-wrapper {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
}
.tool-lucide-fiis {
    color: white;
}

/* ETFs Internacionais - Índigo */
.card-etfs {
    --card-accent-color: #6366f1;
    --icon-glow-color: rgba(99, 102, 241, 0.5);
    --tag-bg: rgba(99, 102, 241, 0.15);
    --tag-color: #4338ca;
    --tag-border: rgba(99, 102, 241, 0.3);
}
.card-etfs .tool-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}
.tool-lucide-etfs {
    color: white;
}

/* Tesouro Direto - Azul escuro */
.card-tesouro {
    --card-accent-color: #0369a1;
    --icon-glow-color: rgba(3, 105, 161, 0.5);
    --tag-bg: rgba(3, 105, 161, 0.15);
    --tag-color: #075985;
    --tag-border: rgba(3, 105, 161, 0.3);
}
.card-tesouro .tool-icon-wrapper {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.35);
}
.tool-lucide-tesouro {
    color: white;
}

/* Financiamento de Veículos - Laranja */
.card-veiculo {
    --card-accent-color: #f97316;
    --icon-glow-color: rgba(249, 115, 22, 0.5);
    --tag-bg: rgba(249, 115, 22, 0.15);
    --tag-color: #c2410c;
    --tag-border: rgba(249, 115, 22, 0.3);
}
.card-veiculo .tool-icon-wrapper {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}
.tool-lucide-veiculo {
    color: white;
}

/* Refinanciamento de Dívidas - Roxo */
.card-refinanciamento {
    --card-accent-color: #8b5cf6;
    --icon-glow-color: rgba(139, 92, 246, 0.5);
    --tag-bg: rgba(139, 92, 246, 0.15);
    --tag-color: #5b21b6;
    --tag-border: rgba(139, 92, 246, 0.3);
}
.card-refinanciamento .tool-icon-wrapper {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}
.tool-lucide-refinanciamento {
    color: white;
}

/* Juros Compostos - Azul */
.card-compound {
    --card-accent-color: #3b82f6;
    --icon-glow-color: rgba(59, 130, 246, 0.5);
    --tag-bg: rgba(59, 130, 246, 0.15);
    --tag-color: #1e40af;
    --tag-border: rgba(59, 130, 246, 0.3);
}

/* Financiamento Imobiliário - Roxo */
.card-home {
    --card-accent-color: #8b5cf6;
    --icon-glow-color: rgba(139, 92, 246, 0.5);
    --tag-bg: rgba(139, 92, 246, 0.15);
    --tag-color: #5b21b6;
    --tag-border: rgba(139, 92, 246, 0.3);
}

/* Cartão - Rosa */
.card-cartao {
    --card-accent-color: #ec4899;
    --icon-glow-color: rgba(236, 72, 153, 0.5);
    --tag-bg: rgba(236, 72, 153, 0.15);
    --tag-color: #9d174d;
    --tag-border: rgba(236, 72, 153, 0.3);
}

/* Aposentadoria - Laranja */
.card-aposentadoria {
    --card-accent-color: #f97316;
    --icon-glow-color: rgba(249, 115, 22, 0.5);
    --tag-bg: rgba(249, 115, 22, 0.15);
    --tag-color: #c2410c;
    --tag-border: rgba(249, 115, 22, 0.3);
}

/* Moedas - Dourado */
.card-moedas {
    --card-accent-color: #FFD369;
    --icon-glow-color: rgba(255, 211, 105, 0.5);
    --tag-bg: rgba(255, 211, 105, 0.2);
    --tag-color: #92400e;
    --tag-border: rgba(255, 211, 105, 0.4);
}

/* Salário - Teal */
.card-salario {
    --card-accent-color: #14b8a6;
    --icon-glow-color: rgba(20, 184, 166, 0.5);
    --tag-bg: rgba(20, 184, 166, 0.15);
    --tag-color: #0f766e;
    --tag-border: rgba(20, 184, 166, 0.3);
}
.card-salario .tool-icon-wrapper {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

/* Rescisão - Vermelho */
.card-rescisao {
    --card-accent-color: #ef4444;
    --icon-glow-color: rgba(239, 68, 68, 0.5);
    --tag-bg: rgba(239, 68, 68, 0.15);
    --tag-color: #b91c1c;
    --tag-border: rgba(239, 68, 68, 0.3);
}
.card-rescisao .tool-icon-wrapper {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

/* Férias - Sky Blue */
.card-ferias {
    --card-accent-color: #0ea5e9;
    --icon-glow-color: rgba(14, 165, 233, 0.5);
    --tag-bg: rgba(14, 165, 233, 0.15);
    --tag-color: #0369a1;
    --tag-border: rgba(14, 165, 233, 0.3);
}
.card-ferias .tool-icon-wrapper {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

/* 13º Salário - Amber */
.card-decimo {
    --card-accent-color: #f59e0b;
    --icon-glow-color: rgba(245, 158, 11, 0.5);
    --tag-bg: rgba(245, 158, 11, 0.15);
    --tag-color: #b45309;
    --tag-border: rgba(245, 158, 11, 0.3);
}
.card-decimo .tool-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.logo-text strong {
    font-weight: 800;
    color: #FFD369;
}

header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

header .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto 15px;
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-header {
    background: var(--background);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #222831;
    color: #FFD369;
}

/* Section Intro */
.section-intro {
    color: var(--text-secondary);
    margin-bottom: 25px;
    margin-top: -10px;
    font-size: 0.95rem;
}

/* Sections */
section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Estilo padrão para selects */
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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 16px center;
    padding-right: 48px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 211, 105, 0.15);
}

.form-group select:hover {
    border-color: var(--primary-color);
}

.form-group .help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Input com botão ao lado */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-with-button input {
    flex: 1;
    min-height: 48px;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    min-height: 48px;
    background: linear-gradient(135deg, #393E46 0%, #222831 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-external:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    color: #222831;
}

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

.btn-external svg {
    flex-shrink: 0;
}

/* Dropdown de Busca */
.dropdown-search {
    position: relative;
}

.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.dropdown-search .btn-external {
    padding-right: 12px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

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

.dropdown-menu.show ~ .btn-external .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--background);
}

.dropdown-item .site-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-item .site-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Input com select ao lado */
.input-with-select {
    display: flex;
    gap: 0;
}

.input-with-select input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-with-select input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-select input::placeholder {
    color: var(--text-secondary);
}

.input-with-select select {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-with-select select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-with-select input:focus + select {
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Button */
.btn-calculate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: var(--color-salario);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 10px;
}

.btn-calculate:hover {
    background: #10a89c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-calculate:active {
    background: #129183;
    transform: translateY(0);
}
/* Botão secundário (Exportar CSV) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #222831;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
    margin: 0 auto 18px auto;
    box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.08));
}

.btn-secondary:hover {
    background: #393e46;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 4px 16px rgba(0,0,0,0.12));
}

.btn-secondary:active {
    background: #181a20;
    transform: translateY(0);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Botões com cores específicas para cada calculadora */
.btn-stocks {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}
.btn-stocks:hover {
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-compound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}
.btn-compound:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-home {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}
.btn-home:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-cartao {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}
.btn-cartao:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.btn-aposentadoria {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}
.btn-aposentadoria:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-moedas {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    color: #222831;
}
.btn-moedas:hover {
    box-shadow: 0 8px 25px rgba(255, 211, 105, 0.4);
}

.btn-salario {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}
.btn-salario:hover {
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-rescisao {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}
.btn-rescisao:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-ferias {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}
.btn-ferias:hover {
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.btn-decimo {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.btn-decimo:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Botões extras para conversor de moedas */
.btn-currency,
.btn-travel {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
    color: #222831;
}
.btn-currency:hover,
.btn-travel:hover {
    box-shadow: 0 8px 25px rgba(255, 211, 105, 0.4);
}

/* Page icon wrappers com cores específicas */
.page-icon-home {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
}

.page-icon-stocks {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.page-icon-compound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.page-icon-home-calc {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.page-icon-cartao {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.page-icon-aposentadoria {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.page-icon-moedas-page {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
}

.page-icon-salario {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.page-icon-rescisao {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.page-icon-ferias {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.page-icon-decimo {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Cor do ícone dentro dos page-icons */
.logo-icon-wrapper.page-icon-stocks .logo-lucide,
.logo-icon-wrapper.page-icon-compound .logo-lucide,
.logo-icon-wrapper.page-icon-home-calc .logo-lucide,
.logo-icon-wrapper.page-icon-cartao .logo-lucide,
.logo-icon-wrapper.page-icon-aposentadoria .logo-lucide,
.logo-icon-wrapper.page-icon-salario .logo-lucide,
.logo-icon-wrapper.page-icon-rescisao .logo-lucide,
.logo-icon-wrapper.page-icon-ferias .logo-lucide,
.logo-icon-wrapper.page-icon-decimo .logo-lucide {
    color: white;
}

.logo-icon-wrapper.page-icon-home .logo-lucide,
.logo-icon-wrapper.page-icon-moedas-page .logo-lucide {
    color: #222831;
}

/* Compact CTA variant (auto width) */
.btn-cta {
    width: auto;
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: 0;
    min-width: 220px;
}

/* Results Section */
.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.stock-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.current-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.current-price strong {
    color: var(--text-primary);
    font-size: 1.3rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Result Cards */
.result-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

.result-card.graham .card-header {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.result-card.bazin .card-header {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.result-card .card-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.buy, .badge-success {
    background: var(--success-light);
    color: var(--success-color);
}

.badge.hold, .badge-warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.badge.sell, .badge-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.badge-info {
    background: #dbeafe;
    color: #2563eb;
}

/* Tipo de Rescisão Badge */
.tipo-rescisao-badge {
    margin-bottom: 20px;
    text-align: center;
}

.tipo-rescisao-badge .badge {
    font-size: 0.9rem;
    padding: 8px 20px;
}

/* Tabela de Rescisão */
.total-row-table {
    background: var(--background);
}

.total-row-table.highlight {
    background: var(--primary-color);
    color: #222831;
}

.total-row-table.highlight td {
    color: #222831;
    font-weight: 700;
}

.total-row-table.fgts {
    background: rgba(34, 197, 94, 0.1);
}

.card-body {
    padding: 25px;
    background: #ffffff !important;
}

.value-display, .margin-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.value-display .label, .margin-display .label {
    color: #393E46 !important;
    font-weight: 500;
}

.value-display .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222831 !important;
}

.margin-display .value {
    font-size: 1.2rem;
    font-weight: 600;
}

.margin-display .value.positive {
    color: var(--success-color);
}

.margin-display .value.negative {
    color: var(--danger-color);
}

.formula-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa !important;
    border-radius: var(--radius-sm);
}

.formula-info p {
    font-size: 0.9rem;
    color: #393E46 !important;
    margin-bottom: 8px;
}

.formula-info .description {
    font-style: italic;
}

/* Combined Analysis */
.combined-analysis {
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid #e6b84d;
    transition: background 0.3s ease, color 0.2s ease, border-color 0.2s ease;
    color: var(--text-primary);
}

/* Success = ambas as regras atendidas */
.combined-analysis.success {
    background: var(--card-bg);
    border-left-color: #22c55e;
    color: var(--text-primary);
}

/* Warning = atende parcialmente */
.combined-analysis.warning {
    background: var(--card-bg);
    border-left-color: #facc15;
    color: var(--text-primary);
}

/* Danger = não atende */
.combined-analysis.danger {
    background: var(--card-bg);
    border-left-color: #ef4444;
    color: var(--text-primary);
}

.combined-analysis h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: inherit !important;
    font-weight: 700;
}

.combined-analysis p {
    font-size: 1rem;
    color: inherit !important;
    line-height: 1.7;
}

/* garantir que links/fortes não clareiem o texto */
.combined-analysis a,
.combined-analysis strong,
.combined-analysis b,
.combined-analysis span,
.combined-analysis em,
.combined-analysis small,
.combined-analysis ul,
.combined-analysis li {
    color: inherit !important;
}

.combined-analysis ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.combined-analysis li {
    padding: 8px 0;
    line-height: 1.6;
}

/* Indicators */
.indicators h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.indicator {
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius-sm);
    text-align: center;
}

.indicator-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.indicator-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.education-card {
    padding: 25px;
    background: #f8f9fa !important;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
    color: #222831 !important;
}

.education-card h3 {
    color: #222831 !important;
}

.education-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #222831 !important;
}

.education-card p {
    font-size: 0.95rem;
    color: #393E46 !important;
    margin-bottom: 15px;
}

.education-card ul,
.education-card ol,
.education-card li {
    color: #393E46 !important;
}

.education-card li strong {
    color: #222831 !important;
}

.formula-box {
    padding: 15px;
    background: #ffffff !important;
    border-radius: var(--radius-sm);
    border: 1px solid #e0e0e0 !important;
}

.formula-box p {
    color: #222831 !important;
    margin-bottom: 5px;
}

.formula-box small {
    color: #393E46 !important;
    font-size: 0.85rem;
}

.disclaimer {
    padding: 20px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--danger-color);
    text-align: center;
}

.disclaimer p {
    font-size: 0.95rem;
    color: var(--danger-color);
}

/* Disclaimer dentro dos resultados - estilo mais suave */
.disclaimer-results {
    background: var(--card-bg);
    border-left: 4px solid var(--warning-color);
    margin-bottom: 25px;
    padding: 20px;
    border-radius: var(--radius);
}

.disclaimer-results p {
    color: var(--text-primary);
}

/* Disclaimer dentro da análise combinada */
.disclaimer-inside {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.disclaimer-inside p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disclaimer-inside .disclaimer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer */
footer {
    text-align: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-top: 25px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.footer-brand strong {
    color: #FFD369;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   ESPAÇOS PARA ANÚNCIOS
   ======================================== */

.ad-container {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: linear-gradient(135deg, var(--background) 0%, var(--border-color) 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    position: relative;
}

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 12px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.ad-placeholder p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Variações de tamanho */
.ad-banner-top .ad-placeholder,
.ad-banner-middle .ad-placeholder,
.ad-banner-bottom .ad-placeholder {
    max-width: 728px;
    min-height: 90px;
}

/* Anúncio responsivo mobile */
@media (max-width: 768px) {
    .ad-placeholder {
        max-width: 320px;
        min-height: 100px;
    }
    
    .ad-placeholder p {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 30px 15px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    header .subtitle {
        font-size: 0.95rem;
    }
    
    .header-badges {
        gap: 8px;
    }
    
    .badge-header {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    section {
        padding: 20px;
    }
    
    .stock-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Fix para inputs de data no mobile */
    .form-group {
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-group input,
    .form-group input[type="date"],
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Garante que inputs de data não quebrem o layout */
    input[type="date"] {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compound-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
}

/* ========================================
   CALCULADORA DE JUROS COMPOSTOS
   ======================================== */

.compound-section {
    background: var(--card-bg);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    margin-top: -15px;
}

/* Campo de inflação */
.inflation-group {
    max-width: 100%;
}

.inflation-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.optional-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 500;
}

.inflation-group .help-text {
    line-height: 1.5;
}

/* Seção de valor real */
.real-value-section {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.real-value-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.real-value-explanation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.real-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.real-value-card {
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.real-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.real-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 5px;
}

.real-info {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.compound-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

.compound-results h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.compound-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    padding: 25px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.summary-card.total {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.summary-card.invested {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.summary-card.profit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.summary-card.percentage {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Gráfico de Juros Compostos */
.chart-container {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--background);
    border-radius: var(--radius);
}

.chart-container h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.chart-wrapper {
    height: 350px;
    position: relative;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-color.total {
    background: #10b981;
}

.legend-color.invested {
    background: #6366f1;
}

.legend-color.profit {
    background: #f59e0b;
}

.compound-details {
    margin-bottom: 25px;
}

.compound-details h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

#compoundTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#compoundTable th,
#compoundTable td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

#compoundTable th {
    background: var(--background);
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

#compoundTable th:first-child,
#compoundTable td:first-child {
    text-align: center;
}

#compoundTable tbody tr:hover {
    background: var(--background);
}

#compoundTable tbody tr:last-child td {
    border-bottom: none;
}

.compound-formula {
    padding: 15px;
    background: var(--background);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.compound-formula p {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.compound-formula small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Tools Grid - Home Page */
.tools-section {
    margin: 40px 0;
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

/* Animação de entrada dos cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }
.tool-card:nth-child(10) { animation-delay: 0.5s; }

/* Responsividade do grid */
@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(34, 40, 49, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent-color, var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 40, 49, 0.15);
    border-color: var(--card-accent-color, var(--primary-color));
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* Legacy tool-icon for emoji fallback */
.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
}

/* Override for new icon wrappers */
.tool-card .tool-icon-wrapper {
    text-align: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 20px auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 30px var(--icon-glow-color, rgba(255, 211, 105, 0.5));
}

.tool-card .tool-lucide {
    width: 32px;
    height: 32px;
}

.tool-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.9rem;
    text-align: center;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    justify-content: center;
}

.feature-tag {
    background: var(--tag-bg, rgba(255, 211, 105, 0.15));
    color: var(--tag-color, #3a2e13);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--tag-border, transparent);
}

.tool-card:hover .feature-tag {
    transform: translateY(-2px);
}

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #222831;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.tool-button i {
    width: 16px;
    height: 16px;
}

.tool-card:hover .tool-button {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-button svg {
    transition: transform 0.3s ease;
    color: #222831;
}

.tool-card:hover .tool-button svg {
    transform: translateX(5px);
}

/* Navigation Bar - Fixed at Top */
.nav-bar {
    background: var(--card-bg);
    padding: 12px 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-logo .logo-icon {
    font-size: 1.8rem;
}

.nav-logo strong {
    color: #FFD369;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-dropdown-toggle * {
    pointer-events: none;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: var(--primary-color);
    background: var(--background);
}

.nav-dropdown-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

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

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

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

.nav-dropdown-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-dropdown-menu .nav-link:hover {
    background: var(--background);
    color: var(--text-primary);
}

.nav-dropdown-menu .nav-link-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-dropdown-menu .nav-link:hover .nav-link-icon {
    opacity: 1;
}

/* Single nav link (não dropdown) */
.nav-link-single {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link-single:hover {
    color: var(--primary-color);
    background: var(--background);
}

.nav-link-single .nav-link-icon {
    width: 16px;
    height: 16px;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--background);
}

.nav-toggle .hamburger-icon,
.nav-toggle .close-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    pointer-events: none;
}

.nav-toggle svg {
    pointer-events: none;
}

.nav-toggle .close-icon {
    display: none;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.nav-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

/* Mobile Navigation */
@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 5px;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Mobile dropdown styles */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background);
        border-radius: var(--radius-sm);
        margin-top: 5px;
        display: none;
        padding: 5px;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown.open .chevron {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu .nav-link {
        padding: 10px 16px 10px 24px;
        font-size: 0.85rem;
    }
    
    .nav-link-single {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .nav-link-icon {
        display: inline-block;
        margin-right: 8px;
    }
    
    .logo-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .logo-lucide {
        width: 26px;
        height: 26px;
    }
    
    .tool-icon-wrapper {
        width: 65px;
        height: 65px;
    }
    
    .tool-lucide {
        width: 32px;
        height: 32px;
    }
}

/* Estilos para página Sobre */
.about-content {
    padding: 0;
    background: transparent;
    border: none;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content > p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    padding-left: 0;
    position: relative;
    line-height: 1.8;
}

.about-list li:before {
    content: "•";
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-list li strong {
    font-weight: 600;
}

.link-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.link-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 211, 105, 0.3);
}

/* Estilos para página de Contato */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0;
}

.contact-form-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 211, 105, 0.2);
}

.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.5;
}

/* Estilos para FAQ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.faq-item[open] summary::before {
    content: "−";
}

.faq-item summary:hover {
    background: rgba(255, 211, 105, 0.1);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 3.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Seção de Fontes e Metodologia */
.sources-section {
    margin-top: 2rem;
}

.sources-content {
    line-height: 1.7;
}

.methodology-box,
.sources-box {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.methodology-box h4,
.sources-box h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.methodology-box ul,
.sources-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.methodology-box ul li,
.sources-box ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.sources-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.sources-box a:hover {
    text-decoration: underline;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-answer code {
    background: var(--background);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Estilos para Calculadora de Aposentadoria */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-section-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Ícone de sunset para aposentadoria */
.page-icon-retirement {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.page-icon-retirement .logo-lucide {
    color: white;
}

/* Ajustes para a tabela de aposentadoria */
#retirementTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#retirementTable th,
#retirementTable td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

#retirementTable th {
    background: var(--background);
    color: var(--text-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

#retirementTable th:first-child,
#retirementTable td:first-child {
    text-align: center;
    font-weight: 500;
}

#retirementTable tbody tr:hover {
    background: rgba(255, 211, 105, 0.1);
}

#retirementTable tbody tr:last-child td {
    border-bottom: none;
}

/* Indicadores de status coloridos */
.status-excellent {
    color: var(--success-color);
    font-weight: 600;
}

.status-good {
    color: #22c55e;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.status-danger {
    color: var(--danger-color);
    font-weight: 600;
}

/* ====================================
   ESTILOS CONVERSOR DE MOEDAS
   ==================================== */

/* Ícone da página de moedas */
.page-icon-moedas {
    background: linear-gradient(135deg, #FFD369 0%, #e6b84d 100%);
}

.page-icon-moedas .logo-lucide {
    color: var(--background);
}

/* Status da API */
.api-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.api-status .status-icon {
    width: 18px;
    height: 18px;
}

.api-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.api-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Currency Converter Layout */
.currency-section {
    padding: 30px;
}

.currency-converter {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.currency-input-group {
    flex: 1;
    min-width: 280px;
}

.currency-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.currency-input-wrapper {
    display: flex;
    gap: 0;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.currency-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.currency-input-wrapper input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 100px;
}

.currency-input-wrapper input:focus {
    outline: none;
}

.currency-input-wrapper select {
    padding: 14px 16px;
    border: none;
    border-left: 2px solid var(--border-color);
    background: var(--card-bg);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 200px;
}

.currency-input-wrapper select:focus {
    outline: none;
    background: rgba(255, 211, 105, 0.1);
}

/* Botão de Swap */
.swap-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 0;
}

.swap-button:hover {
    background: var(--primary-color);
    color: var(--background);
    transform: rotate(180deg);
}

.swap-button i {
    width: 24px;
    height: 24px;
}

/* Exchange Rate Info */
.exchange-rate-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rate-card {
    flex: 1;
    min-width: 150px;
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

.rate-card .rate-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-card .rate-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Botão de conversão */
.btn-currency {
    background: linear-gradient(135deg, #FFD369, #e6b84d);
}

.btn-currency:hover {
    background: linear-gradient(135deg, #e6b84d, #d4a43d);
}

/* Cotações Populares */
.popular-rates-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.popular-rates-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.rate-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rate-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.rate-info {
    flex: 1;
}

.rate-currency {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rate-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rate-value-wrapper {
    text-align: right;
}

.rate-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Calculadora de Viagem */
.travel-calculator {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.travel-calculator h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Select da calculadora de viagem - mesmo estilo dos inputs */
.travel-calculator .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EEEEEE' 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 16px center;
    padding-right: 48px;
}

.travel-calculator .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.travel-calculator .form-group select:hover {
    border-color: var(--primary-color);
}

.btn-travel {
    background: linear-gradient(135deg, #FFD369, #e6b84d);
    margin-top: 1rem;
}

.btn-travel:hover {
    background: linear-gradient(135deg, #e6b84d, #d4a43d);
}

/* Resultados da Viagem */
.travel-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    border: 2px solid var(--primary-color);
}

.travel-results h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.travel-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.travel-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    text-align: center;
}

.travel-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.travel-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.travel-info {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsividade Conversor de Moedas */
@media (max-width: 768px) {
    .currency-section {
        padding: 20px 15px;
    }
    
    .currency-converter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .currency-input-group {
        min-width: 100%;
    }
    
    .swap-button {
        align-self: center;
        transform: rotate(90deg);
    }
    
    .swap-button:hover {
        transform: rotate(270deg);
    }
    
    .currency-input-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .currency-input-wrapper input {
        width: 100%;
        border-bottom: 2px solid var(--border-color);
    }
    
    .currency-input-wrapper select {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: none;
    }
    
    .exchange-rate-info {
        flex-direction: column;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================
   CALCULADORA DE SALÁRIO LÍQUIDO
   ================================ */

/* Ícone da página */
.logo-icon-wrapper.page-icon-salary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

/* Seção principal */
.salary-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.salary-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-section .section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Botão calcular */
.btn-salary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-salary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===== ESTILOS FÉRIAS CLT ===== */

.ferias-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.ferias-results h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ferias-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ferias-summary .summary-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.ferias-summary .summary-card:hover {
    transform: translateY(-3px);
}

.ferias-summary .summary-card.ferias-salario {
    border-top: 4px solid #3b82f6;
}

.ferias-summary .summary-card.ferias-terco {
    border-top: 4px solid #22c55e;
}

.ferias-summary .summary-card.ferias-abono {
    border-top: 4px solid #8b5cf6;
}

.ferias-summary .summary-card.ferias-bruto {
    border-top: 4px solid var(--primary-color);
}

.ferias-summary .summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ferias-summary .summary-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.ferias-summary .summary-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Descontos das Férias */
.ferias-descontos {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.ferias-descontos h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.descontos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.desconto-item {
    background: var(--background);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.desconto-item .desconto-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.desconto-item .desconto-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--danger-color);
    font-family: 'JetBrains Mono', monospace;
}

.desconto-item.total {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
}

/* Total Líquido das Férias */
.ferias-total {
    margin-bottom: 25px;
}

.ferias-total .total-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid var(--success-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.ferias-total .total-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ferias-total .total-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    font-family: 'JetBrains Mono', monospace;
}

.ferias-total .total-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ===== FIM ESTILOS FÉRIAS ===== */

/* Resultados */
.salary-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.salary-results h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.salary-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.salary-summary .summary-card {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.salary-summary .summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.salary-summary .summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.salary-summary .summary-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.salary-summary .summary-value.negative {
    color: var(--danger-color);
}

.salary-summary .summary-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Cards específicos */
.salary-gross {
    border-left: 4px solid var(--primary-color) !important;
}

.salary-inss {
    border-left: 4px solid #6366f1 !important;
}

.salary-irrf {
    border-left: 4px solid #f59e0b !important;
}

.salary-outros {
    border-left: 4px solid #8b5cf6 !important;
}

.salary-net.highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

.salary-net.highlight .summary-label,
.salary-net.highlight .summary-detail {
    color: rgba(255, 255, 255, 0.9) !important;
}

.salary-net.highlight .summary-value {
    color: #fff !important;
    font-size: 1.6rem;
}

/* Detalhamento */
.salary-breakdown {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.salary-breakdown h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-section {
    margin-bottom: 25px;
}

.breakdown-section:last-child {
    margin-bottom: 0;
}

.breakdown-section h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.breakdown-table-inner {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.breakdown-table-inner th,
.breakdown-table-inner td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-table-inner th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-table-inner tbody tr:hover {
    background: rgba(255, 211, 105, 0.1);
}

.breakdown-table-inner tfoot td {
    background: var(--color-salario);
    font-weight: 600;
    color: #fff;
}

.irrf-details p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.irrf-details strong {
    color: var(--text-primary);
}

.isento-badge {
    background: var(--success-light);
    color: var(--success-color);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 10px;
}

.info-note {
    background: rgba(255, 211, 105, 0.15);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    font-size: 0.85rem;
    color: #393E46 !important;
    border-left: 3px solid var(--primary-color);
}

/* Projeção Anual */
.salary-annual {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.salary-annual h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.annual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.annual-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.annual-card.highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.annual-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.annual-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.annual-value.negative {
    color: var(--danger-color);
}

.annual-card.highlight .annual-label {
    color: rgba(255, 255, 255, 0.9);
}

.annual-card.highlight .annual-value {
    color: #fff;
}

/* Tabelas de Referência */
.reference-tables {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.reference-tables h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.table-card {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.table-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.table-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.reference-table th,
.reference-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.reference-table th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-primary);
}

.reference-table tbody tr:hover {
    background: rgba(255, 211, 105, 0.1);
}

.table-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

/* Tabela de Detalhamento (Férias, Décimo, etc.) */
.detalhamento-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.detalhamento-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.detalhamento-table td:first-child {
    color: var(--text-secondary);
}

.detalhamento-table td:last-child {
    text-align: right;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.detalhamento-table tr.subtotal td {
    background: rgba(255, 211, 105, 0.1);
    border-top: 2px solid var(--primary-color);
}

.detalhamento-table tr.total td {
    background: rgba(34, 197, 94, 0.15);
    border-top: 2px solid var(--success-color);
    color: var(--success-color);
    font-size: 1.1rem;
}

.ferias-detalhes,
.decimo-detalhes {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 25px;
}

.ferias-detalhes h4,
.decimo-detalhes h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Seção de Detalhe (Décimo Terceiro) */
.detalhe-section {
    margin-bottom: 20px;
}

.detalhe-section h5 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.detalhe-item {
    background: var(--background);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalhe-item .detalhe-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detalhe-item .detalhe-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.detalhe-item.highlight {
    background: rgba(255, 211, 105, 0.15);
    border: 1px solid var(--primary-color);
}

.detalhe-item.desconto .detalhe-value {
    color: var(--danger-color);
}

/* ===== ESTILOS DÉCIMO TERCEIRO ===== */

/* Grid de Parcelas */
.parcelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.parcela-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.parcela-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.parcela-card.primeira {
    border-top: 4px solid #22c55e;
}

.parcela-card.segunda {
    border-top: 4px solid #3b82f6;
}

.parcela-card.total {
    border-top: 4px solid var(--primary-color);
    background: rgba(255, 211, 105, 0.1);
}

.parcela-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.parcela-numero {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.parcela-data {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--background);
    padding: 4px 10px;
    border-radius: 20px;
}

.parcela-valor {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.parcela-card.total .parcela-valor {
    color: var(--primary-color);
}

.parcela-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Timeline de Pagamento */
.decimo-timeline {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 25px;
}

.decimo-timeline h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.timeline-marker.primeira {
    background: #22c55e;
}

.timeline-marker.segunda {
    background: #3b82f6;
}

.timeline-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.timeline-valor {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

/* Resultado do Décimo Terceiro */
.decimo-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.decimo-results h3 {
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ dentro de education-card - forçar cores legíveis */
.education-card .faq-item {
    border-bottom-color: #e0e0e0;
}

.education-card .faq-item h4 {
    color: #222831 !important;
}

.education-card .faq-item p {
    color: #393E46 !important;
}

/* Link Cards */
.link-card {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.link-card h4 {
    color: var(--text-primary);
}

.link-card p {
    color: var(--text-secondary);
}

/* Responsividade Salário */
@media (max-width: 768px) {
    .salary-section {
        padding: 20px 15px;
    }
    
    .salary-summary {
        grid-template-columns: 1fr;
    }
    
    .salary-summary .summary-value {
        font-size: 1.2rem;
    }
    
    .salary-net.highlight .summary-value {
        font-size: 1.4rem;
    }
    
    .annual-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-table-inner {
        font-size: 0.8rem;
    }
    
    .breakdown-table-inner th,
    .breakdown-table-inner td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .annual-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reforço para inputs de data em telas muito pequenas */
    .form-group,
    .form-row {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-group input[type="date"] {
        font-size: 14px;
        padding: 12px 10px;
    }
}

/* ========================================
   PÁGINA DE ETFs INTERNACIONAIS
   ======================================== */

/* Wrapper de ícone para ETFs */
.logo-icon-wrapper.page-icon-etfs {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

/* Compras (Preço Médio) */
.compra-item {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 15px;
}

.compra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.compra-numero {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.btn-remove-compra {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-remove-compra:hover {
    background: var(--danger-light);
}

.btn-remove-compra svg {
    width: 18px;
    height: 18px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.good {
    background: var(--success-light);
    color: var(--success-color);
}

.status-badge.warning {
    background: var(--danger-light);
    color: var(--danger-color);
}

/* Tax Alert */
.tax-alert {
    background: var(--warning-light);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.tax-alert.success {
    background: var(--success-light);
    border-color: var(--success-color);
}

.tax-alert h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tax-alert h5 svg {
    width: 20px;
    height: 20px;
}

.tax-alert p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Valores positivos e negativos */
.value.positive {
    color: var(--success-color) !important;
}

.value.negative {
    color: var(--danger-color) !important;
}

/* Tabela de comparação - highlight */
.comparison-table td.highlight {
    background: var(--success-light);
    font-weight: 600;
    color: var(--success-color);
}

/* DARF Card */
.darf-card {
    background: linear-gradient(135deg, #222831 0%, #393E46 100%);
    border-radius: var(--radius);
    padding: 30px;
    color: #fff;
    margin-bottom: 20px;
}

.darf-card .darf-header {
    text-align: center;
    margin-bottom: 20px;
}

.darf-card .darf-titulo {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.darf-card .darf-valor {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD369;
}

.darf-card .darf-vencimento {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
}

.darf-info {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.darf-info h5 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.darf-detalhes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.darf-detalhes .detalhe {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.darf-detalhes .detalhe-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.darf-detalhes .detalhe-valor {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .darf-detalhes {
        grid-template-columns: 1fr;
    }
    
    .darf-card .darf-valor {
        font-size: 2rem;
    }
}

/* ===============================================
   CALCULADORA TESOURO DIRETO
   =============================================== */

/* Cor do ícone da página */
.page-icon-tesouro {
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

/* Grid de seleção do tipo de título */
.tesouro-tipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.tesouro-tipo-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tesouro-tipo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tesouro-tipo-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 211, 105, 0.1);
}

.tesouro-tipo-card .tipo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tesouro-tipo-card[data-tipo="selic"] .tipo-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tesouro-tipo-card[data-tipo="prefixado"] .tipo-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.tesouro-tipo-card[data-tipo="ipca"] .tipo-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.tesouro-tipo-card .tipo-icon svg {
    width: 28px;
    height: 28px;
}

.tesouro-tipo-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.tesouro-tipo-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.tipo-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tipo-badge.selic {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.tipo-badge.prefixado {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

.tipo-badge.ipca {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

/* Seções dos formulários */
.tesouro-section,
.tesouro-form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

/* Caixa de informação sobre taxas */
.taxa-info-box {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.taxa-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.taxa-info-box svg {
    width: 18px;
    height: 18px;
    color: #0ea5e9;
    flex-shrink: 0;
    margin-top: 2px;
}

.taxa-info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.taxa-info-box.warning svg {
    color: #f59e0b;
}

/* Botão do Tesouro */
.btn-tesouro {
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

.btn-tesouro:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

/* Seção de Resultados */
.tesouro-results {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.tesouro-results h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tesouro-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Seção de Descontos */
.descontos-section {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.descontos-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1rem;
}

.descontos-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desconto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.desconto-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.desconto-label svg {
    width: 16px;
    height: 16px;
}

.ir-aliquota,
.iof-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.desconto-valor {
    font-weight: 600;
    font-size: 1rem;
}

.desconto-valor.negative {
    color: var(--danger-color);
}

/* Valor Líquido */
.valor-liquido-section {
    margin-bottom: 24px;
}

.valor-liquido-card {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius);
    padding: 24px;
    color: white;
}

.liquido-main {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.liquido-label {
    font-size: 1rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.liquido-valor {
    font-size: 2.5rem;
    font-weight: 700;
}

.liquido-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.liquido-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.liquido-detail span:first-child {
    font-size: 0.85rem;
    opacity: 0.9;
}

.liquido-detail span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tabela IR */
.ir-tabela-info {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.ir-tabela-info h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1rem;
}

.ir-tabela {
    width: 100%;
    border-collapse: collapse;
}

.ir-tabela th,
.ir-tabela td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ir-tabela th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-primary);
}

.ir-tabela td {
    color: var(--text-secondary);
}

.ir-tabela tbody tr:hover {
    background: rgba(255, 211, 105, 0.1);
}

.ir-tabela tbody tr.ir-row-active {
    background: rgba(255, 211, 105, 0.25);
}

.ir-tabela tbody tr.ir-row-active td {
    color: var(--text-primary);
    font-weight: 600;
}

/* Detalhes e Tabela de evolução */
.tesouro-details {
    margin-top: 24px;
}

.tesouro-details h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Tabela de evolução mensal do Tesouro */
.tesouro-details .table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

#tesouroTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

#tesouroTable th,
#tesouroTable td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

#tesouroTable th {
    background: var(--background);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#tesouroTable td {
    background: var(--card-bg);
    color: var(--text-secondary);
}

#tesouroTable td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

#tesouroTable td:last-child {
    color: var(--success-color);
    font-weight: 600;
}

#tesouroTable tbody tr:hover td {
    background: var(--background);
}

#tesouroTable tbody tr:last-child td {
    border-bottom: none;
}

.table-footnote {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 12px;
}

/* Seção Comparativo */
.comparativo-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.comparativo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.comparativo-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid;
}

.comp-header.selic {
    border-color: #10b981;
}

.comp-header.selic svg {
    color: #10b981;
}

.comp-header.prefixado {
    border-color: #6366f1;
}

.comp-header.prefixado svg {
    color: #6366f1;
}

.comp-header.ipca {
    border-color: #f59e0b;
}

.comp-header.ipca svg {
    color: #f59e0b;
}

.comp-header svg {
    width: 24px;
    height: 24px;
}

.comp-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.comp-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.comp-lista li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comp-lista li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.comp-lista li svg[data-lucide="check"] {
    color: #10b981;
}

.comp-lista li svg[data-lucide="minus"] {
    color: #94a3b8;
}

.comp-lista li svg[data-lucide="alert-triangle"] {
    color: #f59e0b;
}

.comp-indicado {
    background: var(--card-bg);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comp-indicado strong {
    color: var(--text-primary);
}

/* Responsividade Tesouro Direto */
@media (max-width: 900px) {
    .tesouro-tipo-grid {
        grid-template-columns: 1fr;
    }
    
    .tesouro-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .liquido-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .comparativo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tesouro-section,
    .tesouro-form-section,
    .tesouro-results,
    .comparativo-section {
        padding: 20px;
    }
    
    .tesouro-summary {
        grid-template-columns: 1fr;
    }
    
    .liquido-valor {
        font-size: 2rem;
    }
    
    .desconto-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ir-tabela th,
    .ir-tabela td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Tabela Tesouro responsivo */
    #tesouroTable th,
    #tesouroTable td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ===============================================
   CALCULADORA FINANCIAMENTO DE VEÍCULOS
   =============================================== */

.page-icon-veiculo {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-veiculo {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-veiculo:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* Grid de indicadores */
.indicadores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.indicador-card {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.indicador-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.indicador-valor {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Gráfico menor para pizza/donut */
.chart-wrapper-small {
    max-width: 350px;
    height: 280px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .indicadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .indicadores-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   CALCULADORA REFINANCIAMENTO DE DÍVIDAS
   =============================================== */

.page-icon-refinanciamento {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-refinanciamento {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-refinanciamento:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Boxes de formulário */
.divida-atual-box,
.nova-proposta-box {
    background: var(--background);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.nova-proposta-box {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
}

.form-section-title svg {
    color: #8b5cf6;
}

/* Veredicto */
.veredicto-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.veredicto-box.positivo {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.veredicto-box.negativo {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.veredicto-box.neutro {
    background: rgba(148, 163, 184, 0.1);
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.veredicto-icon {
    font-size: 48px;
}

.veredicto-box.positivo .veredicto-icon svg {
    color: #10b981;
    width: 48px;
    height: 48px;
}

.veredicto-box.negativo .veredicto-icon svg {
    color: #ef4444;
    width: 48px;
    height: 48px;
}

.veredicto-box.neutro .veredicto-icon svg {
    color: #94a3b8;
    width: 48px;
    height: 48px;
}

.veredicto-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.veredicto-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Comparativo lado a lado */
.comparativo-refinanciamento {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}

.comparativo-coluna {
    background: var(--background);
    border-radius: var(--radius);
    padding: 20px;
    border: 2px solid var(--border-color);
}

.comparativo-coluna.atual {
    border-color: rgba(148, 163, 184, 0.3);
}

.comparativo-coluna.nova {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.comparativo-coluna h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.comparativo-coluna.nova h4 svg {
    color: #8b5cf6;
}

.comparativo-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.comparativo-item:last-child {
    border-bottom: none;
}

.comparativo-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparativo-item strong {
    color: var(--text-primary);
}

.comparativo-item.destaque {
    background: rgba(255, 211, 105, 0.1);
    margin: 8px -12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
}

.comparativo-item.destaque strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.comparativo-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparativo-vs span {
    background: var(--primary-color);
    color: #222831;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* Economia section */
.economia-section {
    margin-bottom: 24px;
}

.economia-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.economia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.economia-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.economia-card.positivo {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.economia-card.positivo .economia-valor {
    color: #10b981;
}

.economia-card.negativo {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.economia-card.negativo .economia-valor {
    color: #ef4444;
}

.economia-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.economia-valor {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Alerta de prazo */
.alerta-prazo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}

.alerta-prazo svg {
    color: #f59e0b;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.alerta-prazo strong {
    color: #d97706;
}

.alerta-prazo p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Taxas de referência */
.taxas-referencia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.taxa-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.taxa-ref-tipo {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.taxa-ref-valor {
    font-weight: 700;
    font-size: 1rem;
}

.taxa-ref-valor.alto {
    color: #ef4444;
}

.taxa-ref-valor.medio {
    color: #f59e0b;
}

.taxa-ref-valor.baixo {
    color: #10b981;
}

/* Resultado do refinanciamento */
.resultado-refinanciamento {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

/* Responsividade Refinanciamento */
@media (max-width: 900px) {
    .comparativo-refinanciamento {
        grid-template-columns: 1fr;
    }
    
    .comparativo-vs {
        justify-content: center;
        padding: 10px 0;
    }
    
    .economia-grid {
        grid-template-columns: 1fr;
    }
    
    .taxas-referencia-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .veredicto-box {
        flex-direction: column;
        text-align: center;
    }
    
    .resultado-refinanciamento {
        padding: 20px;
    }
}

/* ==========================================
   SEÇÕES DE CONTEÚDO - PÁGINA INICIAL
   ========================================== */

/* Seção de conteúdo genérica */
.content-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section p {
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.content-section .subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Seção de introdução */
.intro-section {
    background: linear-gradient(135deg, var(--card-bg) 0%, #f8f9fa 100%);
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Cards com fundo sempre claro e texto sempre escuro */
.highlight-item {
    background: #ffffff !important;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color) !important;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.highlight-item h4 {
    color: #222831 !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight-item p {
    color: #393E46 !important;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Seção de educação na home */
.education-home-section {
    background: var(--card-bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 24px;
}

/* Cards de educação com fundo sempre claro */
.education-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
    color: #222831 !important;
}

.education-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow);
}

.education-card h3 {
    color: #222831 !important;
}

.education-card h4 {
    color: #222831 !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.education-card p {
    color: #393E46 !important;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.education-card ul,
.education-card ol,
.education-card li {
    color: #393E46 !important;
}

.education-card li strong {
    color: #222831 !important;
}

/* Caixa de aviso/warning - sempre fundo claro */
.warning-box {
    background: linear-gradient(135deg, #fff3d6 0%, #fff8e6 100%) !important;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 16px;
}

.warning-box p {
    color: #222831 !important;
    margin-bottom: 12px;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* Seção de links rápidos */
.quick-links-section {
    background: var(--card-bg);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* Links rápidos com fundo sempre claro */
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid #e0e0e0 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color) !important;
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.quick-link span {
    color: #222831 !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.quick-link p {
    color: #393E46 !important;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Seção intro de ferramentas */
.section-intro {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.tools-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Footer disclaimer */
.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Responsividade das novas seções */
@media (max-width: 768px) {
    .content-section {
        padding: 24px 16px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .intro-highlights {
        grid-template-columns: 1fr 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-highlights {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   PÁGINA DE ARTIGOS
   ========================================== */

.article-card {
    border-left: 4px solid var(--primary-color);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-category {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-card h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.article-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Formula box nos artigos - sempre fundo claro */
.article-card .formula-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 16px 0;
    text-align: center;
}

.article-card .formula-box p {
    color: #222831 !important;
    margin-bottom: 8px;
}

.article-card .formula-box p:first-child {
    font-size: 1.2rem;
    font-weight: 700;
}

.article-card .formula-box ul {
    text-align: left;
    margin: 12px auto;
    max-width: 400px;
}

/* CTA nos artigos - sempre fundo claro */
.article-cta {
    background: linear-gradient(135deg, #fff3d6 0%, #fff8e6 100%) !important;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}

.article-cta p {
    color: #222831 !important;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.article-cta a {
    color: #222831 !important;
    font-weight: 600;
    text-decoration: underline;
}

.article-cta a:hover {
    color: var(--primary-dark);
}

/* Lista ordenada nos artigos */
.article-card ol.about-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.article-card ol.about-list li {
    counter-increment: item;
    padding-left: 36px;
    position: relative;
}

.article-card ol.about-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========================================
   BLOG PREVIEW SECTION - Homepage
   ======================================== */

.blog-preview-section {
    background: var(--card-bg);
}

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

.blog-preview-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-preview-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-preview-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-preview-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blog-preview-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: #222831;
}

.btn-view-all i {
    width: 18px;
    height: 18px;
}