/* ===== RESET & BASE ===== */
/* CACHE BUST: 2025-12-19T14:20 - cores azuis aplicadas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== LUCIDE ICONS (GLOBAL) ===== */
/* Garantir que SVGs Lucide renderizam corretamente e não ficam invisíveis */
svg.lucide,
svg[data-lucide] {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* Evitar que containers pais escondam SVGs inadvertidamente */
[data-lucide] {
    display: inline-block;
}

/* Garantir que ícones não quebram em flex containers */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #1EA07A;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1);
    --glass-backdrop: blur(10px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-back {
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-benefits .benefit-item {
    font-size: 14px;
    font-weight: 500;
}

/* ===== DIAGNOSTIC SECTION ===== */
.diagnostic-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.diagnostic-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    display: inline-block;
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 14px;
    height: 14px;
}

.step-dot.completed {
    background: var(--success);
    border-color: var(--success);
}

/* ===== FORM CONTENT ===== */
.form-content {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== DEBT TYPE GRID ===== */
.debt-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .debt-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .debt-type-grid {
        grid-template-columns: 1fr;
    }
}

.debt-type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.debt-type-card:hover {
    border-color: var(--primary);
}

.debt-type-card.selected {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.debt-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debt-icon i[data-lucide] {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
}

.debt-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.debt-examples {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== FORM INPUTS ===== */
.subsection-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F3F4F6;
}

.modern-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== STEP 3 SPECIFIC STYLES ===== */
.step3-content .form-group {
    margin-bottom: 1.5rem;
}

.step3-content .form-group label {
    margin-bottom: 0.625rem;
}

.field-microcopy {
    display: block;
    margin-top: 0.5rem;
    color: #6B7280;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--bg-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== ERROR MESSAGES ===== */
.error-message {
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.375rem;
    animation: fadeIn 0.3s ease;
    display: block;
}

.error-message.hidden {
    display: none;
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.toggle-group.error {
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 2px;
}

/* ===== TIME SELECTOR ===== */
.time-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.time-btn {
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    border-color: var(--primary);
}

.time-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-btn-quick {
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn-quick:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-btn-quick.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== RADIO CARDS ===== */
.radio-group {
    display: grid;
    gap: 0.75rem;
}

.radio-group-3cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .radio-group-3cols {
        grid-template-columns: 1fr;
    }
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-content {
    display: block;
    padding: 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.radio-card input[type="radio"]:checked+.radio-content {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.radio-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.radio-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== TOGGLE GROUP ===== */
.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    border-color: var(--primary);
}

.toggle-btn.selected {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

/* ===== PERCENTAGE SELECTOR ===== */
.percentage-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.percentage-selector-4cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .percentage-selector-4cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.percentage-btn {
    padding: 0.625rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.percentage-btn:hover {
    border-color: var(--primary);
}

.percentage-btn.selected {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

/* ===== DEBT SUMMARY ===== */
.debt-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.debt-summary h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.summary-card {
    background: var(--bg-primary);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    box-sizing: border-box;
    width: 100%;
}

.summary-card .summary-label {
    width: 100%;
}

.summary-card .summary-value {
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.summary-card.highlight {
    background: var(--bg-primary);
    border: 1px solid var(--primary);
}

.summary-card.alert {
    background: var(--bg-primary);
    border: 1px solid var(--danger);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ===== SCENARIOS ===== */
.scenarios-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scenarios-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.scenarios-grid:not(#tab-cenarios .scenarios-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.scenario-card:not(#tab-cenarios .scenario-card) {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.scenario-card:not(#tab-cenarios .scenario-card):hover {
    border-color: var(--primary);
}

.scenario-card.recommended:not(#tab-cenarios .scenario-card) {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.scenario-badge:not(#tab-cenarios .scenario-badge) {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.scenario-header {
    margin-bottom: 1rem;
}

.scenario-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.scenario-discount {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.scenario-price {
    margin-bottom: 1.5rem;
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-final {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}


/* =========================================
   MODERN FINTECH OVERRIDES (2025)
   ========================================= */

:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(26, 115, 232, 0.39);
}

body {
    background-color: #F8FAFC;
    /* Slate-50: Mais moderno que Gray-50 */
}

/* CARDS E CONTAINERS */
.diagnostic-form,
.debt-type-card,
.summary-card,
.scenario-card,
.step-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    background: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.debt-type-card:hover,
.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* SOURCE TAG — mostra origem dos dados por cenário */
.source-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.375rem;
    margin-bottom: 0.25rem;
}
.source-tag.source-creditor_profile {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.source-tag.source-document {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}
.source-tag.source-estimate {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FCD34D;
}
.source-tag.source-base {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.scenario-operational-block {
    margin-top: 0.65rem;
    margin-bottom: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}

.scenario-action-guide {
    overflow: hidden;
}

.scenario-operational-toggle {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    list-style: none;
}

.scenario-operational-toggle::-webkit-details-marker {
    display: none;
}

.scenario-operational-details {
    margin-top: 0.55rem;
}

.scenario-operational-row + .scenario-operational-row {
    margin-top: 0.55rem;
}

.scenario-operational-channel {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
}

.scenario-operational-icon {
    line-height: 1;
}

.scenario-operational-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    margin-bottom: 0.25rem;
}

.scenario-operational-text {
    margin: 0;
    font-size: 0.82rem;
    color: #1f2937;
    line-height: 1.45;
}

.scenario-script-box {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.5rem;
}

.scenario-script-text {
    margin: 0;
    font-size: 0.8rem;
    color: #0f172a;
    line-height: 1.45;
}

.scenario-script-copy-btn {
    margin-top: 0.5rem;
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.scenario-script-copy-btn:hover {
    background: #e2e8f0;
}

.scenario-comparison-block {
    margin-top: 0.65rem;
    margin-bottom: 0.85rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}

.scenario-comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.scenario-comparison-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    margin-bottom: 0.35rem;
}

.scenario-comparison-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.3rem;
}

.scenario-comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #1f2937;
}

.scenario-comparison-mark {
    font-weight: 700;
    line-height: 1;
    margin-top: 0.05rem;
}

.scenario-comparison-item.is-pro .scenario-comparison-mark {
    color: #059669;
}

.scenario-comparison-item.is-con .scenario-comparison-mark {
    color: #dc2626;
}

.scenario-comparison-extra {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #334155;
}

.scenario-comparison-extra.is-economy {
    color: #065f46;
}

.scenario-comparison-extra.is-cost {
    color: #7f1d1d;
}

.scenario-comparison-recommended {
    margin-top: 0.55rem;
    border: 1px solid #86efac;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .scenario-comparison-columns {
        grid-template-columns: 1fr;
    }
}

/* CONFIDENCE BADGES — nível de confiança por cenário */
.confidence-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.375rem;
    vertical-align: middle;
}
.confidence-badge.confidence-alta {
    background: #ECFDF5;
    color: #047857;
}
.confidence-badge.confidence-media {
    background: #FFFBEB;
    color: #B45309;
}
.confidence-badge.confidence-baixa {
    background: #FEF2F2;
    color: #B91C1C;
}

/* INPUTS E FORMULÁRIOS */
.form-input,
.modern-select {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-size: 1rem;
    background-color: #F8FAFC;
}

.form-input:focus,
.modern-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* BOTÕES D E AÇÃO */
.btn-primary {
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    box-shadow: var(--shadow-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.23);
    transform: translateY(-1px);
}

.btn-secondary {
    border-radius: var(--radius-md);
    font-weight: 500;
    border: 1px solid #E2E8F0;
    background: white;
}

/* ELEMENTOS DE SELEÇÃO */
.toggle-btn,
.time-btn,
.percentage-btn,
.radio-content {
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-btn.selected,
.time-btn.selected,
.percentage-btn.selected,
.radio-card input[type="radio"]:checked+.radio-content {
    background: #EFF6FF;
    /* Blue-50 */
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--primary);
}

/* TIPOGRAFIA */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.03em;
    /* Tight tracking elegante */
    color: #0F172A;
    /* Slate-900 */
}

/* BADGES E DETALHES */
.scenario-badge:not(#tab-cenarios .scenario-badge) {
    border-radius: 99px;
    /* Pill shape */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
}


.scenario-benefits li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===== ACTION PLAN ===== */
.action-plan {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.action-plan>h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.action-step {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.action-step:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.step-header:hover {
    background: #F3F4F6;
}

.step-header .step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.step-status.locked {
    background: #F3F4F6;
    color: #6B7280;
}

.step-status.done {
    background: #10B981;
    color: white;
}

.step-content {
    padding: 1.5rem;
    background: white;
}

.step-content.hidden {
    display: none;
}

/* ===== TABS ===== */
.content-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Plan Tabs */
.plan-tab-content {
    display: none;
}

.plan-tab-content.active {
    display: block;
}

.plan-tabs .tab-btn {
    border-bottom: 2px solid transparent;
}

.plan-tabs .tab-btn.active {
    border-bottom-color: #1a73e8;
    color: #1a73e8;
}

/* ===== MESSAGE TEMPLATE ===== */
.message-template {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.875rem;
    color: #6B7280;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.template-text {
    padding: 1.25rem;
    background: white;
    color: #1F2937;
    font-size: 0.9375rem;
    line-height: 1.7;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== STEP ACTION ===== */
.step-action {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.step-tip {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    font-size: 0.875rem;
}

/* ===== CALCULATOR TOOL ===== */
.calculator-tool {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.calculator-tool h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.calc-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
}

/* ===== INFO BOXES ===== */
.info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left-color: var(--warning);
}

.procon-steps,
.jec-guide {
    margin-top: 1rem;
}

.mini-step {
    margin-bottom: 1.5rem;
}

.btn-link {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-weight: 500;
}

.action-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--primary);
    text-align: center;
}

.action-box h6 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.action-box p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== FINAL CTA ===== */
.final-cta {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.final-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .diagnostic-form {
        padding: 1.5rem;
    }

    .debt-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .scenarios-grid:not(#tab-cenarios .scenarios-grid) {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LEAD CAPTURE SECTION ===== */
.lead-capture-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 32px 0;
}

.lead-header {
    text-align: center;
    margin-bottom: 24px;
}

.lead-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.lead-header p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-group .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.input-group .form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-group .form-input::placeholder {
    color: #9CA3AF;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
}

.divider-or {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider-or::before,
.divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #D1D5DB;
}

.divider-or::before {
    left: 0;
}

.divider-or::after {
    right: 0;
}

.divider-or span {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 0 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
}

.divider-and {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider-and::before,
.divider-and::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #D1D5DB;
}

.divider-and::before {
    left: 0;
}

.divider-and::after {
    right: 0;
}

.divider-and span {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 0 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
}

.privacy-note {
    font-size: 12px;
    color: #6B7280;
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
}

/* ===== SUCCESS BANNER ===== */
.success-banner {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 2px solid #10B981;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.success-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #065F46;
    margin: 0 0 4px 0;
}

.success-content p {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

.success-content strong {
    color: #065F46;
}

/* ===== RESPONSIVE: LEAD CAPTURE ===== */
@media (max-width: 768px) {
    .lead-capture-section {
        padding: 24px 20px;
        margin: 24px 0;
    }

    .lead-header h4 {
        font-size: 18px;
    }

    .input-group .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .success-banner {
        flex-direction: column;
        text-align: center;
    }

    .success-icon {
        font-size: 32px;
    }
}

/* ===== PROGRESSIVE DISCLOSURE - ESTRATÉGIA DE NEGOCIAÇÃO ===== */
.strategy-details {
    margin-top: 1rem;
    display: block !important;
    /* Sempre visível o container */
}

.strategy-details-content {
    transition: opacity 0.2s ease;
}

.strategy-details-content[hidden] {
    display: none !important;
}

/* Forçar visibilidade quando display: block está no style */
.strategy-details-content[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Forçar ocultação quando display: none está no style */
.strategy-details-content[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
}

/* Garantir que botões da estratégia sejam clicáveis */
.btn-strategy-primary,
.btn-strategy-secondary,
.btn-strategy-toggle {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.strategy-ctas {
    position: relative;
    z-index: 10;
}

.strategy-ctas * {
    position: relative;
    z-index: 11;
}

.strategy-section summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.strategy-section summary::-webkit-details-marker {
    display: none;
}

.strategy-section summary:hover {
    background: #F3F4F6 !important;
}

/* Ícones Lucide em summaries/details */
.strategy-section summary i[data-lucide] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Ícones Lucide utilitários */
.icon,
.lucide-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-inline {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    margin-right: 8px;
    display: inline-block;
}

.icon-title {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    display: inline-block;
}

/* Botões copiar desabilitados */
.btn-copy-message:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .strategy-badge {
        font-size: 0.625rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    .strategy-ctas {
        gap: 0.5rem !important;
    }

    .btn-strategy-primary,
    .btn-strategy-toggle {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
}

/* =========================================
   MODERN FINTECH OVERRIDES (2025) - REAPPLIED
   ========================================= */

:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.06), 0 3px 6px -3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 15px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-primary: 0 8px 16px 0 rgba(26, 115, 232, 0.3);
}

body {
    background-color: #F8FAFC;
}

/* CARDS E CONTAINERS - REMOVENDO BORDAS */
.diagnostic-form,
.debt-type-card,
.summary-card,
.scenario-card:not(#tab-cenarios .scenario-card),
.step-card {
    border-radius: var(--radius-lg) !important;
    border: 0 !important;
    /* FORÇANDO C/ 0 */
    border-style: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: var(--shadow-md) !important;
    background: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.debt-type-card:hover,
.scenario-card:not(#tab-cenarios .scenario-card):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--primary) !important;
    /* Borda apenas no hover */
}

/* INPUTS E FORMULÁRIOS */
.form-input,
.modern-select {
    border-radius: var(--radius-md) !important;
    padding: 1rem 1.25rem;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-size: 1rem;
    background-color: #F8FAFC;
}

.form-input:focus,
.modern-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    outline: none;
}

/* BOTÕES D E AÇÃO */
.btn-primary {
    border-radius: var(--radius-md) !important;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    box-shadow: var(--shadow-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none !important;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.23);
    transform: translateY(-1px);
}

.btn-secondary {
    border-radius: var(--radius-md) !important;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    background: white;
}

/* ELEMENTOS DE SELEÇÃO */
.toggle-btn,
.time-btn,
.percentage-btn,
.radio-content {
    border-radius: var(--radius-md) !important;
    border: 1px solid #E2E8F0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-btn.selected,
.time-btn.selected,
.percentage-btn.selected,
.radio-card input[type="radio"]:checked+.radio-content {
    background: #EFF6FF;
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--primary);
}

/* TIPOGRAFIA */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.03em;
    color: #0F172A;
}

/* BADGES E DETALHES */
.scenario-badge:not(#tab-cenarios .scenario-badge) {
    border-radius: 99px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
}

/* ===== DESIGN IMPROVEMENTS 2026 ===== */

/* 1. NEW PROGRESS BAR (replaces dots) */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:last-child {
    flex: 0;
}

.progress-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step-circle.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.progress-step-circle.completed {
    background: var(--success);
    color: white;
}

.progress-step-line {
    flex: 1;
    height: 3px;
    background: #E5E7EB;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}

.progress-step-line.completed {
    background: var(--success);
}

.progress-step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    white-space: nowrap;
    font-weight: 500;
}

.progress-step-circle.active+.progress-step-label,
.progress-step.active .progress-step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-step-circle.completed+.progress-step-label,
.progress-step.completed .progress-step-label {
    color: var(--success);
}

/* 2. ENHANCED TOGGLE BUTTONS */
.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4B5563;
}

.toggle-btn:hover {
    border-color: var(--primary);
    background: #F0F7FF;
    transform: translateY(-1px);
}

.toggle-btn.active,
.toggle-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15), inset 0 0 0 1px var(--primary);
}

/* 3. PREMIUM CTA GRADIENT */
.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 4. ENHANCED DEBT TYPE CARDS */
.debt-type-card {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.debt-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.12);
}

.debt-type-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F0F7FF 0%, #EFF6FF 100%);
    box-shadow: inset 0 0 0 2px var(--primary), 0 4px 12px rgba(26, 115, 232, 0.15);
}

.debt-type-card.selected .debt-icon {
    color: var(--primary);
}

/* 5. MODERN INFO BOXES (Vercel/Stripe style) */
.info-box-modern {
    background: #FAFBFC;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.info-box-modern.info-blue {
    border-left-color: #3B82F6;
    background: #F8FAFC;
}

.info-box-modern.info-green {
    border-left-color: #10B981;
    background: #F0FDF4;
}

/* 6. BETTER HEADER BACK BUTTON (ghost/outline style) */
.btn-back {
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1.5px solid #E5E7EB;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 7. IMPROVED SPACING FOR STEP 3 */
.step3-content .question-block {
    margin-bottom: 1.75rem;
}

.step3-content hr {
    margin: 2.5rem 0 !important;
}

.step3-content .subsection-title {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #1E40AF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step3-content .subsection-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary);
    border-radius: 2px;
}

/* 8. PERCENTAGE BUTTONS ENHANCED */
.percentage-btn {
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4B5563;
}

.percentage-btn:hover {
    border-color: var(--primary);
    background: #F0F7FF;
}

.percentage-btn.active,
.percentage-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15), inset 0 0 0 1px var(--primary);
}

/* 9. MICRO-ANIMATIONS */
@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.btn-primary.pulse {
    animation: subtlePulse 2s ease-in-out infinite;
}

.debt-type-card:active {
    transform: scale(0.98);
}

/* 10. TYPOGRAPHY IMPROVEMENTS */
.hero-title {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-header p {
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-content h3 {
    line-height: 1.3;
}

/* 11. RADIO CARDS ENHANCED */
.radio-content {
    padding: 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-card:hover .radio-content {
    border-color: var(--primary);
    background: #F0F7FF;
}

.radio-card input[type="radio"]:checked+.radio-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    box-shadow: inset 0 0 0 1px var(--primary);
}

/* 12. TRUST BADGE MODERN */
.trust-badge-modern {
    background: #F0FDF4;
    border: 1px solid #D1FAE5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.trust-badge-modern i {
    color: #10B981;
    flex-shrink: 0;
}

.trust-badge-modern p {
    margin: 0;
    font-size: 0.875rem;
    color: #065F46;
    line-height: 1.5;
}

/* 13. QUESTION BLOCK STYLING */
.question-block {
    margin-bottom: 1.5rem;
}

.question-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.question-label i {
    width: 18px;
    height: 18px;
    color: #6B7280;
}

/* ===== INFO BOXES - Reutilizáveis ===== */
.info-box {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.info-box--warning {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

.info-box--warning .info-box__content {
    font-size: 0.875rem;
    color: #92400E;
    line-height: 1.6;
}

.info-box--tip {
    background: #F0F9FF;
    border-left: 4px solid #3B82F6;
}

.info-box--tip .info-box__content {
    font-size: 0.8125rem;
    color: #1E40AF;
    line-height: 1.6;
}

.info-box--security {
    background: #F0F9FF;
    border-left: 4px solid #3B82F6;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box--security .info-box__content {
    font-size: 0.8125rem;
    color: #1E40AF;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .progress-steps {
        max-width: 100%;
        padding: 0 1rem;
    }

    .progress-step-label {
        font-size: 0.65rem;
    }

    .progress-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ===== CENARIOS SUBTABS + DOSSIE ===== */
#tab-cenarios .cenarios-subtabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--ref-border);
}

#tab-cenarios .subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: var(--ref-text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#tab-cenarios .subtab-btn.active {
    color: var(--ref-primary);
    border-bottom-color: var(--ref-primary);
}

#tab-cenarios .cenarios-subtab-content {
    display: none;
}

#tab-cenarios .cenarios-subtab-content.active {
    display: block;
}

#tab-cenarios .dossie-container {
    background: var(--ref-bg-light);
    border: 1px solid var(--ref-border);
    border-radius: var(--ref-radius-lg);
    padding: 1.25rem;
}

#tab-cenarios .dossie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

#tab-cenarios .dossie-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ref-text-main);
}

#tab-cenarios .dossie-header-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--ref-text-muted);
}

#tab-cenarios .dossie-source-card {
    background: var(--ref-white);
    border: 1px solid var(--ref-border);
    border-radius: var(--ref-radius-md);
    padding: 1rem;
    margin-bottom: 0.875rem;
}

#tab-cenarios .dossie-source-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ref-text-main);
    margin-bottom: 0.5rem;
}

#tab-cenarios .dossie-source-date {
    font-size: 0.6875rem;
    color: var(--ref-text-muted, #6B7280);
    font-weight: 400;
    margin-left: auto;
}

#tab-cenarios .dossie-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--ref-border-light);
}

