/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --bg: #0a0f1a;
    --card-bg: #121828;
    --card-hover: #1a2238;
    --muted: #94a3b8;
    --text: #e2e8f0;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --accent-light: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    /* Gradientes */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    /* Outros */
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Tipografia */
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 14px;
}

body {
    background: linear-gradient(180deg, #071029 0%, #0a0f1a 100%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

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

.loading-logo .brand-logo {
    width: 80px;
    height: 80px;
    font-size: 32px;
    margin: 0 auto;
}

.loading-text {
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Header */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(12px);
    background: rgba(10, 15, 26, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.topbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 15, 26, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link i {
    font-size: 14px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Botões */
.btn {
    font-weight: 600;
    border: 0;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 10px 16px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.hero-card {
    animation: floatUp 0.8s ease-out;
    width: 100%;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    white-space: nowrap;
}

.hero-card h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.accent {
    color: var(--accent);
}

.lead {
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

/* Seletor de Tipo de Cliente */
.client-type-selector {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-type-selector h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 16px;
}

.client-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.client-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-family: inherit;
}

.client-type-btn i {
    font-size: 24px;
}

.client-type-btn span {
    font-weight: 600;
    font-size: 14px;
}

.client-type-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.client-type-btn.active i {
    color: var(--accent);
}

.client-type-hint {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

.stat-item {
    text-align: center;
    min-width: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Destaques do Hero */
.highlights .highlight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.highlight-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.highlight-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.highlight-icon.info {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 2px;
}

.highlight-desc {
    color: var(--muted);
    font-size: 12px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.card.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    margin: 0;
    flex-wrap: wrap;
}

.card-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Services Section */
.section {
    padding: 60px 0;
}

.section.alt {
    background: rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 16px;
}

/* Filtros de Serviços */
.services-filters {
    margin: 20px 0 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    width: max-content;
    min-width: 100%;
}

.filter-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

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

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
}

.service-icon.fgts {
    background: linear-gradient(135deg, #10b981, #059669);
}

.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
    font-size: 14px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
}

.service-features li i {
    color: var(--success);
    font-size: 12px;
    flex-shrink: 0;
}

/* Simulator Container */
.simulator-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.simulator-sidebar .card {
    position: static;
}

/* Sim Type Selector */
.sim-type-selector {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    padding: 4px 0;
}

.sim-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
    border: none;
    font-family: inherit;
}

.sim-type-btn i {
    font-size: 20px;
}

.sim-type-btn span {
    font-weight: 600;
    font-size: 12px;
}

.sim-type-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.sim-params {
    margin: 20px 0;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
    flex-wrap: wrap;
}

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

.range-container input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
    cursor: pointer;
}

.range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--bg);
}

.range-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg);
    transition: all 0.3s ease;
}

.range-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
    gap: 8px;
}

.range-values span:nth-child(2) {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

.system-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.system-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-family: inherit;
}

.system-btn i {
    font-size: 18px;
}

.system-btn span {
    font-weight: 600;
    font-size: 13px;
}

.system-btn small {
    font-size: 10px;
    opacity: 0.7;
}

.system-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Resultados do Simulador */
.simulation-results {
    margin: 20px 0;
}

.main-result {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.result-label {
    color: var(--muted);
    font-size: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

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

.result-title {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

/* Ações do Simulador */
.simulation-actions {
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-buttons .btn {
    flex: 1;
    min-width: 0;
}

/* Notícias Financeiras */
.news-filters {
    margin: 20px 0 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.news-filter {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 40px;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-source {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

.news-date {
    font-size: 11px;
    color: var(--muted);
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.news-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 2;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 8px;
}

.news-category {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-category.fgts {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.news-category.juros {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

.news-category.dolar {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.news-category.imoveis {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.news-category.bolsa {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.news-category.inflacao {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.news-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-light);
}

.loading-news {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-news i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.loading-news p {
    color: var(--muted);
    font-size: 14px;
}

.no-news {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.no-news i {
    font-size: 32px;
    color: var(--muted);
    margin-bottom: 16px;
}

.no-news p {
    color: var(--muted);
    font-size: 14px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col .brand {
    margin-bottom: 16px;
}

.footer-description {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 13px;
}

/* Contatos no Footer */
.footer-contacts {
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.contact-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-link-btn {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.footer-link-btn:hover {
    color: var(--accent);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    min-width: 0;
    height: 40px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 12px;
}

.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal button {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer-legal button:hover {
    color: var(--accent);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    font-size: 14px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 18px;
}

.whatsapp-float span {
    white-space: nowrap;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Responsive Design */

/* Tablets e acima (768px+) */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .hero-card h1 {
        font-size: 40px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simulator-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .floating-whatsapp {
        bottom: 24px;
        right: 24px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 24px;
        width: 50px;
        height: 50px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .container {
        padding: 0 32px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 420px;
        gap: 60px;
    }
    
    .hero-card h1 {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .news-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .simulator-container {
        grid-template-columns: 400px 1fr;
    }
    
    .simulator-sidebar .card {
        position: sticky;
        top: 120px;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    .topbar-inner {
        padding: 0 12px;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        background: var(--card-bg);
        border-radius: 16px;
        padding: 20px;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.05);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .nav.show {
        display: flex;
    }
    
    .nav-link {
        padding: 14px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .range-values span {
        font-size: 10px;
        min-width: 50px;
    }
    
    .range-values span:nth-child(2) {
        font-size: 11px;
    }
    
    .result-value {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        height: 40px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
    }
}

/* Mobile muito pequeno (até 480px) */
@media (max-width: 480px) {
    .hero-card h1 {
        font-size: 28px;
    }
    
    .lead {
        font-size: 15px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .client-type-buttons {
        flex-direction: column;
    }
    
    .sim-type-selector {
        flex-direction: column;
    }
    
    .system-selector {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-header h3 {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        min-width: 100%;
    }
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

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

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* AOS custom animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Garantir que o loading some completamente */
.loading-screen {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Garantir que o body não tenha scroll durante o loading */
body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, 
    .btn-icon,
    .nav-link,
    .sim-type-btn,
    .system-btn,
    .filter-btn,
    .client-type-btn {
        min-height: 44px;
    }
    
    input[type="range"] {
        height: 10px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .range-container input[type="range"] {
        margin: 12px 0;
    }
}

/* Print styles */
@media print {
    .floating-whatsapp,
    .back-to-top,
    .topbar,
    .hamburger,
    .btn-primary,
    .btn-success {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}