* { box-sizing: border-box; }
:root { --ink: #073c4a; --muted: #587483; --paper: #f5f8f4; --line: #dce8e3; --green: #08655c; --mint: #dcefe8; --coral: #fce8df; --red: #d75c3d; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 5%, #dbe8df 0 12%, transparent 35%), #e9f0eb; color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { width: min(100%, 560px); min-height: 100vh; margin: 0 auto; padding: 42px 42px 56px; background: var(--paper); position: relative; overflow: hidden; }
.app-shell:before { content: ''; position: absolute; right: -44px; top: -102px; width: 206px; height: 206px; border-radius: 50%; background: #e6efe9; }
.topbar { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.list-link { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.eyebrow { color: #527688; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin: 0 0 7px; }
h1, h2 { font-family: 'Plus Jakarta Sans', sans-serif; margin: 0; }
h1 { color: #0a3a49; font-size: 26px; line-height: 1.12; letter-spacing: -.3px; }
.icon-button { width: 41px; height: 41px; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px #0b51430d; position: relative; z-index: 1; }
.bell { display: block; font-size: 25px; line-height: 20px; transform: rotate(180deg); }
.notification-button i { position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 10px; right: 10px; background: #e56b4b; }
.balance-card { height: 135px; border-radius: 17px; overflow: hidden; position: relative; color: white; background: var(--green); box-shadow: 0 12px 24px #0d77632b; }
.balance-content { padding: 16px 18px; position: relative; z-index: 1; }
.balance-label-row { display: flex; justify-content: space-between; align-items: center; color: #d8efea; font-size: 12px; }
.month-chip { color: #d8efea; background: #2a7c73; border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.month-chip span { margin-left: 4px; }
.balance-card strong { display: block; margin-top: 10px; font-size: 25px; letter-spacing: 1px; }
.balance-footer { color: #d8efea; font-size: 11px; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.balance-footer > div + div { border-left: 1px solid #62a99d; padding-left: 12px; }
.balance-footer > div { text-align: right; }
.balance-footer small, .balance-footer strong { display: block; }
.balance-footer small { font-size: 10px; }
.balance-footer strong { margin-top: 2px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.balance-orbit { position: absolute; border: 1px solid #35847b; border-radius: 50%; width: 180px; height: 180px; right: -45px; bottom: -93px; }
.orbit-two { width: 240px; height: 240px; right: -95px; bottom: -122px; opacity: .55; }
.dashboard-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; margin-top: 14px; }
.dashboard-links a { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 24px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2px; text-align: left; text-decoration: none; box-shadow: 0 7px 10px #0e514333; text-shadow: 0 1px 1px #06443c55; }
.dashboard-links a::after { font-size: 15px; font-weight: 400; opacity: .85; }
.dashboard-links a:nth-child(1) { background: linear-gradient(120deg, #5e70ed, #16b5db); }
.dashboard-links a:nth-child(1)::after { content: '▣'; }
.dashboard-links a:nth-child(2) { background: linear-gradient(120deg, #ef6b9c, #e90079); }
.dashboard-links a:nth-child(2)::after { content: '⇧'; }
.dashboard-links a:nth-child(3) { background: linear-gradient(120deg, #f6bd53, #f29c38); }
.dashboard-links a:nth-child(3)::after { content: '≡'; }
.dashboard-links a:nth-child(4) { background: linear-gradient(120deg, #2fcbbd, #00a9df); }
.dashboard-links a:nth-child(4)::after { content: '▷'; }
.dashboard-links a:nth-child(5) { background: linear-gradient(120deg, #21d38b, #08bca8); }
.dashboard-links a:nth-child(5)::after { content: '⇩'; }
.dashboard-recap { margin-top: 25px; }
.recap-section + .recap-section { margin-top: 28px; }
.recap-section { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.recap-section h2 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 13px 12px; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; }
.income-recap h2 { background: #00ae63; }
.expense-recap h2 { background: #d90000; }
.recap-section h2 span { font-size: 15px; white-space: nowrap; }
.recap-table { display: grid; grid-template-columns: 1fr 120px; align-items: center; min-height: 32px; border-bottom: 1px solid var(--line); background: #fff; }
.recap-table span { min-width: 0; padding: 7px 5px; font-size: 11px; }
.recap-table span + span { border-left: 1px solid var(--line); }
.recap-table span:nth-child(2) { text-align: right; white-space: nowrap; }
.income-recap #incomeRecapRows .recap-table:nth-child(odd) { background: #f5fbf8; }
.expense-recap #expenseRecapRows .recap-table:nth-child(odd) { background: #fff8f5; }
.recap-table:last-child { border-bottom: 0; }
.manual-amount { width: 100%; min-width: 0; border: 1px solid #b8d7ca; border-radius: 5px; padding: 4px 5px; color: var(--ink); background: #f8fcfa; font-size: 11px; text-align: right; }
.manual-money { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.manual-money b { color: #55717a; font-size: 10px; font-weight: 500; }
.recap-table-head { background: #edf5f1; color: #55717a; font-size: 10px; font-weight: 700; }
.recap-table-head span { font-size: 10px; }
.recap-empty { color: #78909a; font-size: 11px; padding: 9px 5px; background: #fff; }
.summary-grid, .action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-grid { margin-top: 12px; }
.summary-card { min-height: 63px; padding: 13px 11px; border: 1px solid var(--line); background: #fff; border-radius: 15px; display: flex; align-items: center; gap: 10px; }
.summary-icon, .action-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-size: 21px; }
.income .summary-icon { background: var(--mint); color: #30957d; }
.expense .summary-icon { background: var(--coral); color: var(--red); }
.summary-card small, .action-card small { display: block; color: #657f89; font-size: 11px; margin-bottom: 3px; }
.summary-card strong { font-size: 14px; letter-spacing: .2px; white-space: nowrap; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 13px; }
.section-heading h2 { font-size: 18px; }
.section-heading > span { color: #78909a; font-size: 11px; }
.action-grid { gap: 12px; }
.action-card { text-align: left; display: flex; gap: 10px; align-items: center; border-radius: 15px; padding: 13px 10px; color: var(--ink); transition: transform .2s, filter .2s; }
.action-card:hover { transform: translateY(-2px); filter: brightness(.98); }
.action-card.income { background: #dcefe8; }
.action-card.expense { background: #fce8df; }
.action-icon { color: #fff; font-size: 24px; font-weight: 500; }
.action-card.income .action-icon { background: #168c70; }.action-card.expense .action-icon { background: #e77b5c; }
.action-card b { display: block; font-size: 13px; margin-bottom: 2px; }.action-card small { margin: 0; font-size: 10px; }
.activity-heading { margin-top: 24px; }.activity-heading button { color: #00675e; background: none; font-size: 11px; font-weight: 700; }
.activity-list { display: grid; gap: 8px; }.activity { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 13px; display: flex; justify-content: space-between; align-items: center; }.activity b { display: block; font-size: 12px; margin-bottom: 7px; }.activity small { color: #627c88; font-size: 10px; }.activity .value { font-size: 12px; font-weight: 700; white-space: nowrap; }.activity .value.income { color: #00816b; }.activity .value.expense { color: var(--red); }
.modal-backdrop { position: fixed; inset: 0; background: #043b3b80; display: grid; place-items: center; padding: 20px; z-index: 5; }.transaction-modal { width: min(100%, 390px); padding: 25px; border-radius: 20px; background: var(--paper); position: relative; box-shadow: 0 20px 55px #062e2b45; }.transaction-modal h2 { font-size: 23px; margin-bottom: 20px; }.close-button { position: absolute; top: 17px; right: 19px; background: none; color: var(--muted); font-size: 26px; }.transaction-modal label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin: 13px 0; }.transaction-modal input { display: block; width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 11px; margin-top: 6px; color: var(--ink); outline-color: var(--green); }.submit-button { width: 100%; padding: 13px; margin-top: 8px; border-radius: 11px; background: var(--green); color: #fff; font-weight: 700; }
[hidden] { display: none; }
@media (max-width: 460px) { .app-shell { padding: 32px 20px 42px; } }