#tab-cenarios .dossie-metric:last-child {
    border-bottom: none;
}

#tab-cenarios .dossie-metric-label {
    font-size: 0.8125rem;
    color: var(--ref-text-muted);
}

#tab-cenarios .dossie-metric-value {
    font-size: 0.875rem;
    color: var(--ref-text-main);
    font-weight: 600;
}

#tab-cenarios .dossie-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-top: 0.125rem;
    margin-bottom: 0.4rem;
}

#tab-cenarios .dossie-progress-bar {
    height: 100%;
    background: var(--ref-success);
}

#tab-cenarios .dossie-progress-bar.alt {
    background: var(--ref-primary);
}

#tab-cenarios .dossie-empty {
    text-align: center;
    color: var(--ref-text-muted);
    padding: 2.5rem 1rem;
    border: 1px dashed var(--ref-border);
    border-radius: var(--ref-radius-md);
    background: var(--ref-bg-light);
}

#tab-cenarios .dossie-empty i {
    margin-bottom: 0.5rem;
}

#tab-cenarios .dossie-partial-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

#tab-cenarios .dossie-warnings {
    margin-top: 0.75rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--ref-radius-sm);
    padding: 0.5rem 0.75rem;
    color: #92400E;
    font-size: 0.75rem;
}

#tab-cenarios .dossie-warnings p {
    margin: 0.2rem 0;
}

