﻿* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        body {
            background: linear-gradient(145deg, #eef2f9 0%, #e0e8f0 100%);
            min-height: 100vh;
            padding: 1rem;
        }
        @media (min-width: 640px) {
            body { padding: 2rem 1rem; }
        }
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        .brand {
            text-align: center;
            margin-bottom: 2rem;
        }
        .brand h1 {
            font-size: clamp(1.5rem, 4vw, 2.3rem);
            font-weight: 800;
            background: linear-gradient(135deg, #0b3b2f, #1e6f5c, #2c9b82);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .dashboard {
            display: flex;
            flex-wrap: wrap;
            gap: 1.8rem;
            margin-bottom: 2rem;
        }
        .card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 2rem;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
            padding: 1.6rem 1.8rem;
            border: 1px solid rgba(30, 111, 92, 0.2);
            backdrop-filter: blur(2px);
        }
        .loan-form-card { flex: 1.2; min-width: 280px; }
        .results-card { flex: 2; min-width: 340px; }
        .ai-insights { flex: 1; min-width: 260px; background: linear-gradient(125deg, #fefcf5, #ffffff); border-left: 5px solid #1e6f5c; }
        h2 {
            font-size: 1.4rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 1.2rem;
            border-left: 4px solid #1e6f5c;
            padding-left: 0.8rem;
        }
        .input-group { margin-bottom: 1.4rem; }
        label { font-weight: 600; font-size: 0.85rem; color: #1e3a2f; display: block; margin-bottom: 0.4rem; }
        input, select {
            width: 100%;
            padding: 0.8rem 1rem;
            border-radius: 1rem;
            border: 1.5px solid #e2e8f0;
            font-size: 1rem;
            outline: none;
            background: white;
        }
        input:focus, select:focus { border-color: #1e6f5c; box-shadow: 0 0 0 3px rgba(30,111,92,0.15); }
        .card button,
        #calculateBtn,
        #applyNowBtn {
            background: #1e6f5c;
            color: white;
            border: none;
            padding: 0.9rem 1.4rem;
            font-weight: 700;
            border-radius: 12px;
            cursor: pointer;
            width: 100%;
            transition: background 0.15s ease, box-shadow 0.15s ease;
            margin-top: 0.5rem;
            min-height: 48px;
            font-size: 1rem;
        }
        .card button:hover,
        #calculateBtn:hover,
        #applyNowBtn:hover {
            background: #0f5a49;
            box-shadow: 0 4px 14px rgba(30, 111, 92, 0.25);
            transform: none;
        }
        button.secondary,
        #applyNowBtn.secondary { background: #4a6a5e; }
        .lender-match-item {
            background: #f8fafc;
            border-radius: 1.2rem;
            padding: 0.9rem;
            margin-bottom: 1rem;
            border-left: 4px solid #1e6f5c;
            cursor: pointer;
            transition: all 0.15s;
        }
        .lender-match-item.selected {
            background: #e0f2e9;
            border-left-color: #0f5a49;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        }
        .lender-name { font-weight: 800; color: #0f2b23; }
        .lender-rate { font-size: 0.85rem; color: #2d6a4f; font-weight: 600; }
        .match-badge { background: #e6f7f2; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.7rem; display: inline-block; margin-top: 6px; }
        .schedule-wrapper { 
            overflow-x: auto; 
            margin-top: 1rem;
            max-height: 400px;
            overflow-y: auto;
        }
        table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
        th { background: #eef2f6; padding: 10px; text-align: center; position: sticky; top: 0; }
        td { padding: 8px; text-align: center; border-bottom: 1px solid #e2edf2; }
        .total-box { background: #eafaf5; padding: 1rem; border-radius: 1.2rem; margin-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
        .info-box { background: #eef2ff; padding: 0.8rem; border-radius: 1rem; margin-bottom: 1rem; font-size: 0.85rem; }
        .footnote { font-size: 0.7rem; color: #5b6e8c; text-align: center; margin-top: 0.8rem; }
        .tab-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #ddd; }
        .tab { padding: 0.5rem 1rem; cursor: pointer; border-radius: 2rem 2rem 0 0; font-weight: 600; background: #eef2f6; transition: 0.2s; }
        .tab.active { background: #1e6f5c; color: white; }
        @media (max-width: 800px) {
            .dashboard { flex-direction: column; }
            .card { padding: 1.2rem 1rem; border-radius: 1.25rem; }
            .loan-form-card, .results-card, .ai-insights { min-width: 0; width: 100%; }
        }
        .warning-msg { color: #c7254e; background: #f9f2f4; padding: 0.5rem; border-radius: 0.8rem; font-size: 0.75rem; margin-top: 0.5rem; }
