/**
 * Parcelamento Fácil - Estilos Principais
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 60px;
    padding-bottom: 70px;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-color);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* === HEADER FIXO === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.header-logo i {
    font-size: 24px;
    color: var(--primary-color);
}

.header-logo h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

@media (max-width: 480px) {
    .header-logo h1 {
        font-size: 1rem;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 850px) {
    .desktop-nav {
        display: flex;
        gap: 8px;
    }
    
    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 8px;
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .desktop-nav .nav-link i {
        font-size: 16px;
    }
    
    .desktop-nav .nav-link:hover,
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* === BOTTOM NAVIGATION (MOBILE) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.15);
}

@media (min-width: 850px) {
    .bottom-nav {
        display: none !important;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-primary:hover {
    background: var(--primary-hover);
}

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

.btn-success {
    background: #1DB954;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

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

/* === CONTAINER === */
.container {
    padding: 16px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* === SECTIONS === */
.section {
    min-height: calc(100vh - 130px);
    padding: 16px 0;
}

.section.active {
    display: block;
}

.section:not(.active) {
    display: none;
}

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

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* === CARDS === */
.card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(0, 221, 128, 0.2);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light), inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    background: var(--surface-color);
    font-weight: 500;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* === RESULTS === */
.results-section {
    animation: fadeInUp 0.4s ease;
}

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

.results-summary {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-item.highlight {
    background: var(--primary-light);
    border-left-color: var(--primary-color);
    border-left-width: 6px;
}

.result-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* === TABLE === */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.installments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.installments-table thead {
    background: var(--primary-color);
    color: white;
}

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

.installments-table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.installments-table tbody tr:hover {
    background: var(--primary-light);
}

.installments-table td {
    font-size: 0.95rem;
}

/* === HISTORY === */
.history-list {
    display: grid;
    gap: 16px;
}

.history-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

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

.history-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.history-detail {
    display: flex;
    flex-direction: column;
}

.history-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* === COMPARE === */
.compare-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.compare-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-card h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.compare-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    animation: fadeInUp 0.4s ease;
}

[data-theme="dark"] .compare-result {
    background: rgba(255, 255, 255, 0.01);
}

.compare-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.compare-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .compare-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