/* ===== Sprint 6B: Linear Summary Flow ===== */
#results #tab-resumo #linear-strategy-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

#results #tab-resumo .linear-section {
    width: 100%;
}

#results #tab-resumo .linear-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1D4ED8;
}

#results #tab-resumo .linear-hero-card,
#results #tab-resumo .linear-action-card,
#results #tab-resumo .linear-scenarios-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#results #tab-resumo .linear-hero-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #93C5FD;
}

#results #tab-resumo .linear-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

#results #tab-resumo .linear-hero-title {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.3rem;
    line-height: 1.25;
    color: #1E3A8A;
}

#results #tab-resumo .linear-hero-subtitle {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.5;
    color: #1E40AF;
}

#results #tab-resumo .linear-viability {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

#results #tab-resumo .linear-viability.is-high {
    background: #FEE2E2;
    color: #B91C1C;
}

#results #tab-resumo .linear-viability.is-medium {
    background: #FEF3C7;
    color: #92400E;
}

#results #tab-resumo .linear-viability.is-low {
    background: #DCFCE7;
    color: #166534;
}

#results #tab-resumo .linear-economy-block {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

#results #tab-resumo .linear-economy-copy {
    min-width: 0;
    flex: 1;
}

#results #tab-resumo .linear-economy-ring {
    --linear-economy-pct: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(#10B981 calc(var(--linear-economy-pct) * 1%), #BFDBFE 0);
    position: relative;
}

