/* ========== ESTILOS COMPLETOS ========== */
:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #0a58ca;
    --primary-light-bg: #e6f0ff;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: #f0f4f8;
    color: var(--dark);
    line-height: 1.6;
}

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

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #aaccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 2rem;
    color: #ffc107;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}


nav a.nav-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
}

.btn-login {
    background-color: var(--secondary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: #0da271;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== MAIN ===== */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ===== SIMULATOR CARDS ===== */
.simulator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.simulator-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.simulator-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

.simulator-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simulator-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.simulator-card p {
    color: var(--gray);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.simulator-card .btn {
    margin-top: auto;
}

/* ===== SIMULATOR FORM ===== */
.simulator-form {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: none;
}

.simulator-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ===== PERFIL CARDS ===== */
.perfil-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.perfil-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 2px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.perfil-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.perfil-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.perfil-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.perfil-badge.conservador {
    background-color: #d1fae5;
    color: #065f46;
}

.perfil-badge.moderado {
    background-color: #fef3c7;
    color: #92400e;
}

.perfil-badge.arrojado {
    background-color: #fee2e2;
    color: #991b1b;
}

.perfil-badge.agressivo {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.perfil-badge.rendaPassiva {
    background-color: #ffb74d;
    color: #5d4037;
}

.perfil-badge.crescimento {
    background-color: #c084fc;
    color: #4a1d96;
}

.perfil-alocacao {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #0da271;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-light-bg);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ===== FORM CONTROLS ===== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.info-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* ===== CONSERVADORA CARD (Simulador) ===== */
.conservadora-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-sm);
    max-width: 1400px;
    margin: 1.5rem auto;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.conservadora-grid label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.conservadora-grid input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.conservadora-grid input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.conservadora-section {
    margin: 2rem 0;
}

.conservadora-table-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
}

.conservadora-chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.conservadora-chart-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.conservadora-macro-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.conservadora-detailed-allocation-section {
    margin: 2rem 0 1.5rem 0;
}

.conservadora-detailed-chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
    margin-bottom: 2rem;
}

.conservadora-growth-chart-container {
    margin: 2rem 0;
}

.conservadora-growth-chart-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

.conservadora-growth-chart-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 0 auto;
}

.conservadora-macro-summary {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: var(--radius-sm);
    border-left: 5px solid var(--primary);
}

.conservadora-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 1rem;
    background: var(--gray-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.conservadora-highlight {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
    font-size: 1rem;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.conservadora-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.conservadora-table th {
    background: var(--gray-bg);
    font-weight: 600;
    color: var(--dark);
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 2px solid var(--gray-light);
}

.conservadora-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    text-align: right;
}

.conservadora-table th:first-child, 
.conservadora-table td:first-child {
    text-align: left;
}

.conservadora-table tr:hover {
    background: var(--gray-bg);
}

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

.metric-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    text-align: center;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.25rem 0;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== BADGE ===== */
.badge-dev {
    background: var(--warning);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
    border-radius: 40px;
    display: inline-block;
    width: fit-content;
    margin: 0.5rem auto;
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background: #0a1628;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .conservadora-macro-section {
        grid-template-columns: 1fr;
    }
    
    .simulator-cards {
        grid-template-columns: 1fr;
    }
    
    .perfil-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
    }
    
    nav.open {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    nav ul li a {
        padding: 0.7rem 1rem;
        border-radius: 8px;
        width: 100%;
    }
    
    .conservadora-grid {
        grid-template-columns: 1fr;
    }
    
    .conservadora-macro-section {
        grid-template-columns: 1fr;
    }
    
    .perfil-cards {
        grid-template-columns: 1fr;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
    
    .simulator-form {
        padding: 1.5rem;
    }
    
    .conservadora-card {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

/* ===== UTILITÁRIOS ===== */
.hidden {
    display: none !important;
}

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

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ===== ESTILOS EXISTENTES MANTIDOS PARA COMPATIBILIDADE ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-active {
    display: block;
}

.hero {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: var(--radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.journey-selector {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.journey-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.journey-card {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    background: var(--gray-bg);
    border-radius: var(--radius-sm);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.journey-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.journey-icon.beginner {
    color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.journey-icon.investor {
    color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.journey-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quick-start-section {
    margin: 3rem 0;
    display: none;
}

.quick-start-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.quick-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.step-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-light);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ===== NEWS SECTION ===== */
.news-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-content {
    padding: 1.2rem;
}

.news-category {
    display: inline-block;
    background: var(--primary-light-bg);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    margin-bottom: 0.6rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--dark);
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CARROSSEL ===== */
.news-carousel-container {
    margin-bottom: 3rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem;
    width: 100%;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 10px;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.carousel-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.carousel-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.carousel-content {
    padding: 1.2rem;
}

.carousel-category {
    display: inline-block;
    background: var(--primary-light-bg);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    margin-bottom: 0.6rem;
}

.carousel-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--gray-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

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

.latest-news-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 0;
    font-weight: 700;
}

/* ===== FILTRO DE TAGS ===== */
.filter-bar {
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    background: var(--gray-bg);
    border: 1px solid var(--gray-light);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.filter-tag:hover {
    background: var(--primary-light-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-tag .tag-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
}

.filter-info span {
    color: var(--primary-light);
    font-weight: 700;
}

/* ===== DETAIL VIEW ===== */
.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.detail-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 8px 0 12px;
    line-height: 1.3;
}

.detail-card .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.detail-card .detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.detail-card .detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d2d3f;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
    gap: 12px;
}

/* Adicione esta regra no final do style.css para corrigir o problema de proporção */

/* ===== CORREÇÃO DE PROPORÇÃO PARA CARTEIRA ===== */
#idAtivosUtilizados .card {
    margin-bottom: 0 !important;
}

#idAtivosUtilizados .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* Garantir que os cards de ativos tenham o mesmo tamanho dos feature cards */
#ativos-carteira-lista .feature-card {
    min-height: 220px;
    padding: 1.5rem;
}

#ativos-carteira-lista .feature-card h3 {
    font-size: 1.1rem;
}

/* Ajustar a seção de observação para ficar igual aos alerts */
.about-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-bg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.about-section h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.about-section p {
    color: var(--gray);
    line-height: 1.7;
}