:root {
    --primary: #059669;
    --secondary: #3b82f6;
    --warning: #f59e0b;
    --text-main: #1f2937;
    --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f3f4f6; color: var(--text-main); padding: 20px; }
.container { max-width: 700px; margin: 0 auto; }
header { text-align: center; margin-bottom: 30px; }
header h1 { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 800; }

.card { background: white; border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.bloco-dados { background-color: #f8fafc; }
.bg-destaque-amarelo { background-color: #fffdf5; }

.section-title { padding: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.grid { display: grid; gap: 15px; padding: 0 20px 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
label { font-size: 13px; font-weight: 600; color: #374151; }
input, select { padding: 12px; border: 1px solid #d1d5db; border-radius: 12px; font-size: 15px; outline: none; width: 100%; }

.collapsible-header { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.collapsible-content { display: none; }
.collapsible-content.active { display: block; }

.linha-separadora { height: 1px; background-color: #e5e7eb; margin: 0 20px; }
.box-juros-detalhe { background: #fffcf0; padding: 15px; border-radius: 12px; border: 1px solid #fef3c7; margin: 0 20px 20px; }

/* Mini Blocos Intermediárias */
.mini-bloco-inter { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 15px; margin-bottom: 15px; }
.mini-bloco-inter label { color: #4b5563; font-size: 12px; margin-bottom: 8px; }

.btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 16px; transition: opacity 0.2s; }
.btn:hover { opacity: 0.9; }
.hidden { display: none !important; }
.resultado { margin-top: 10px; }
.obs-box { text-align: center; font-size: 12px; color: #6b7280; margin-top: 20px; }

.tabela-juros { width: 100%; border-collapse: collapse; margin-top: 15px; }
.tabela-juros th, .tabela-juros td { padding: 12px; text-align: left; border-bottom: 1px solid #f0fdf4; }
.tabela-juros th { font-size: 12px; color: #166534; text-transform: uppercase; }

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