#results #tab-resumo .linear-economy-ring::after {
    content: '';
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #EFF6FF;
}

#results #tab-resumo .linear-economy-ring strong {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: #065F46;
}

#results #tab-resumo .linear-economy-label {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
}

#results #tab-resumo .linear-economy-value {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #065F46;
    line-height: 1.1;
    white-space: nowrap;
}

#results #tab-resumo .linear-economy-value.is-budget {
    font-size: clamp(0.82rem, 2.8vw, 1.05rem);
}

#results #tab-resumo .linear-economy-nowrap {
    display: inline-block;
    white-space: nowrap;
    word-break: keep-all;
}

#results #tab-resumo .linear-action-head {
    margin-bottom: 0.9rem;
}

#results #tab-resumo .linear-action-text {
    margin: 0.35rem 0 0;
    color: #1F2937;
    line-height: 1.5;
}

#results #tab-resumo .linear-primary-btn,
#results #tab-resumo .linear-secondary-btn {
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

#results #tab-resumo .linear-primary-btn:hover,
#results #tab-resumo .linear-secondary-btn:hover {
    filter: brightness(0.95);
}

#results #tab-resumo .linear-primary-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-size: 0.98rem;
}

#results #tab-resumo .linear-first-step,
#results #tab-resumo .linear-channel-hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #475569;
}

