/* Estilo baseado no tema premium rescisao.css com extensões para layout em Grid */
:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    /* Indigo mais vibrante para finanças */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(24, 24, 27, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -100px;
    left: -100px;
    animation: float 15s infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #14b8a6;
    bottom: -150px;
    right: -100px;
    animation: float 18s infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    animation: float 25s infinite;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(40px) scale(1.1);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Navbar & Typography (Reaproveitado) */
.navbar {
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid Layout Principal da Ferramenta */
.calculator-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

    .calculator-glass {
        padding: 24px;
    }
}

/* Painel de Inputs */
.input-panel h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.section-divider {
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    margin-top: -10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.row {
    display: flex;
    gap: 20px;
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cbd5e1;
}

input,
select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

select option {
    background-color: var(--bg-card);
    color: white;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

input[type="number"]::-webkit-inner-spin-button {
    margin-right: 8px;
}

.btn-calc {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s;
}

.btn-calc:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Empty State Placeholder */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    /* Evita que o padding vaze do contêiner */
    min-height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    filter: grayscale(1);
}

.empty-state h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Painel de Resultados */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.recommendation-banner {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid;
}

.recommendation-banner.invest {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.3);
}

.recommendation-banner.finance {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
}

.recommendation-banner h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.recommendation-banner.invest h2 {
    color: var(--success);
}

.recommendation-banner.finance h2 {
    color: var(--danger);
}

.recommendation-banner p {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.cards-comparativo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-resultado {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}

.card-resultado h3 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.danger-card h3 {
    color: var(--danger);
}

.success-card h3 {
    color: var(--success);
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.resultado-item strong {
    color: var(--text-main);
    font-weight: 600;
}

.highlight-red strong {
    color: var(--danger);
    font-size: 1.1rem;
}

.highlight-green strong {
    color: var(--success);
    font-size: 1.1rem;
}

.insight-box {
    display: flex;
    gap: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    border-radius: 16px;
    align-items: center;
}

.insight-box .icon {
    font-size: 1.5rem;
}

.insight-box .text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

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

.charts-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    height: 250px;
    border: 1px solid var(--glass-border);
}

/* SEO Content Reutilizado */
.seo-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-card,
.faq-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

.content-card h2,
.faq-section h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-box h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.1rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.faq-item {
    margin-bottom: 16px;
}

details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 20px;
    color: #fff;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
}

details[open] summary::after {
    content: '−';
}

.details-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding-top: 40px;
    text-align: center;
    padding-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}