.compare-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.metric-val {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.metric-val.highlight {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

/* Winner Card - Fintech Style */
.compare-winner {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    margin-top: 32px;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.1);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .compare-winner {
    box-shadow: 0 15px 35px -10px rgba(0, 221, 128, 0.15);
}

.compare-winner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.compare-winner h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.compare-winner p {
    font-size: 1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.compare-winner strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Tie/Empate style */
.compare-winner.tie {
    background: var(--secondary-light);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .compare-winner.tie {
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.15);
}

.compare-winner.tie h3 {
    color: var(--secondary-color);
}

.compare-winner.tie strong {
    color: var(--secondary-color);
}


/* === FAQ === */
.faq-container {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.faq-question:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer:not([hidden]) {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* === TOAST === */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    transform: translateX(120%);
    background: var(--surface-color);
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    max-width: 350px;
    font-weight: 500;
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .toast {
        top: 20px;
        right: 50%;
        transform: translateX(50%) translateY(-100px);
        width: max-content;
        max-width: 90vw;
    }
    
    .toast.show {
        transform: translateX(50%) translateY(0);
    }
}

/* === HERO === */
.hero-section {
    text-align: center;
    margin-bottom: 32px;
}

.hero-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* === FOOTER === */
.app-footer {
    background: var(--surface-color);
    padding: 24px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin-top: 40px;
}

.app-footer p {
    margin: 8px 0;
    color: var(--text-muted);
}

.b20-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.b20-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
    display: inline-block;
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === ANIMATIONS === */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .form-actions,
    .result-actions,
    .history-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* === VERDICT AND COMPOSITION === */
.verdict-container {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: var(--border-radius);
    background: rgba(16, 185, 129, 0.02);
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .verdict-container {
    background: rgba(0, 221, 128, 0.02);
}

.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

/* Tipos de Veredicto */
.verdict-badge.excellent {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-left: 4px solid #10B981;
}

[data-theme="dark"] .verdict-badge.excellent {
    background: rgba(0, 221, 128, 0.12);
    color: #00DD80;
    border-left: 4px solid #00DD80;
}

.verdict-badge.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #D97706;
    border-left: 4px solid #F59E0B;
}

.verdict-badge.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    border-left: 4px solid #EF4444;
}

.composition-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.composition-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.comp-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.label-original i {
    color: var(--primary-color);
}

.label-interest i {
    color: #EF4444;
}

.composition-bar-bg {
    width: 100%;
    height: 24px;
    background: #EF4444; /* Cor dos Juros (vermelho) por padrão */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .composition-bar-bg {
    background: #DC2626;
}

.composition-bar-fill {
    height: 100%;
    background: var(--primary-color); /* Neon Mint para o Capital original */
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.composition-bar-fill.no-interest {
    border-radius: 12px;
    width: 100%;
}

#composition-bar-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    padding: 0 12px;
}

/* === IMPRESSÃO E EXPORTAÇÃO DE PDF === */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 11pt !important;
    }
    
    .app-header,
    .bottom-nav,
    .desktop-nav,
    .app-footer,
    .form-actions,
    .result-actions,
    .calculator-card,
    #theme-toggle,
    .faq-container,
    .empty-state {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .results-section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .card h3 {
        font-size: 1.4rem !important;
        border-bottom: 2px solid #000000 !important;
        padding-bottom: 8px !important;
        color: #000000 !important;
    }
    
    .verdict-container {
        border: 1px solid #CCCCCC !important;
        background: #F9F9F9 !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .verdict-badge {
        border: 1px solid #CCCCCC !important;
        background: #EEEEEE !important;
        color: #000000 !important;
    }
    
    .result-item {
        border: 1px solid #DDDDDD !important;
        border-left: 4px solid #000000 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
        page-break-inside: avoid;
    }
    
    .result-value {
        color: #000000 !important;
        font-weight: bold !important;
    }
    
    .installments-table {
        margin-top: 20px !important;
        border: 1px solid #000000 !important;
    }
    
    .installments-table th {
        background: #EEEEEE !important;
        color: #000000 !important;
        border-bottom: 2px solid #000000 !important;
    }
    
    .installments-table td {
        border-bottom: 1px solid #CCCCCC !important;
    }
    
    /* Adicionar título impresso */
    body::before {
        content: "Relatório de Simulação - Parcelamento Fácil";
        display: block;
        font-family: 'Sora', sans-serif;
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 25px;
        border-bottom: 3px double #000000;
        padding-bottom: 8px;
    }
}

/* === IMAGES === */
.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* === HERO BANNER ATUALIZADO === */
.hero-section {
    padding: 0;
    margin-bottom: 40px;
}

.hero-banner-bg {
    position: relative;
    background-image: linear-gradient(to right, rgba(9, 14, 26, 0.95) 0%, rgba(9, 14, 26, 0.7) 60%, rgba(9, 14, 26, 0.3) 100%), url('../assets/banner.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    min-height: 280px;
}

.hero-banner-bg h2 {
    color: #FFFFFF !important;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    line-height: 1.2;
}

.hero-banner-bg p {
    color: #E2E8F0 !important;
    font-size: 1.2rem;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-banner-bg {
        padding: 40px 20px;
        text-align: center;
        background-image: linear-gradient(rgba(9, 14, 26, 0.85), rgba(9, 14, 26, 0.85)), url('../assets/banner.png');
        align-items: center;
    }
    
    .hero-banner-bg h2 {
        font-size: 1.8rem;
    }
    
    .hero-banner-bg p {
        font-size: 1.05rem;
    }
}

/* === MOBILE FORM OPTIMIZATIONS === */
@media (max-width: 480px) {
    .card, .compare-card {
        padding: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .radio-label {
        width: 100%;
        justify-content: flex-start;
        padding: 16px;
        min-height: 54px;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .form-control {
        font-size: 16px !important; /* Evita auto-zoom no iOS Safari */
        padding: 16px;
    }
    
    .compare-form .form-group {
        margin-bottom: 16px;
    }
}

/* === HISTORY & CARDS === */
#history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.history-item {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.history-header h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.history-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-detail-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.history-actions button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    #history-list {
        grid-template-columns: 1fr;
    }
    
    .history-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .history-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* === MODERN FOOTER === */
.app-footer {
    background-color: var(--surface-color);
    padding: 60px 24px 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-credit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 850px) {
    .app-footer {
        padding-bottom: 100px; /* Evita ficar coberto pela bottom-nav */
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