#results #tab-resumo .linear-script-box {
    margin-top: 0.8rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: #1F2937;
    white-space: pre-wrap;
    line-height: 1.55;
}

#results #tab-resumo .linear-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    font-size: 0.78rem;
}

#results #tab-resumo .linear-secondary-btn i {
    width: 14px;
    height: 14px;
}

#results #tab-resumo .linear-details-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 0.85rem 1rem;
    color: #0F172A;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

#results #tab-resumo .linear-toggle-icon {
    width: 18px;
    height: 18px;
    color: #64748B;
    transition: transform 0.2s ease;
}

#results #tab-resumo .linear-details-toggle.is-open .linear-toggle-icon {
    transform: rotate(180deg);
}

#results #tab-resumo .linear-details-content {
    margin-top: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

#results #tab-resumo .linear-detail-group + .linear-detail-group {
    border-top: 1px solid #E5E7EB;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
}

#results #tab-resumo .linear-detail-group h4 {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0F172A;
}

#results #tab-resumo .linear-detail-group ul {
    margin: 0;
    padding-left: 1rem;
}

#results #tab-resumo .linear-detail-group li {
    margin: 0.28rem 0;
    color: #475569;
    font-size: 0.83rem;
    line-height: 1.45;
}

#results #tab-resumo .linear-scenarios-head h3 {
    margin: 0.35rem 0 0;
    font-size: 1.02rem;
    color: #1F2937;
}

