 :root {
     --saffron: #FF6B1A;
     --saffron-light: #FF8C45;
     --saffron-pale: #FFF0E6;
     --green: #138808;
     --green-light: #1FAD0A;
     --green-pale: #E8F7E6;
     --navy: #0A1628;
     --navy-mid: #162340;
     --blue-accent: #1A4BD4;
     --gold: #D4A017;
     --gold-light: #F0C040;
     --white: #FFFFFF;
     --off-white: #FAF8F5;
     --border: #E8E2D8;
     --text-muted: #7A7065;
     --text-body: #2C2416;
     --danger: #C8392B;
     --card-bg: #FFFFFF;
     --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
     --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.14);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Inter', sans-serif;
     background: var(--off-white);
     color: var(--text-body);
     min-height: 100vh;
 }

 /* ===== HEADER ===== */
 .header {
     background: var(--navy);
     padding: 0;
     position: relative;
     overflow: hidden;
 }

 .header::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, var(--saffron) 33%, var(--white) 33%, var(--white) 66%, var(--green) 66%);
 }

 .header-inner {
     max-width: 960px;
     margin: 0 auto;
     padding: 32px 24px 28px;
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .header-icon {
     width: 56px;
     height: 56px;
     background: linear-gradient(135deg, var(--saffron), var(--gold));
     border-radius: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 26px;
     flex-shrink: 0;
     box-shadow: 0 4px 12px rgba(255, 107, 26, 0.4);
     color: #fff;
 }

 .header-text h1 {
     font-family: 'Inter', serif;
     color: var(--white);
     font-size: 26px;
     font-weight: 700;
     letter-spacing: -0.3px;
 }

 .header-text p {
     color: rgba(255, 255, 255, 0.6);
     font-size: 13.5px;
     margin-top: 3px;
     font-weight: 400;
 }

 /* ===== STEPPER ===== */
 .stepper {
     background: var(--navy-mid);
     padding: 0 24px;
 }

 .stepper-inner {
     max-width: 960px;
     margin: 0 auto;
     display: flex;
     gap: 0;
 }

 .step-tab {
     padding: 14px 20px;
     display: flex;
     align-items: center;
     gap: 10px;
     cursor: pointer;
     border-bottom: 3px solid transparent;
     transition: all 0.2s;
     color: rgba(255, 255, 255, 0.45);
     font-size: 13.5px;
     font-weight: 500;
     user-select: none;
 }

 .step-tab.active {
     color: var(--white);
     border-bottom-color: var(--saffron);
 }

 .step-tab.done {
     color: var(--green-light);
     border-bottom-color: var(--green);
 }

 .step-num {
     width: 22px;
     height: 22px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.12);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 11px;
     font-weight: 700;
     flex-shrink: 0;
 }

 .step-tab.active .step-num {
     background: var(--saffron);
     color: white;
 }

 .step-tab.done .step-num {
     background: var(--green);
     color: white;
 }

 /* ===== MAIN ===== */
 .main {
     max-width: 960px;
     margin: 0 auto;
     padding: 32px 24px 60px;
 }

 /* ===== SECTION CARD ===== */
 .section-card {
     background: var(--card-bg);
     border-radius: 16px;
     box-shadow: var(--shadow);
     margin-bottom: 24px;
     overflow: hidden;
     border: 1px solid var(--border);
 }

 .section-header {
     padding: 18px 24px;
     display: flex;
     align-items: center;
     gap: 12px;
     border-bottom: 1px solid var(--border);
     cursor: pointer;
     user-select: none;
     background: linear-gradient(to right, var(--saffron-pale), transparent);
 }

 .section-header-icon {
     width: 36px;
     height: 36px;
     border-radius: 10px;
     background: var(--saffron);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 17px;
     flex-shrink: 0;
     color: #fff;
 }

 .section-header h2 {
     font-family: 'Inter', serif;
     font-size: 17px;
     font-weight: 600;
     color: var(--navy);
     flex: 1;
 }

 .section-header .section-total {
     font-size: 14px;
     font-weight: 600;
     color: var(--saffron);
     margin-right: 8px;
 }

 .toggle-arrow {
     width: 20px;
     height: 20px;
     color: var(--text-muted);
     transition: transform 0.2s;
 }

 .section-card.collapsed .toggle-arrow {
     transform: rotate(-90deg);
 }

 .section-body {
     padding: 0;
     transition: all 0.3s;
 }

 .section-card.collapsed .section-body {
     display: none;
 }

 /* ===== FIELD ROWS ===== */
 .field-row {
     display: grid;
     grid-template-columns: 1fr 140px 140px;
     gap: 0;
     border-bottom: 1px solid var(--border);
     align-items: center;
     transition: background 0.15s;
 }

 .field-row:last-child {
     border-bottom: none;
 }

 .field-row:hover {
     background: #FAFAF8;
 }

 .field-label {
     padding: 13px 24px;
     font-size: 13.5px;
     color: var(--text-body);
     font-weight: 400;
 }

 .field-label span {
     display: block;
     font-size: 11.5px;
     color: var(--text-muted);
     margin-top: 2px;
 }

 .field-input-wrap {
     padding: 10px 12px;
     border-left: 1px solid var(--border);
     position: relative;
 }

 .field-input-wrap .currency-sym {
     position: absolute;
     left: 20px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-muted);
     font-size: 13px;
     font-weight: 500;
     pointer-events: none;
 }

 .field-input {
     width: 100%;
     padding: 8px 8px 8px 24px;
     border: 1.5px solid var(--border);
     border-radius: 8px;
     font-size: 13.5px;
     font-family: 'Inter', sans-serif;
     color: var(--navy);
     background: var(--off-white);
     font-weight: 500;
     transition: border-color 0.2s, box-shadow 0.2s;
     -moz-appearance: textfield;
 }

 .field-input::-webkit-outer-spin-button,
 .field-input::-webkit-inner-spin-button {
     -webkit-appearance: none;
 }

 .field-input:focus {
     outline: none;
     border-color: var(--saffron);
     box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.12);
     background: white;
 }

 .field-annual {
     padding: 10px 12px;
     border-left: 1px solid var(--border);
     font-size: 13.5px;
     font-weight: 500;
     color: var(--text-muted);
     text-align: right;
     padding-right: 20px;
 }

 /* Column headers */
 .col-header-row {
     display: grid;
     grid-template-columns: 1fr 140px 140px;
     background: var(--navy);
     color: rgba(255, 255, 255, 0.7);
     font-size: 11.5px;
     font-weight: 600;
     letter-spacing: 0.5px;
     text-transform: uppercase;
 }

 .col-header-row div {
     padding: 9px 12px;
     border-left: 1px solid rgba(255, 255, 255, 0.08);
 }

 .col-header-row div:first-child {
     padding-left: 24px;
     border-left: none;
 }

 .col-header-row div:last-child {
     text-align: right;
     padding-right: 20px;
 }

 /* Subtotal row */
 .subtotal-row {
     display: grid;
     grid-template-columns: 1fr 140px 140px;
     background: var(--saffron-pale);
     border-top: 2px solid var(--saffron);
 }

 .subtotal-row div {
     padding: 11px 12px;
     font-size: 13.5px;
     font-weight: 600;
     color: var(--navy);
     border-left: 1px solid rgba(255, 107, 26, 0.2);
 }

 .subtotal-row div:first-child {
     padding-left: 24px;
     border-left: none;
 }

 .subtotal-row div:last-child {
     text-align: right;
     padding-right: 20px;
 }

 .subtotal-row span {
     color: var(--saffron);
 }

 /* ===== BUTTONS ===== */
 .btn-row {
     display: flex;
     gap: 12px;
     justify-content: flex-end;
     margin-top: 28px;
     flex-wrap: wrap;
 }

 .btn {
     padding: 12px 28px;
     border-radius: 10px;
     font-family: 'Inter', sans-serif;
     font-size: 14px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s;
     border: none;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .btn-primary {
     background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
     color: white;
     box-shadow: 0 4px 14px rgba(255, 107, 26, 0.35);
 }

 .btn-primary:hover {
     transform: translateY(-1px);
     box-shadow: 0 6px 20px rgba(255, 107, 26, 0.45);
 }

 .btn-secondary {
     background: white;
     color: var(--navy);
     border: 1.5px solid var(--border);
 }

 .btn-secondary:hover {
     border-color: var(--saffron);
     color: var(--saffron);
 }

 .btn-green {
     background: linear-gradient(135deg, var(--green), var(--green-light));
     color: white;
     box-shadow: 0 4px 14px rgba(19, 136, 8, 0.3);
 }

 .btn-green:hover {
     transform: translateY(-1px);
 }

 .btn-blue {
     background: linear-gradient(135deg, var(--blue-accent), #2D62F0);
     color: white;
     box-shadow: 0 4px 14px rgba(26, 75, 212, 0.3);
 }

 .btn-blue:hover {
     transform: translateY(-1px);
 }

 /* ===== PAGE INTRO ===== */
 .page-intro {
     background: linear-gradient(135deg, var(--navy), var(--navy-mid));
     border-radius: 14px;
     padding: 24px 28px;
     margin-bottom: 28px;
     color: white;
     display: flex;
     gap: 20px;
     align-items: flex-start;
     border: 1px solid rgba(255, 255, 255, 0.08);
 }

 .page-intro-text h2 {
     font-family: 'Inter', serif;
     font-size: 20px;
     font-weight: 600;
     margin-bottom: 6px;
 }

 .page-intro-text p {
     color: rgba(255, 255, 255, 0.65);
     font-size: 13.5px;
     line-height: 1.6;
 }

 .intro-emoji {
     font-size: 36px;
     flex-shrink: 0;
 }

 /* ===== RESULT PAGE ===== */
 .result-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 20px;
     margin-bottom: 24px;
 }

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

 .result-card {
     background: white;
     border-radius: 14px;
     border: 1px solid var(--border);
     box-shadow: var(--shadow);
     overflow: hidden;
 }

 .result-card-header {
     padding: 16px 20px;
     font-family: 'Inter', serif;
     font-size: 16px;
     font-weight: 600;
     color: white;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .rch-income {
     background: linear-gradient(135deg, #1A4BD4, #2D62F0);
 }

 .rch-expense {
     background: linear-gradient(135deg, var(--saffron), #FF8C45);
 }

 .rch-balance {
     background: linear-gradient(135deg, var(--green), var(--green-light));
 }

 .rch-balance.negative {
     background: linear-gradient(135deg, var(--danger), #E55A4C);
 }

 .result-card-body {
     padding: 20px;
 }

 .result-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px 0;
     border-bottom: 1px solid var(--border);
     font-size: 13.5px;
 }

 .result-row:last-child {
     border-bottom: none;
 }

 .result-row .label {
     color: var(--text-muted);
 }

 .result-row .value {
     font-weight: 600;
     color: var(--navy);
 }

 .result-total {
     display: flex;
     justify-content: space-between;
     padding: 12px 0 0;
     font-size: 15px;
     font-weight: 700;
     color: var(--navy);
     border-top: 2px solid var(--border);
     margin-top: 4px;
 }

 /* Big balance card */
 .balance-big-card {
     background: white;
     border-radius: 16px;
     border: 2px solid var(--green);
     box-shadow: 0 8px 32px rgba(19, 136, 8, 0.15);
     padding: 28px 32px;
     margin-bottom: 24px;
     text-align: center;
 }

 .balance-big-card.negative {
     border-color: var(--danger);
     box-shadow: 0 8px 32px rgba(200, 57, 43, 0.15);
 }

 .balance-big-card .label {
     font-size: 13px;
     color: var(--text-muted);
     letter-spacing: 0.5px;
     text-transform: uppercase;
     font-weight: 600;
     margin-bottom: 8px;
 }

 .balance-big-card .amount {
     font-family: 'Inter', serif;
     font-size: 42px;
     font-weight: 700;
     color: var(--green);
     line-height: 1;
     margin-bottom: 6px;
 }

 .balance-big-card.negative .amount {
     color: var(--danger);
 }

 .balance-big-card .sub {
     font-size: 13px;
     color: var(--text-muted);
 }

 .balance-badge {
     display: inline-block;
     margin-top: 12px;
     padding: 6px 16px;
     border-radius: 100px;
     font-size: 12.5px;
     font-weight: 600;
 }

 .balance-badge.good {
     background: var(--green-pale);
     color: var(--green);
 }

 .balance-badge.bad {
     background: #FDECEA;
     color: var(--danger);
 }

 /* Breakdown table */
 .breakdown-table {
     width: 100%;
     border-collapse: collapse;
     font-size: 13.5px;
     margin-top: 8px;
 }

 .breakdown-table th {
     background: var(--navy);
     color: rgba(255, 255, 255, 0.75);
     padding: 10px 16px;
     text-align: left;
     font-weight: 600;
     font-size: 12px;
     letter-spacing: 0.4px;
     text-transform: uppercase;
 }

 .breakdown-table th:last-child,
 .breakdown-table td:last-child {
     text-align: right;
 }

 .breakdown-table td {
     padding: 11px 16px;
     border-bottom: 1px solid var(--border);
     color: var(--text-body);
 }

 .breakdown-table tr:last-child td {
     border-bottom: none;
     font-weight: 700;
     background: var(--saffron-pale);
 }

 .breakdown-table tr:nth-child(even) td {
     background: #F9F7F4;
 }

 .breakdown-table tr:last-child td {
     background: var(--saffron-pale);
 }

 .insight-box {
     background: linear-gradient(135deg, var(--navy-mid), var(--navy));
     border-radius: 14px;
     padding: 22px 24px;
     color: white;
     margin-bottom: 24px;
 }

 .insight-box h3 {
     font-family: 'Inter', serif;
     font-size: 17px;
     font-weight: 600;
     margin-bottom: 12px;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .insight-item {
     display: flex;
     gap: 10px;
     align-items: flex-start;
     margin-bottom: 10px;
     font-size: 13.5px;
     color: rgba(255, 255, 255, 0.8);
     line-height: 1.5;
 }

 .insight-item:last-child {
     margin-bottom: 0;
 }

 .insight-dot {
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: var(--gold-light);
     flex-shrink: 0;
     margin-top: 7px;
 }

 /* Export bar */
 .export-bar {
     background: white;
     border: 1px solid var(--border);
     border-radius: 14px;
     padding: 20px 24px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     flex-wrap: wrap;
     box-shadow: var(--shadow);
     margin-bottom: 24px;
 }

 .export-bar-text h3 {
     font-size: 15px;
     font-weight: 600;
     color: var(--navy);
     margin-bottom: 3px;
 }

 .export-bar-text p {
     font-size: 12.5px;
     color: var(--text-muted);
 }

 .export-btns {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
 }

 /* Hidden */
 .page {
     display: none;
 }

 .page.active {
     display: block;
 }

 /* Responsive */
 @media(max-width: 600px) {
     .header-inner {
         padding: 20px 16px;
     }

     .main {
         padding: 20px 16px 40px;
     }

     .field-row {
         grid-template-columns: 1fr 120px;
     }

     .field-annual {
         display: none;
     }

     .col-header-row {
         grid-template-columns: 1fr 120px;
     }

     .col-header-row div:last-child {
         display: none;
     }

     .btn {
         padding: 10px 18px;
         font-size: 13px;
     }
 }

 .nav-hint {
     text-align: center;
     color: var(--text-muted);
     font-size: 13px;
     margin-top: 20px;
 }

 .progress-bar-wrap {
     background: rgba(255, 255, 255, 0.1);
     height: 3px;
     margin: 0;
 }

 .progress-bar {
     height: 3px;
     background: linear-gradient(90deg, var(--saffron), var(--gold-light));
     transition: width 0.4s;
 }

 /* Amount display formatting */
 .lakhs {
     color: var(--blue-accent);
 }