.result-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid #eee;
            text-align: center;
            height: 100%;
        }
        .result-card .label {
            font-size: 0.85rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .result-card .value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-top: 0.25rem;
        }
        .result-card .value.green {
            color: #28a745;
        }
        .result-card .value.red {
            color: #dc3545;
        }
        .result-card .value.purple {
            color: #6f42c1;
        }
        .chart-container canvas {
            width: 100% !important;
            height: auto !important;
            max-height: 300px;
        }
        .comparison-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .comparison-badge.savings {
            background: #d4edda;
            color: #155724;
        }
        .comparison-badge.standard {
            background: #e2e3e5;
            color: #383d41;
        }
        .property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .deep-dive p {
            text-align: justify;
        }
        .amortization-toggle {
            cursor: pointer;
            color: var(--primary-color);
            text-decoration: underline dotted;
        }
        .amortization-table-wrapper {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 1rem;
        }
        .amortization-table-wrapper table {
            font-size: 0.85rem;
        }
        .amortization-table-wrapper table th {
            position: sticky;
            top: 0;
            background: #fff;
            z-index: 1;
            box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: inline-block;
        }
        .legend-color.blue {
            background: #0d6efd;
        }
        .legend-color.orange {
            background: #fd7e14;
        }
        .legend-color.green {
            background: #28a745;
        }
        .legend-color.gray {
            background: #6c757d;
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .unit-note {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .badge-pill-custom {
            font-size: 0.8rem;
            padding: 0.3rem 0.8rem;
        }
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            font-size: 0.95rem;
        }
        .comparison-table th,
        .comparison-table td {
            padding: 0.6rem 0.8rem;
            border: 1px solid #dee2e6;
            text-align: center;
        }
        .comparison-table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        .comparison-table .savings-row {
            background-color: #d4edda;
        }
        .spinner-overlay {
            display: inline-block;
            margin-left: 0.5rem;
        }
        @media (max-width: 576px) {
            .result-card .value {
                font-size: 1.4rem;
            }
            .summary-grid {
                grid-template-columns: 1fr 1fr;
            }
            .comparison-table {
                font-size: 0.8rem;
            }
        }