:where([hidden]) { display: none !important; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; position: relative; }
.login-card { width: min(100%, 420px); padding: 38px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 35, 56, .98), rgba(13, 25, 42, .98)); box-shadow: 0 24px 70px rgba(0, 0, 0, .35), 0 0 45px rgba(45, 111, 205, .08); }
.login-brand { margin-bottom: 48px; }
.login-heading h1 { margin: 0; font-size: 28px; letter-spacing: -.8px; }.login-heading p:last-child { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.login-form { margin-top: 30px; }.login-field { display: block; margin-bottom: 17px; }.login-field span { display: block; color: #b2c1d4; font-size: 11px; font-weight: 600; margin-bottom: 8px; }.login-field input { width: 100%; height: 45px; border: 1px solid var(--border); border-radius: 8px; outline: none; color: var(--text); background: rgba(7, 16, 29, .52); padding: 0 13px; transition: border-color .2s, box-shadow .2s; }.login-field input::placeholder { color: #596b83; }.login-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 157, 255, .12); }
.password-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }.password-toggle input { width: 14px; height: 14px; accent-color: var(--blue); }.login-error { min-height: 17px; color: #ff9b9b; font-size: 11px; margin: 14px 0 4px; }.login-button { width: 100%; height: 45px; border: 0; border-radius: 8px; color: #071321; background: var(--blue-bright); font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(79, 149, 244, .18); transition: transform .2s, background .2s; }.login-button:hover { background: #93c6ff; transform: translateY(-1px); }.demo-hint { display: grid; gap: 5px; color: #71849c; font-size: 11px; text-align: left; margin: 24px 0 0; padding: 13px 15px; border: 1px solid rgba(150, 176, 208, .1); border-radius: 9px; background: rgba(7, 16, 29, .22); }.demo-title { color: #b8c9dc; font-size: 11px; font-weight: 600; margin-bottom: 2px; }.demo-hint b { color: #a8bad0; font-weight: 600; }.demo-hint small { color: #687c96; font-size: 10px; margin-top: 5px; }
.header-actions { display: flex; align-items: center; gap: 18px; }.logout-button { border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: transparent; padding: 8px 11px; font-size: 11px; transition: color .2s, border-color .2s, background .2s; }.logout-button:hover { color: var(--text); border-color: rgba(118, 178, 255, .45); background: rgba(91, 157, 255, .1); }

:root {
  --bg: #08111f;
  --surface: #101c2e;
  --surface-light: #16253a;
  --border: rgba(150, 176, 208, 0.14);
  --text: #f4f7fb;
  --muted: #91a2b8;
  --blue: #5b9dff;
  --blue-bright: #76b2ff;
  --green: #65d9ae;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% 0%, rgba(53, 113, 196, 0.13), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.015), transparent 35%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1240px; margin: 0 auto; padding: 0 34px 34px; position: relative; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.3px; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 8px; background: #1a5bb0; box-shadow: 0 8px 18px rgba(36, 118, 231, .25); }
.brand-mark span { width: 4px; border-radius: 4px; background: #d9eaff; }.brand-mark span:nth-child(1) { height: 8px; }.brand-mark span:nth-child(2) { height: 13px; }.brand-mark span:nth-child(3) { height: 17px; background: #78c6ff; }
.header-status, .date-chip, .expense-count-badge { color: var(--muted); font-size: 12px; }.header-status { display: flex; align-items: center; gap: 8px; }.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(101, 217, 174, .1); }
.welcome-row { display: flex; align-items: end; justify-content: space-between; padding: 48px 0 30px; }.eyebrow { color: var(--blue-bright); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; margin: 0 0 10px; text-transform: uppercase; }.welcome-row h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -1.3px; margin: 0; }.welcome-row h1 span { color: #94a8c2; }.welcome-copy { color: var(--muted); font-size: 14px; margin: 10px 0 0; }.date-chip { border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; background: rgba(16, 28, 46, .65); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.summary-card, .panel { background: linear-gradient(145deg, rgba(20, 35, 56, .96), rgba(13, 25, 42, .96)); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }.summary-card { min-height: 154px; padding: 22px 24px; }.summary-card-primary { border-color: rgba(91, 157, 255, .32); background: linear-gradient(135deg, #163d70, #122946 75%); }.card-label { color: #b2c1d4; font-size: 12px; display: flex; align-items: center; gap: 9px; }.icon { display: inline-block; width: 17px; height: 17px; position: relative; opacity: .9; }.icon-wallet { border: 1.5px solid var(--blue-bright); border-radius: 4px; }.icon-wallet::after { content: ""; position: absolute; right: -1px; top: 5px; width: 6px; height: 5px; border: 1px solid var(--blue-bright); border-radius: 2px; background: #193c68; }.icon-receipt { border: 1.5px solid var(--blue-bright); border-radius: 3px; }.icon-receipt::after { content: "≡"; position: absolute; left: 3px; top: -4px; color: var(--blue-bright); font-size: 14px; }.icon-chart { border-left: 1.5px solid var(--blue-bright); border-bottom: 1.5px solid var(--blue-bright); }.icon-chart::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 8px; height: 7px; border-top: 1.5px solid var(--blue-bright); border-right: 1.5px solid var(--blue-bright); transform: skewY(-35deg); }.summary-value { font-size: 28px; font-weight: 700; letter-spacing: -.8px; margin-top: 18px; }.card-footnote { color: var(--muted); font-size: 11px; margin: 7px 0 0; }.trend-icon { color: var(--green); font-size: 15px; margin-right: 4px; }
.content-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 16px; margin-top: 16px; }.panel { padding: 25px; }.section-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 25px; }.section-heading h2 { font-size: 18px; letter-spacing: -.4px; margin: 0; }.section-heading .eyebrow { margin-bottom: 7px; }.section-icon { color: var(--blue-bright); font-size: 22px; line-height: 1; }.field { display: block; margin-bottom: 17px; }.field > span { display: block; color: #b2c1d4; font-size: 11px; font-weight: 600; margin-bottom: 8px; }.field input, .field select { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 8px; outline: none; color: var(--text); background: rgba(7, 16, 29, .52); padding: 0 13px; transition: border-color .2s, box-shadow .2s; }.field input::placeholder { color: #596b83; }.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 157, 255, .12); }.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8497af 50%), linear-gradient(135deg, #8497af 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }.field select option { background: var(--surface); }.field-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12px; }.input-with-prefix { position: relative; }.input-with-prefix > span { position: absolute; left: 13px; top: 12px; color: var(--muted); }.input-with-prefix input { padding-left: 28px; }.primary-button { width: 100%; height: 45px; margin-top: 3px; border: 0; border-radius: 8px; color: #071321; background: var(--blue-bright); font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(79, 149, 244, .18); transition: transform .2s, background .2s; }.primary-button:hover { background: #93c6ff; transform: translateY(-1px); }.primary-button span { font-size: 17px; vertical-align: -1px; margin-right: 4px; }.more-button { color: var(--muted); border: 0; background: none; letter-spacing: 2px; padding: 0 3px; }.overview-visual { display: flex; align-items: center; gap: 34px; padding: 3px 8px 20px; }.donut-chart { width: 150px; height: 150px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#243c5d 0deg 360deg); position: relative; }.donut-chart::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }.donut-chart div { position: relative; z-index: 1; text-align: center; }.donut-chart strong, .donut-chart small { display: block; }.donut-chart strong { font-size: 24px; }.donut-chart small { color: var(--muted); font-size: 10px; margin-top: 2px; }.legend-list { width: 100%; }.legend-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; padding: 9px 0; border-bottom: 1px solid rgba(150, 176, 208, .08); }.legend-item strong { color: #dce7f5; font-size: 11px; font-weight: 600; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.food { background: #62a8ff; }.bills { background: #65d9ae; }.shopping { background: #bc8aff; }.other { background: #f4bd67; }.overview-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); padding-top: 18px; }.sparkle { color: var(--blue-bright); font-size: 17px; }
.expenses-panel { margin-top: 16px; min-height: 270px; }.expenses-heading { align-items: center; margin-bottom: 20px; }.expenses-actions { display: flex; align-items: center; gap: 10px; }.export-button { border: 1px solid rgba(118, 178, 255, .45); border-radius: 7px; color: var(--blue-bright); background: rgba(91, 157, 255, .1); padding: 7px 10px; font-size: 11px; font-weight: 600; transition: background .2s, border-color .2s; }.export-button:hover { border-color: var(--blue-bright); background: rgba(91, 157, 255, .18); }.expense-count-badge { border: 1px solid var(--border); border-radius: 20px; padding: 6px 10px; }.expense-list-head, .expense-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) 1fr .8fr .8fr 32px; align-items: center; gap: 16px; }.expense-list-head { color: #687c96; font-size: 10px; letter-spacing: .8px; padding: 0 13px 12px; text-transform: uppercase; }.expense-list { border-top: 1px solid var(--border); }.expense-row { border-bottom: 1px solid rgba(150, 176, 208, .08); padding: 14px 13px; font-size: 12px; }.expense-name { display: flex; align-items: center; gap: 11px; min-width: 0; }.expense-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--blue-bright); background: rgba(91, 157, 255, .12); font-size: 13px; }.expense-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }.expense-name small, .expense-category, .expense-date { color: var(--muted); font-size: 11px; }.expense-amount { font-weight: 600; text-align: right; }.delete-button { width: 27px; height: 27px; border: 1px solid var(--border); border-radius: 7px; color: #8193ab; background: transparent; font-size: 16px; }.delete-button:hover { color: #ff8585; border-color: rgba(255, 133, 133, .4); }.empty-state { display: grid; justify-items: center; padding: 36px 20px 25px; text-align: center; }.empty-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 14px; color: var(--blue-bright); background: rgba(91, 157, 255, .1); margin-bottom: 12px; }.empty-state h3 { font-size: 14px; margin: 0 0 7px; }.empty-state p { color: var(--muted); font-size: 12px; margin: 0; }footer { color: #5e728a; font-size: 11px; padding: 25px 3px 0; }footer span { color: var(--blue); padding: 0 6px; }
@media (max-width: 760px) { .app-shell { padding: 0 17px 25px; }.topbar { min-height: 76px; }.header-status { display: none; }.welcome-row { align-items: start; flex-direction: column; gap: 18px; padding: 34px 0 24px; }.date-chip { align-self: flex-start; }.summary-grid { grid-template-columns: 1fr; gap: 10px; }.summary-card { min-height: 122px; padding: 18px 20px; }.summary-value { margin-top: 12px; }.content-grid { grid-template-columns: 1fr; }.panel { padding: 20px; }.overview-visual { gap: 22px; padding-inline: 0; }.donut-chart { width: 125px; height: 125px; }.donut-chart::after { inset: 12px; }.expense-list-head { display: none; }.expense-row { grid-template-columns: 1fr auto 30px; gap: 9px; padding: 13px 3px; }.expense-category { grid-column: 2; grid-row: 1; }.expense-date { grid-column: 1; grid-row: 2; padding-left: 43px; }.expense-amount { grid-column: 2; grid-row: 2; }.delete-button { grid-column: 3; grid-row: 1 / span 2; }.expense-name { grid-column: 1; }.field-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 390px) { .overview-visual { gap: 14px; }.donut-chart { width: 105px; height: 105px; }.donut-chart strong { font-size: 20px; }.legend-item { gap: 5px; }.summary-card { min-height: 115px; } }
.travel { background: #f08a8a; }.education { background: #f4bd67; }.entertainment { background: #8ed8c3; }
.budget-control { margin: -5px 0 20px; }.budget-control label { display: block; color: #b2c1d4; font-size: 11px; font-weight: 600; margin-bottom: 8px; }.budget-form { display: flex; gap: 8px; }.budget-form .input-with-prefix { flex: 1; }.budget-form input { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 8px; outline: none; color: var(--text); background: rgba(7, 16, 29, .52); padding: 0 13px 0 28px; }.budget-form input::placeholder { color: #596b83; }.budget-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 157, 255, .12); }.budget-save-button { height: 38px; border: 1px solid rgba(118, 178, 255, .45); border-radius: 8px; color: var(--blue-bright); background: rgba(91, 157, 255, .1); padding: 0 15px; font-size: 12px; font-weight: 600; }.budget-save-button:hover { background: rgba(91, 157, 255, .18); }.overview-note { flex-wrap: wrap; }.overview-note strong { color: #dce7f5; font-weight: 600; margin-left: auto; }