#results #tab-resumo .linear-scenarios-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

#results #tab-resumo .linear-scenario-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.75rem;
    background: #FFFFFF;
}

#results #tab-resumo .linear-scenario-item.is-recommended {
    border-color: #2563EB;
    background: #EFF6FF;
}

#results #tab-resumo .linear-scenario-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

#results #tab-resumo .linear-badge {
    font-size: 0.65rem;
    background: #2563EB;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-weight: 800;
}

#results #tab-resumo .linear-scenario-line {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.22rem;
}

#results #tab-resumo .linear-scenario-line strong {
    color: #0F172A;
}

@media (max-width: 900px) {
    #results #tab-resumo .linear-scenarios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #results #tab-resumo .linear-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    #results #tab-resumo .linear-scenarios-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 0 entry cards */
#step0 .step-title,
#step0 .step-subtitle {
    text-align: center;
}

#step0 .step-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.05rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0C2247;
}

#step0 .step-subtitle {
    margin-top: 0.15rem;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.02rem);
    color: #597493;
}

.entry-cards {
    max-width: 690px;
    margin: 1.9rem auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.entry-card {
    appearance: none;
    border: 2px solid #C9D4E6;
    background: #F8FAFD;
    border-radius: 18px;
    padding: 0.95rem 0.95rem 0.85rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.09);
    border-color: #A9BBDA;
}

.entry-card-choice:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.25);
    outline-offset: 2px;
}

.entry-card-badge {
    position: absolute;
    top: -11px;
    left: 74.5%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    background: #4A7BF2;
    border-radius: 999px;
    padding: 0.33rem 0.8rem;
    box-shadow: 0 6px 14px rgba(79, 127, 246, 0.35);
    white-space: nowrap;
}

.entry-card-badge-symbol {
    font-size: 0.78rem;
    line-height: 1;
    color: #FACC15;
    transform: translateY(-0.5px);
}

.entry-card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8EDF4;
    color: #64748B;
    margin-top: 0.15rem;
    margin-bottom: 0.44rem;
}

.entry-card-icon-box-primary {
    background: #DEE7F5;
    color: #4A7FF1;
}

.entry-card-icon-box i,
.entry-card-icon-box svg {
    width: 26px;
    height: 26px;
}

.entry-card-title {
    font-size: clamp(1.2rem, 1.8vw, 1.35rem);
    font-weight: 700;
    color: #0C2047;
    line-height: 1.2;
}

.entry-card-desc {
    font-size: clamp(0.92rem, 1.2vw, 0.96rem);
    color: #4E6487;
    line-height: 1.5;
    max-width: 33ch;
    min-height: 4.4em;
}

.entry-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    border-radius: 999px;
    padding: 0.34rem 0.85rem;
    background: #E7ECF3;
    color: #62748F;
    font-size: 0.84rem;
    font-weight: 700;
}

.entry-card-chip i,
.entry-card-chip svg {
    width: 13px;
    height: 13px;
}

.entry-card-chip-primary {
    background: #E7EEFF;
    color: #4474E7;
}

.entry-card-primary {
    border-color: #B4CCF4;
    background: #F4F8FF;
}

.entry-card-primary .entry-card-title {
    color: #2E58BF;
}

.entry-card-manual {
    background: #F7F9FC;
}

.entry-card-manual .entry-card-title {
    white-space: normal;
}

.entry-card-cpf {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 1rem;
}

.entry-security-note {
    margin: 1.45rem auto 0;
    max-width: 690px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #96A5BD;
    text-align: center;
}

.entry-security-note i,
.entry-security-note svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .diagnostic-section .container {
        max-width: 760px !important;
        padding: 1.4rem 1rem 2.4rem !important;
    }

    .form-step {
        padding: 1.4rem !important;
    }

    #step0 .step-title {
        font-size: 1.85rem;
    }

    .entry-cards {
        max-width: 720px;
        margin-top: 1.5rem;
        gap: 0.95rem;
    }

    .entry-card {
        min-height: 214px;
    }

    .entry-card-title {
        font-size: 1.26rem;
    }

    .entry-card-desc {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .diagnostic-section .container {
        padding: 1rem 0.85rem 2rem !important;
    }

    .form-step {
        padding: 1rem !important;
        border-radius: 14px !important;
    }

    #step0 .step-title {
        font-size: 1.62rem;
    }

    #step0 .step-subtitle {
        font-size: 0.92rem;
    }

    .entry-cards {
        grid-template-columns: 1fr;
        margin-top: 1rem;
        gap: 0.85rem;
    }

    .entry-card {
        min-height: 188px;
        padding: 0.95rem 0.9rem;
    }

    .entry-card-badge {
        left: 70%;
    }

    .entry-card-title {
        font-size: 1.14rem;
    }

    .entry-card-desc {
        min-height: 0;
        font-size: 0.9rem;
    }

    .entry-card-chip {
        font-size: 0.8rem;
    }

    .entry-card-icon-box {
        width: 54px;
        height: 54px;
    }

    .entry-card-icon-box i,
    .entry-card-icon-box svg {
        width: 22px;
        height: 22px;
    }

    .entry-security-note {
        font-size: 0.8rem;
        padding: 0 0.5rem;
        line-height: 1.45;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #step0 .step-title {
        font-size: 1.5rem;
    }

    #step0 .step-subtitle {
        font-size: 0.9rem;
    }

    .entry-card {
        min-height: 188px;
        gap: 0.7rem;
    }

    .entry-card-title {
        font-size: 1.15rem;
    }

    .entry-card-desc {
        font-size: 0.9rem;
    }

    .entry-card-chip {
        font-size: 0.8rem;
        padding: 0.32rem 0.72rem;
    }
}

@media (max-width: 390px) {
    .diagnostic-section .container {
        padding: 0.75rem 0.65rem 1.5rem !important;
    }

    .form-step {
        padding: 0.85rem !important;
        border-radius: 12px !important;
    }

    #main-stepper {
        margin-bottom: 1.1rem !important;
    }

    #step0 .step-title {
        font-size: 1.38rem;
        line-height: 1.12;
    }

    #step0 .step-subtitle {
        font-size: 0.86rem;
    }

    .entry-cards {
        margin-top: 0.9rem;
        gap: 0.75rem;
    }

    .entry-card {
        min-height: 174px;
        gap: 0.62rem;
        padding: 0.85rem 0.75rem;
    }

    .entry-card-badge {
        left: 72%;
        font-size: 0.75rem;
        padding: 0.28rem 0.66rem;
    }

    .entry-card-badge-symbol {
        font-size: 0.72rem;
    }

    .entry-card-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .entry-card-icon-box i,
    .entry-card-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .entry-card-title {
        font-size: 1.02rem;
    }

    .entry-card-desc {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .entry-card-chip {
        font-size: 0.74rem;
    }

    .entry-security-note {
        margin-top: 1rem;
        font-size: 0.76rem;
        gap: 0.34rem;
    }
}

/* OCR category confirmation banner (Step 1) */
.ocr-category-confirm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    margin: 0 0 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.9rem;
}

.ocr-category-confirm-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ocr-category-confirm-source {
    color: #475569;
    font-size: 0.75rem;
}

.ocr-category-confirm-change {
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    border-radius: 7px;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1.1;
}

.ocr-category-confirm-change:hover {
    background: #f8fafc;
}

.result-data-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    margin: 0.5rem 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.result-data-source-badge.is-auto {
    background: #ecfdf5;
    border-color: #86efac;
    color: #065f46;
}

.result-data-source-badge.is-manual {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.contextual-header {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.45rem 0 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}

.contextual-header-note {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.84rem;
    line-height: 1.45;
}

.contextual-header-match {
    color: #065f46;
    font-weight: 600;
}

.contextual-header-warning {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #facc15;
    background: #fefce8;
    color: #854d0e;
    font-size: 0.8rem;
    line-height: 1.45;
}

.reputation-source-row {
    margin-top: 0.6rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
}

.source-fresh {
    background: #e6f4ea;
    color: #1e7e34;
    border-color: #b7e4c7;
}

.source-recent {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffcc80;
}

.source-stale {
    background: #fce4ec;
    color: #c62828;
    border-color: #f8bbd0;
}

.source-none {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.prescription-alert-banner {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0.875rem 1rem;
    margin: 0.75rem 0 1rem;
}

.prescription-alert-banner.is-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.prescription-alert-banner.is-critical {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.prescription-alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.prescription-alert-icon {
    line-height: 1;
    font-size: 1rem;
}

.prescription-alert-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.prescription-alert-disclaimer {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.92;
}

/* ===== Mobile-First Consistency Pass (390 / 768 / 1024) ===== */
@media (max-width: 1024px) {
    .diagnostic-section .container {
        max-width: 760px !important;
        padding: 1.35rem 1rem 2.25rem !important;
    }

    .form-step {
        padding: 1.4rem !important;
    }

    .stepper {
        margin: 0 auto 1.6rem !important;
        padding: 0 0.45rem !important;
    }

    .entry-cards {
        max-width: 690px;
        gap: 0.95rem;
    }

    .entry-card {
        min-height: 206px;
    }
}

@media (max-width: 768px) {
    .diagnostic-section .container {
        padding: 0.95rem 0.8rem 2rem !important;
    }

    .form-step {
        border-radius: 14px !important;
        padding: 1rem !important;
    }

    .stepper {
        margin-bottom: 1.2rem !important;
        padding: 0 0.2rem 0.2rem !important;
    }

    .stepper-step {
        min-width: 74px;
    }

    .stepper-connector {
        width: 42px !important;
    }

    #step0 .step-title {
        font-size: 1.56rem;
        line-height: 1.12;
    }

    #step0 .step-subtitle {
        font-size: 0.92rem;
    }

    .entry-cards {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-top: 1.05rem;
        gap: 0.85rem;
    }

    .entry-card {
        min-height: 186px;
        padding: 0.95rem 0.9rem;
    }

    .entry-card-badge {
        left: 72.8%;
    }

    .debt-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .debt-type-card {
        padding: 1rem;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-refined {
        min-height: 44px;
    }

    #results .plan-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.2rem;
    }

    #results .plan-tab,
    #results .plan-tabs .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    #results #tab-cenarios .scenario-card {
        padding: 1rem !important;
    }

}

@media (max-width: 390px) {
    .diagnostic-section .container {
        padding: 0.75rem 0.65rem 1.5rem !important;
    }

    .form-step {
        padding: 0.85rem !important;
        border-radius: 12px !important;
    }

    .stepper {
        margin-bottom: 1.05rem !important;
        padding: 0 0.05rem 0.15rem !important;
    }

    .stepper-step {
        min-width: 66px;
    }

    .stepper-connector {
        width: 32px !important;
    }

    #step0 .step-title {
        font-size: 1.34rem;
    }

    #step0 .step-subtitle {
        font-size: 0.86rem;
    }

    .entry-cards {
        max-width: 100%;
        gap: 0.74rem;
    }

    .entry-card {
        min-height: 172px;
        padding: 0.84rem 0.74rem;
        gap: 0.64rem;
    }

    .entry-card-badge {
        left: 73.5%;
        font-size: 0.74rem;
    }

    .entry-card-icon-box {
        width: 48px;
        height: 48px;
    }

    .entry-card-title {
        font-size: 1rem;
    }

    .entry-card-desc {
        font-size: 0.84rem;
    }

    .entry-card-chip {
        font-size: 0.74rem;
    }

    .debt-type-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .debt-type-card {
        padding: 0.9rem;
    }
}

/* ==========================================================
   CHANGE 8: Section labels in resumo cards grid
   grid-column: 1/-1 ensures the label spans full width
   ========================================================== */
.resumo-section-label {
    grid-column: 1 / -1;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0 0;
    margin-top: 0.25rem;
}

/* CHANGE 12: summary-actions primary and secondary share equal flex width;
   btn-pdf stays fixed. Ensures consistent split even when CSS order varies. */
#results .summary-actions .btn-primary,
#results .summary-actions .btn-secondary {
    flex: 1 !important;
    min-width: 0;
}

/* CHANGE 9: full-width cards in resumo grid */
#results #tab-resumo .resumo-cards-grid > .summary-card-full,
#results #tab-resumo .resumo-cards-grid > #collapsibleDetailSection {
    grid-column: 1 / -1 !important;
}
