@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #12815a;
  --accent-strong: #096b45;
  --accent-deep: #064a34;
  --accent-soft: #e7f6ef;
  --accent-pale: #f4fbf8;
  --accent-rgb: 18, 129, 90;
  --sidebar: #073e2d;
  --sidebar-deep: #052e22;
  --page: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --text: #13241d;
  --muted: #6d7c75;
  --muted-2: #9aa7a1;
  --line: #e2e9e5;
  --positive: #12815a;
  --negative: #d85b5b;
  --warning: #e69b35;
  --blue: #5b77e8;
  --purple: #9b65cd;
  --shadow: 0 12px 35px rgba(24, 54, 41, .07);
  --shadow-lg: 0 30px 80px rgba(2, 43, 29, .19);
  --radius: 18px;
  color-scheme: light;
}

html[data-theme="blue"] {
  --accent: #3978d5; --accent-strong: #2863bb; --accent-deep: #17447f;
  --accent-soft: #eaf2fd; --accent-pale: #f5f9ff; --accent-rgb: 57,120,213;
  --sidebar: #173d70; --sidebar-deep: #102c51; --positive: #3978d5;
}

html[data-theme="purple"] {
  --accent: #8060cf; --accent-strong: #6948ba; --accent-deep: #4b3389;
  --accent-soft: #f0ebfb; --accent-pale: #faf8ff; --accent-rgb: 128,96,207;
  --sidebar: #392862; --sidebar-deep: #291d48; --positive: #8060cf;
}

html[data-theme="orange"] {
  --accent: #d97632; --accent-strong: #bc5e20; --accent-deep: #813d14;
  --accent-soft: #fff0e5; --accent-pale: #fffaf6; --accent-rgb: 217,118,50;
  --sidebar: #663215; --sidebar-deep: #49230e; --positive: #d97632;
}

html[data-mode="dark"] {
  --page: #101613; --surface: #17201c; --surface-2: #1c2722;
  --text: #edf5f1; --muted: #9aaba3; --muted-2: #718078; --line: #2a3831;
  --accent-soft: rgba(var(--accent-rgb), .17); --accent-pale: rgba(var(--accent-rgb), .08);
  --shadow: 0 12px 35px rgba(0,0,0,.18); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
input, select { color: var(--text); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .28); outline-offset: 2px; }
.hidden { display: none !important; }

/* Shared branding */
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; background: var(--accent); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .28); }
.brand-bar { width: 5px; border-radius: 5px; background: white; display: block; transform: skewY(-22deg); }
.bar-one { height: 9px; opacity: .72; }.bar-two { height: 15px; opacity: .86; }.bar-three { height: 21px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font: 800 18px/1.1 "Manrope", sans-serif; letter-spacing: -.4px; }
.brand small { margin-top: 4px; font-size: 9px; letter-spacing: 1.45px; text-transform: uppercase; opacity: .66; }
.brand-light { color: white; }

/* Authentication */
.auth-screen { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: #eaf2ee; position: relative; overflow: hidden; }
html[data-mode="dark"] .auth-screen { background: #0d1411; }
.auth-screen::before, .auth-screen::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); opacity: .5; pointer-events: none; }
.auth-screen::before { width: 420px; height: 420px; background: rgba(var(--accent-rgb), .14); top: -180px; right: -90px; }
.auth-screen::after { width: 360px; height: 360px; border: 1px solid rgba(var(--accent-rgb), .12); bottom: -170px; left: -100px; }
.auth-shell { width: min(1160px, 100%); min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.auth-showcase { background: linear-gradient(145deg, var(--sidebar-deep) 0%, var(--sidebar) 52%, var(--accent-strong) 120%); padding: 44px 52px 34px; position: relative; overflow: hidden; color: white; display: flex; flex-direction: column; }
.auth-showcase::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(transparent, black 35%, black 75%, transparent); opacity: .27; }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-glow-one { width: 390px; height: 390px; background: rgba(89, 238, 171, .12); right: -180px; top: 110px; }
.auth-glow-two { width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.09); left: -100px; bottom: 10px; }
.auth-showcase .brand, .showcase-copy, .auth-trust { position: relative; z-index: 1; }
.showcase-copy { margin: auto 0; padding: 45px 0 20px; }
.eyebrow { color: var(--accent); display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 800; }
.eyebrow > span { width: 20px; height: 2px; border-radius: 3px; background: currentColor; }
.light-eyebrow { color: #8ee7bd; }
.showcase-copy h1 { margin: 17px 0 14px; font: 700 clamp(39px, 4vw, 58px)/1.08 "Manrope", sans-serif; letter-spacing: -2.5px; }
.showcase-copy h1 em { font-style: normal; color: #89e6b9; }
.showcase-copy > p { max-width: 490px; margin: 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.7; }
.showcase-preview { margin-top: 32px; max-width: 470px; padding: 22px 24px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; background: rgba(255,255,255,.075); backdrop-filter: blur(16px); box-shadow: 0 18px 48px rgba(0,0,0,.16); transform: rotate(-1.2deg); }
.preview-top { display: flex; justify-content: space-between; align-items: center; }
.preview-top div { display: flex; flex-direction: column; gap: 4px; }
.preview-top small, .preview-stats small { color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.preview-top strong { font: 700 25px "Manrope", sans-serif; letter-spacing: -.5px; }
.mini-chip { color: #8ee7bd; background: rgba(104,227,165,.13); padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.preview-chart { height: 70px; margin: 18px 0; display: flex; align-items: flex-end; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.12); }
.preview-chart span { flex: 1; min-width: 8px; max-width: 28px; border-radius: 5px 5px 0 0; background: linear-gradient(#7ee0af, rgba(126,224,175,.13)); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-stats div { display: flex; flex-direction: column; gap: 3px; }
.preview-stats b { font-size: 12px; }
.auth-trust { display: flex; gap: 23px; color: rgba(255,255,255,.64); font-size: 11px; }
.auth-trust b { color: #80e5b4; margin-right: 4px; }
.auth-form-side { display: grid; place-items: center; padding: 44px clamp(35px, 5vw, 76px); background: var(--surface); position: relative; }
.auth-theme-button { position: absolute; top: 26px; right: 28px; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 50%; cursor: pointer; }
.auth-card { width: min(410px, 100%); }
.mobile-auth-logo { display: none; align-items: center; gap: 10px; margin-bottom: 27px; font: 800 19px "Manrope", sans-serif; }
.auth-version { display: inline-flex; padding: 6px 9px; border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.auth-card h2 { margin: 15px 0 6px; font: 800 32px "Manrope", sans-serif; letter-spacing: -1px; }
.auth-subtitle { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.auth-card label, .modal-card label, .settings-form label { display: block; color: var(--text); font-size: 12px; font-weight: 700; margin: 16px 0 8px; }
.input-wrap { height: 49px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; transition: .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); background: var(--surface); }
.input-wrap > span { width: 17px; color: var(--muted-2); text-align: center; font-size: 12px; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.input-wrap input::placeholder { color: var(--muted-2); }
.password-label { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.password-label label { margin: 0; }
.text-button, .password-toggle { padding: 0; border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; }
.password-toggle { color: var(--muted); }
.check-row { display: flex !important; align-items: center; gap: 8px; color: var(--muted) !important; font-weight: 500 !important; cursor: pointer; margin-top: 14px !important; }
.check-row input { position: absolute; opacity: 0; }
.custom-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: transparent; font-size: 10px; }
.check-row input:checked + .custom-check { background: var(--accent); border-color: var(--accent); color: white; }
.form-error { min-height: 17px; margin: 5px 0 0; color: var(--negative); font-size: 11px; }
.primary-auth-button { width: 100%; height: 50px; margin-top: 5px; border: 0; border-radius: 11px; color: white; background: var(--accent); font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(var(--accent-rgb), .25); transition: .2s; }
.primary-auth-button:hover, .primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.primary-auth-button span { margin-left: 7px; }
.divider { height: 42px; display: flex; align-items: center; color: var(--muted-2); font-size: 10px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.divider span { padding: 0 12px; }
.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-button { height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--text); font-size: 12px; font-weight: 700; }
.social-button:hover { background: var(--surface-2); }
.social-button b { margin-right: 7px; }
.auth-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auth-switch button { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.terms { margin: 18px 0 0; color: var(--muted-2); text-align: center; font-size: 9px; }

/* App shell and sidebar */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; padding: 25px 17px 17px; color: rgba(255,255,255,.72); background: linear-gradient(170deg, var(--sidebar), var(--sidebar-deep)); overflow-y: auto; scrollbar-width: thin; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 22px; }
.sidebar-head .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
.sidebar-head .brand strong { font-size: 16px; }
.close-sidebar { display: none; border: 0; background: none; color: white; font-size: 25px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 18px 11px 7px; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.36); }
.nav-item { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border-radius: 9px; font-size: 12px; font-weight: 500; cursor: pointer; transition: .18s; }
.nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.active { color: white; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 0 #70d8a5; }
.nav-symbol { width: 19px; color: rgba(255,255,255,.58); text-align: center; font-size: 15px; }
.nav-item.active .nav-symbol { color: #7ce0ae; }
.nav-count { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 20px; background: rgba(255,255,255,.1); font-size: 8px; text-align: center; }
.nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #f1a44b; box-shadow: 0 0 0 4px rgba(241,164,75,.12); }
.nav-tag { margin-left: auto; padding: 3px 5px; color: #84e5b6; background: rgba(91,218,152,.13); border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.sidebar-bottom { padding-top: 14px; }
.version-card { width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.065); color: white; border-radius: 11px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.version-card:hover { background: rgba(255,255,255,.1); }
.version-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #9ce8c0; background: rgba(83,214,144,.13); }
.version-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; }
.version-card small { color: rgba(255,255,255,.45); font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.version-card strong { font-size: 11px; }
.version-arrow { margin-left: auto; color: rgba(255,255,255,.4); }
.settings-link { margin-top: 6px; }
.sidebar-profile { margin-top: 8px; padding: 13px 4px 3px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 34px minmax(0,1fr) 25px; align-items: center; gap: 9px; }
.sidebar-profile div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.sidebar-profile strong { color: white; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile small { margin-top: 2px; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #4bc589); color: white; display: grid; place-items: center; font-size: 9px; font-weight: 800; box-shadow: 0 5px 15px rgba(0,0,0,.12); }
.more-button { border: 0; background: none; color: rgba(255,255,255,.5); cursor: pointer; }

/* Topbar */
.app-main { min-width: 0; }
.topbar { height: 70px; position: sticky; top: 0; z-index: 20; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.top-search { width: min(420px, 44%); height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; }
.top-search > span { color: var(--muted-2); font-size: 18px; }
.top-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }
.top-search kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted-2); background: var(--surface); font: 8px "DM Sans"; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.notification-wrap { position: relative; }
.notification-button { position: relative; }
.notification-button > span { position: absolute; width: 6px; height: 6px; top: 8px; right: 8px; border-radius: 50%; background: #ef775e; border: 1px solid var(--surface); }
.top-profile { margin-left: 4px; padding: 0 0 0 9px; border: 0; border-left: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.top-profile-copy { display: flex; flex-direction: column; text-align: left; }
.top-profile-copy strong { font-size: 10px; }
.top-profile-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.top-profile > span:last-child { color: var(--muted-2); font-size: 10px; }
.notification-panel { width: 340px; position: absolute; top: 49px; right: -55px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 22px 55px rgba(8,37,25,.16); }
.panel-title { padding: 8px 8px 11px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-title strong { font-size: 13px; }.panel-title button { border: 0; background: none; color: var(--accent); font-size: 9px; cursor: pointer; }
.notification-item { margin-top: 4px; padding: 10px 8px; display: grid; grid-template-columns: 31px 1fr; gap: 9px; border-radius: 9px; }
.notification-item.unread { background: var(--accent-pale); }
.notification-item div { display: flex; flex-direction: column; }
.notification-item strong { font-size: 10px; }.notification-item p { margin: 3px 0; color: var(--muted); font-size: 9px; }.notification-item small { color: var(--muted-2); font-size: 8px; }
.notice-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; }

/* Page basics */
.page-area { padding: 27px clamp(20px, 2.6vw, 38px) 46px; max-width: 1640px; margin: 0 auto; }
.page { display: none; animation: pageIn .28s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { min-height: 78px; margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.page-heading h1 { margin: 7px 0 3px; font: 800 27px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; }
.page-heading h1 span { color: var(--accent); }
.page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button, .danger-button { min-height: 39px; padding: 0 15px; border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; transition: .18s; }
.primary-button { border: 1px solid var(--accent); color: white; background: var(--accent); box-shadow: 0 7px 17px rgba(var(--accent-rgb), .18); }
.secondary-button { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.secondary-button:hover { border-color: rgba(var(--accent-rgb), .35); color: var(--accent); }
.danger-button { border: 1px solid rgba(216,91,91,.25); color: var(--negative); background: rgba(216,91,91,.08); }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-head h2 { margin: 0; font: 700 14px "Manrope", sans-serif; letter-spacing: -.25px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.section-head select, .bills-list-card select { height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 9px; outline: 0; }
.section-head.compact h2 { font-size: 12px; }
.text-link { padding: 4px; border: 0; color: var(--accent); background: none; font-size: 9px; font-weight: 700; cursor: pointer; }
.tiny-icon { padding: 4px; border: 0; color: var(--muted-2); background: none; cursor: pointer; font-size: 10px; }
.positive { color: var(--positive) !important; }.negative { color: var(--negative) !important; }

/* Dashboard */
.summary-grid { display: grid; grid-template-columns: 1.55fr repeat(2, 1fr); grid-template-rows: repeat(2, 112px); gap: 13px; }
.balance-card { grid-row: 1 / 3; padding: 20px 22px 0; border-radius: var(--radius); color: white; background: linear-gradient(140deg, var(--accent-strong), var(--accent-deep)); position: relative; overflow: hidden; box-shadow: 0 18px 38px rgba(var(--accent-rgb), .24); }
.balance-card::after { content: ""; width: 220px; height: 220px; position: absolute; right: -90px; top: -100px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.card-head { display: flex; justify-content: space-between; color: rgba(255,255,255,.64); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.balance-card .tiny-icon { color: rgba(255,255,255,.64); }
.balance-value { margin: 8px 0 2px; font: 700 clamp(25px, 2vw, 33px) "Manrope", sans-serif; letter-spacing: -.9px; }
.balance-trend { color: rgba(255,255,255,.54); font-size: 8px; }
.balance-trend span { color: #93ebbf; font-weight: 700; margin-right: 4px; }
.balance-chart { width: 100%; height: 84px; position: absolute; bottom: 15px; left: 0; right: 0; }
.balance-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-fill { fill: url(#balanceFill); }.chart-line { fill: none; stroke: white; stroke-width: 2; vector-effect: non-scaling-stroke; }
.balance-foot { position: absolute; left: 19px; right: 19px; bottom: 7px; display: flex; justify-content: space-between; color: rgba(255,255,255,.34); font-size: 7px; }
.metric-card { padding: 17px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 11px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 16px; }
.income-icon, .success-bg { color: var(--accent); background: var(--accent-soft); }.expense-icon { color: #da6c62; background: #fff0ed; }.savings-icon { color: #587de1; background: #edf2ff; }.networth-icon { color: #9863cb; background: #f5edfc; }
html[data-mode="dark"] .expense-icon { background: rgba(218,108,98,.14); } html[data-mode="dark"] .savings-icon { background: rgba(88,125,225,.14); } html[data-mode="dark"] .networth-icon { background: rgba(152,99,203,.14); }
.metric-copy { min-width: 0; display: flex; flex-direction: column; }
.metric-copy > span { color: var(--muted); font-size: 9px; }.metric-copy strong { margin: 3px 0 4px; font: 700 18px "Manrope", sans-serif; letter-spacing: -.4px; }.metric-copy small { font-size: 8px; }.metric-copy em { color: var(--muted-2); font-style: normal; }
.dashboard-layout { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); gap: 14px; }
.dashboard-primary, .dashboard-side { display: flex; flex-direction: column; gap: 14px; }
.analytics-card, .transactions-card, .health-card, .budget-mini-card, .bills-mini-card { padding: 18px 20px; }
.chart-legend { height: 33px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: var(--muted); font-size: 8px; }
.chart-legend i, .allocation-list i, .category-report-list i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }.legend-income { background: var(--accent); }.legend-expense { background: #cbd6d0; }
.bar-chart { height: 195px; display: grid; grid-template-columns: 35px 1fr; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 7px; padding-bottom: 21px; }
.chart-bars { padding: 0 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 2vw, 25px); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--line) 25%); }
.bar-group { display: grid; grid-template-rows: 1fr 17px; gap: 5px; text-align: center; color: var(--muted); font-size: 7px; }
.bar-group > div { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: clamp(7px, 1.1vw, 12px); border-radius: 4px 4px 1px 1px; transition: .25s; }.bar:hover { filter: brightness(.9); }.income-bar { background: var(--accent); }.expense-bar { background: #d5ded9; }.bar-group.current small { color: var(--accent); font-weight: 700; }
.transactions-card .section-head { margin-bottom: 8px; }
.transaction-item { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.transaction-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 700; }
.transaction-info { min-width: 0; display: flex; flex-direction: column; }.transaction-info strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.transaction-info small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.transaction-amount { text-align: right; font-size: 10px; }.transaction-amount small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 7px; font-weight: 400; }
.food-bg { color: #df7d47; background: #fff1e7; }.shop-bg { color: #a66acb; background: #f7edfc; }.travel-bg { color: #537bd5; background: #eaf0ff; }.utilities-bg { color: #e09b34; background: #fff5df; }.fun-bg { color: #d65f75; background: #ffedf1; }.home-bg { color: var(--accent); background: var(--accent-soft); }.income-bg { color: var(--accent); background: var(--accent-soft); }
html[data-mode="dark"] .food-bg, html[data-mode="dark"] .shop-bg, html[data-mode="dark"] .travel-bg, html[data-mode="dark"] .utilities-bg, html[data-mode="dark"] .fun-bg { background: var(--surface-2); }
.health-score { padding: 18px 0 14px; display: flex; align-items: center; gap: 15px; }
.score-ring { width: 82px; height: 82px; padding: 8px; border-radius: 50%; background: conic-gradient(var(--accent) 0 86%, var(--accent-soft) 86%); }
.score-ring > div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--surface); }
.score-ring strong { font: 800 22px "Manrope"; }.score-ring small { display: block; color: var(--muted); font-size: 7px; }
.health-score > p { margin: 0; font-size: 11px; font-weight: 700; }.health-score > p small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 400; }
.health-items { display: flex; flex-direction: column; gap: 9px; }
.health-items span { display: flex; align-items: center; color: var(--muted); font-size: 8px; }.health-items i { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }.health-items b { margin-left: auto; color: var(--text); }.success-dot { background: var(--accent); }.blue-dot { background: var(--blue); }.orange-dot { background: var(--warning); }
.budget-mini-card .section-head, .bills-mini-card .section-head { margin-bottom: 14px; }
.budget-row { margin-top: 13px; }.budget-row > div:first-child { display: flex; justify-content: space-between; align-items: center; font-size: 8px; }.budget-row > div:first-child span { display: flex; align-items: center; }.budget-row > div:first-child b { font-weight: 600; color: var(--muted); }
.category-icon { width: 25px; height: 25px; margin-right: 7px; border-radius: 7px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; }
.progress-track { height: 5px; margin-top: 7px; background: var(--accent-soft); border-radius: 6px; overflow: hidden; }.progress-track span { height: 100%; display: block; border-radius: inherit; background: var(--accent); }.warning-progress span { background: var(--warning); }
.bill-mini { min-height: 48px; display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; border-top: 1px solid var(--line); }.bill-mini:first-of-type { border-top: 0; }.bill-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-weight: 800; font-size: 11px; }.netflix { color: white; background: #e34b50; }.internet { color: white; background: #637bd8; }.energy { color: #7a5b10; background: #ffd96a; }.rent { color: white; background: var(--accent); }
.bill-mini div { display: flex; flex-direction: column; }.bill-mini strong { font-size: 9px; }.bill-mini small { margin-top: 3px; color: var(--muted); font-size: 7px; }.bill-mini > b { font-size: 9px; }

/* Accounts */
.account-total { padding: 23px 27px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, var(--surface), var(--accent-pale)); }.account-total > div:first-child { display: flex; flex-direction: column; }.account-total span { color: var(--muted); font-size: 10px; }.account-total strong { margin: 7px 0 3px; font: 800 28px "Manrope"; }.account-total small { color: var(--muted-2); font-size: 8px; }
.account-donut { width: 68px; height: 68px; padding: 7px; border-radius: 50%; background: conic-gradient(var(--accent) 0 62%, var(--blue) 62% 83%, var(--warning) 83% 97%, #d9e1dd 97%); position: relative; }.account-donut::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }.account-donut b { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 10px; }
.account-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.account-card { min-height: 215px; padding: 22px; border-radius: 18px; color: white; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden; }.account-card::after { content:""; position:absolute; width:190px; height:190px; right:-90px; top:-80px; border:1px solid rgba(255,255,255,.12); border-radius:50%; }.account-card.checking { background: linear-gradient(140deg, var(--accent-strong), var(--accent-deep)); }.account-card.savings { background: linear-gradient(140deg, #416cca, #284381); }.account-card.investments { background: linear-gradient(140deg, #7654b3, #49306f); }.account-card.wallet { background: linear-gradient(140deg, #bd6a33, #73401f); }
.account-top { display: flex; justify-content: space-between; }.account-logo { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.15); font-weight: 800; }.account-menu { color: rgba(255,255,255,.6); }.account-card > div:nth-child(2) { display: flex; flex-direction: column; }.account-card small, .account-card span { color: rgba(255,255,255,.64); font-size: 9px; }.account-card strong { margin: 8px 0 4px; font: 700 24px "Manrope"; }.account-card .positive { color: #9af0c2 !important; }.account-foot { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; }.account-foot b { font-size: 8px; }

/* Transactions */
.transaction-tools { margin-bottom: 14px; padding: 12px; display: grid; grid-template-columns: minmax(200px,1fr) 145px 155px auto; gap: 9px; }.filter-search { height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }.filter-search span { color: var(--muted-2); }.filter-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }.transaction-tools select { padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 10px; }
.transaction-table-card { overflow: hidden; }.table-summary { padding: 18px 20px; display: flex; gap: 36px; border-bottom: 1px solid var(--line); }.table-summary div { display: flex; flex-direction: column; }.table-summary span { color: var(--muted); font-size: 8px; }.table-summary strong, .table-summary b { margin-top: 4px; font-size: 11px; }.summary-income b { color: var(--positive); }.summary-expense b { color: var(--negative); }
.transaction-table-wrap { overflow-x: auto; }.transaction-table { width: 100%; border-collapse: collapse; min-width: 720px; }.transaction-table th { padding: 12px 16px; color: var(--muted); background: var(--surface-2); text-align: left; text-transform: uppercase; letter-spacing: .6px; font-size: 7px; }.transaction-table td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 9px; }.transaction-name-cell { display: flex; align-items: center; gap: 9px; }.transaction-name-cell div { display: flex; flex-direction: column; }.transaction-name-cell small { margin-top: 2px; color: var(--muted); font-size: 7px; }.category-chip { padding: 5px 8px; border-radius: 6px; color: var(--muted); background: var(--surface-2); font-size: 8px; }.amount-cell { font-weight: 700; text-align: right; }.transaction-table th:nth-last-child(2) { text-align: right; }.delete-transaction { border: 0; background: none; color: var(--muted-2); cursor: pointer; }.empty-table { padding: 40px !important; color: var(--muted); text-align: center; }

/* Budgets */
.budget-summary-grid, .bill-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.budget-summary-grid article, .bill-summary-grid article { padding: 19px 21px; display: flex; flex-direction: column; }.budget-summary-grid span, .bill-summary-grid span { color: var(--muted); font-size: 9px; }.budget-summary-grid strong, .bill-summary-grid strong { margin: 7px 0 4px; font: 700 21px "Manrope"; }.budget-summary-grid small, .bill-summary-grid small { color: var(--muted-2); font-size: 8px; }
.budget-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.big-budget-card { padding: 20px; }.budget-card-head { display: flex; justify-content: space-between; }.budget-card-head .category-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }.budget-card-head button { border: 0; background: none; color: var(--muted-2); }.big-budget-card h3 { margin: 14px 0 12px; font: 700 13px "Manrope"; }.budget-numbers { display: flex; align-items: baseline; gap: 5px; }.budget-numbers strong { font-size: 17px; }.budget-numbers span { color: var(--muted); font-size: 9px; }.budget-numbers b { margin-left: auto; color: var(--accent); font-size: 9px; }.big-budget-card > small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }.warning-card .budget-numbers b, .warning-card > small { color: var(--warning); }

/* Goals */
.goals-hero { min-height: 175px; padding: 26px 31px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep)); overflow: hidden; position: relative; }.goals-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -90px; top: -130px; }.goals-hero > div:first-child { display: flex; flex-direction: column; }.goals-hero span { color: rgba(255,255,255,.65); font-size: 10px; }.goals-hero strong { margin: 7px 0; font: 800 30px "Manrope"; }.goals-hero strong small { color: rgba(255,255,255,.6); font-size: 14px; }.goals-hero p { margin: 0; color: #a9ecc8; font-size: 10px; }.goal-hero-ring { width: 100px; height: 100px; padding: 9px; margin-right: 40px; border-radius: 50%; background: conic-gradient(#83e4b2 0 70%, rgba(255,255,255,.13) 70%); position: relative; z-index: 1; }.goal-hero-ring::after { content:""; position:absolute; inset:9px; border-radius:50%; background:var(--accent-strong); }.goal-hero-ring span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; color: white; font: 800 20px "Manrope"; }
.goal-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.goal-card { padding: 21px; }.goal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 17px; font-weight: 700; }.emergency { color: var(--accent); background: var(--accent-soft); }.travel-goal { color: #5579d8; background: #edf2ff; }.home-goal { color: #a66acb; background: #f7edfc; }.goal-title { margin: 14px 0 11px; display: flex; justify-content: space-between; align-items: center; }.goal-title h3 { margin: 0; font: 700 13px "Manrope"; }.goal-title span { padding: 4px 7px; border-radius: 20px; color: var(--accent); background: var(--accent-soft); font-size: 7px; }.goal-card > strong { font-size: 18px; }.goal-card > strong small { color: var(--muted); font-size: 9px; }.goal-foot { margin-top: 9px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }

/* Investments */
.investment-hero { min-height: 200px; padding: 27px 30px 17px; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; overflow: hidden; }.investment-hero > div:first-child { display: flex; flex-direction: column; }.investment-hero span { color: var(--muted); font-size: 10px; }.investment-hero strong { margin: 8px 0 2px; font: 800 30px "Manrope"; }.investment-hero p { margin: 0; color: var(--muted); font-size: 9px; }.investment-hero p b { color: var(--positive); }.investment-line { height: 150px; }.investment-line svg { width: 100%; height: 100%; }.investment-line path { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.investment-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.allocation-card, .holdings-card { padding: 21px; }.allocation-body { min-height: 205px; display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 20px; }.allocation-donut { width: 125px; height: 125px; border-radius: 50%; background: conic-gradient(#17a673 0 55%, #6c7cf7 55% 80%, #f0a742 80% 95%, #ca73dd 95%); position: relative; }.allocation-donut::after { content:""; position:absolute; inset:25px; border-radius:50%; background:var(--surface); }.allocation-donut span { position:absolute; inset:0; z-index:1; display:grid; place-items:center; font-weight:700; }.allocation-list, .category-report-list { display: flex; flex-direction: column; gap: 13px; }.allocation-list span, .category-report-list span { color: var(--muted); font-size: 9px; }.allocation-list b, .category-report-list b { float: right; color: var(--text); }.holding { min-height: 61px; display: grid; grid-template-columns: 37px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); }.holding:first-of-type { margin-top: 10px; }.holding-logo { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: white; background: #17231e; font-weight: 800; }.holding div, .holding > b { display: flex; flex-direction: column; }.holding strong { font-size: 10px; }.holding small { margin-top: 3px; color: var(--muted); font-size: 8px; }.holding > b { text-align: right; font-size: 10px; }

/* Bills */
.bills-list-card { margin-top: 14px; padding: 21px; }.bills-list-card .section-head { margin-bottom: 8px; }.bill-row { min-height: 68px; display: grid; grid-template-columns: 42px 38px 1fr 78px 80px 24px; gap: 11px; align-items: center; border-top: 1px solid var(--line); }.bill-date { width: 38px; height: 43px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-content: center; text-align: center; }.bill-date strong { font-size: 13px; }.bill-date small { color: var(--muted); font-size: 6px; }.bill-row > div:nth-child(3) { display: flex; flex-direction: column; }.bill-row > div:nth-child(3) strong { font-size: 10px; }.bill-row > div:nth-child(3) small { margin-top: 3px; color: var(--muted); font-size: 8px; }.bill-row > b { text-align: right; font-size: 10px; }.bill-row > button { border: 0; background: none; color: var(--muted-2); }.bill-status { width: max-content; padding: 5px 7px; border-radius: 20px; font-size: 7px; font-weight: 700; }.bill-status.due { color: #c1741f; background: #fff2df; }.bill-status.scheduled { color: var(--accent); background: var(--accent-soft); }

/* Reports */
.report-tabs { margin-bottom: 14px; display: flex; gap: 5px; }.report-tabs button { padding: 8px 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }.report-tabs button.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }.report-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 14px; }.report-chart-card, .category-report { padding: 21px; }.line-chart-large { height: 265px; margin-top: 18px; padding: 0 0 20px 38px; position: relative; }.line-chart-large svg { width: 100%; height: 100%; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--line) 25%); }.report-area { fill: rgba(var(--accent-rgb), .1); }.report-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }.line-grid { position: absolute; left: 0; top: 0; bottom: 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 7px; }.line-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted-2); font-size: 7px; }.report-donut { width: 130px; height: 130px; margin: 25px auto 20px; padding: 22px; border-radius: 50%; background: conic-gradient(var(--accent) 0 31%, #9b65cd 31% 49%, #ef9a42 49% 69%, #6e83d8 69%); position: relative; }.report-donut::after { content:""; position:absolute; inset:25px; border-radius:50%; background:var(--surface); }.report-donut > span { position:absolute; inset:0; z-index:1; display:grid; place-content:center; text-align:center; }.report-donut strong { font-size: 14px; }.report-donut small { color: var(--muted); font-size: 7px; }.food-dot { background: #ef9a42; }.shop-dot { background: #9b65cd; }.home-dot { background: var(--accent); }.other-dot { background: #6e83d8; }
.insight-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.insight-card { padding: 18px; display: flex; gap: 13px; }.insight-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); }.insight-card div { display: flex; flex-direction: column; }.insight-card small { color: var(--muted); font-size: 8px; }.insight-card strong { margin: 3px 0; font-size: 14px; }.insight-card p { margin: 0; color: var(--muted); font-size: 8px; }

/* Assistant */
.assistant-shell { width: min(820px,100%); min-height: calc(100vh - 150px); margin: 0 auto; display: flex; flex-direction: column; }.assistant-intro { text-align: center; padding: 20px 0 18px; }.assistant-orb { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(140deg,var(--accent),var(--accent-deep)); box-shadow: 0 12px 30px rgba(var(--accent-rgb),.24); font-size: 21px; }.assistant-intro .eyebrow { margin-bottom: 7px; }.assistant-intro h1 { margin: 0 0 6px; font: 800 26px "Manrope"; }.assistant-intro p { margin: 0; color: var(--muted); font-size: 10px; }.prompt-chips { margin: 8px 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }.prompt-chips button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 8px; cursor: pointer; }.prompt-chips button:hover { border-color: var(--accent); color: var(--accent); }.assistant-chat { min-height: 260px; max-height: 420px; padding: 20px; overflow-y: auto; flex: 1; }.chat-message { margin-bottom: 14px; display: flex; gap: 10px; }.chat-message > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--accent); font-size: 11px; }.chat-message > div { max-width: 78%; padding: 10px 12px; border-radius: 5px 13px 13px 13px; background: var(--accent-pale); }.chat-message strong { display: block; margin-bottom: 4px; font-size: 9px; }.chat-message p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }.user-message { justify-content: flex-end; }.user-message > span { order: 2; background: var(--surface-2); color: var(--accent); }.user-message > div { order: 1; border-radius: 13px 5px 13px 13px; background: var(--accent); }.user-message p, .user-message strong { color: white; }.assistant-input { height: 50px; margin-top: 10px; padding: 0 7px 0 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); display: flex; align-items: center; box-shadow: var(--shadow); }.assistant-input input { flex:1; border:0; outline:0; background:transparent; font-size:10px; }.assistant-input button { width:36px; height:36px; border:0; border-radius:10px; color:white; background:var(--accent); cursor:pointer; }.assistant-note { margin-top: 7px; color: var(--muted-2); text-align: center; font-size: 7px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 15px; }.settings-nav { display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 94px; }.settings-nav button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 10px; cursor: pointer; }.settings-nav button.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }.settings-panel { display: none; padding: 24px; }.settings-panel.active { display: block; animation: pageIn .2s; }.settings-title { padding-bottom: 17px; border-bottom: 1px solid var(--line); }.settings-title h2 { margin: 0 0 4px; font: 700 15px "Manrope"; }.settings-title p { margin: 0; color: var(--muted); font-size: 9px; }.profile-editor { padding: 22px 0 5px; display: flex; gap: 13px; align-items: center; }.large-avatar { width: 55px; height: 55px; border-radius: 15px; font-size: 14px; }.profile-editor > div:last-child { display: flex; flex-direction: column; }.profile-editor strong { font-size: 12px; }.profile-editor small { margin: 2px 0 5px; color: var(--muted); font-size: 8px; }.profile-editor button { padding: 0; width: max-content; border: 0; background: none; color: var(--accent); font-size: 8px; cursor: pointer; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.settings-form input, .settings-form select, .modal-card input, .modal-card select { width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); outline: 0; font-size: 10px; }.settings-form input:focus, .settings-form select:focus, .modal-card input:focus, .modal-card select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.09); }.settings-form .primary-button { margin-top: 17px; }
.setting-block { padding: 21px 0; border-bottom: 1px solid var(--line); }.setting-block h3 { margin: 0 0 4px; font-size: 11px; }.setting-block > p { margin: 0 0 14px; color: var(--muted); font-size: 8px; }.theme-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.theme-option, .mode-option { padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; cursor: pointer; }.theme-option.active, .mode-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.1); }.theme-preview { height: 57px; padding: 7px; border-radius: 7px; display: flex; align-items: flex-end; gap: 4px; background: #f3f6f4; position: relative; overflow: hidden; }.theme-preview::before { content:""; width:21px; align-self:stretch; border-radius:5px; background:var(--preview-dark); }.theme-preview i { flex:1; border-radius:3px 3px 0 0; background:var(--preview); }.theme-preview i:nth-child(1) { height:35%; }.theme-preview i:nth-child(2) { height:67%; }.theme-preview i:nth-child(3) { height:50%; }.green-preview { --preview:#12815a;--preview-dark:#073e2d; }.blue-preview { --preview:#3978d5;--preview-dark:#173d70; }.purple-preview { --preview:#8060cf;--preview-dark:#392862; }.orange-preview { --preview:#d97632;--preview-dark:#663215; }.theme-option b, .theme-option small, .mode-option b { display:block; margin:6px 2px 0; font-size:8px; }.theme-option small { margin-top:2px; color:var(--muted); font-size:7px; }
.mode-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; max-width:480px; }.mode-preview { height:70px; display:block; border-radius:7px; border:1px solid #dfe7e2; background:linear-gradient(90deg,#173d2e 0 24%,#f3f6f4 24%); }.dark-mode-preview { border-color:#34423b; background:linear-gradient(90deg,#0a281d 0 24%,#18211d 24%); }.system-mode-preview { background:linear-gradient(135deg,#f3f6f4 0 50%,#18211d 50%); }.settings-panel > .secondary-button { margin-top:17px; }
.preference-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }.preference-row > div { display:flex; flex-direction:column; }.preference-row strong { font-size:10px; }.preference-row small { margin-top:4px; color:var(--muted); font-size:8px; }.preference-row select { min-width:190px; height:36px; padding:0 9px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); font-size:9px; }.switch { position:relative; width:39px; height:21px; flex:0 0 auto; }.switch input { position:absolute; opacity:0; }.switch i { position:absolute; inset:0; border-radius:20px; background:#cbd5d0; transition:.2s; cursor:pointer; }.switch i::after { content:""; width:15px; height:15px; position:absolute; top:3px; left:3px; border-radius:50%; background:white; box-shadow:0 2px 5px rgba(0,0,0,.18); transition:.2s; }.switch input:checked + i { background:var(--accent); }.switch input:checked + i::after { transform:translateX(18px); }.danger-zone { margin-top:22px; padding:16px; border:1px solid rgba(216,91,91,.2); border-radius:11px; background:rgba(216,91,91,.05); display:flex; align-items:center; justify-content:space-between; }.danger-zone > div { display:flex; flex-direction:column; }.danger-zone strong { font-size:10px; }.danger-zone small { margin-top:3px; color:var(--muted); font-size:8px; }

/* Modal and toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; display: grid; place-items: center; background: rgba(3,20,14,.56); backdrop-filter: blur(5px); }.modal-card { width: min(530px,100%); padding: 23px; border-radius:20px; background:var(--surface); box-shadow:0 30px 80px rgba(0,0,0,.25); }.modal-head { display:flex; align-items:flex-start; justify-content:space-between; }.modal-head h2 { margin:6px 0 0; font:800 20px "Manrope"; }.modal-close { width:34px; height:34px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); color:var(--muted); font-size:20px; cursor:pointer; }.transaction-type-toggle { margin-top:19px; display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:4px; border-radius:10px; background:var(--surface-2); }.transaction-type-toggle label { margin:0; cursor:pointer; }.transaction-type-toggle input { position:absolute; opacity:0; }.transaction-type-toggle span { height:34px; display:grid; place-items:center; border-radius:8px; color:var(--muted); }.transaction-type-toggle input:checked + span { color:var(--accent); background:var(--surface); box-shadow:0 3px 10px rgba(0,0,0,.07); }.modal-actions { margin-top:21px; display:flex; justify-content:flex-end; gap:8px; }
.toast-stack { position:fixed; top:19px; right:19px; z-index:200; display:flex; flex-direction:column; gap:8px; }.toast { min-width:250px; max-width:340px; padding:12px 15px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:0 15px 40px rgba(0,0,0,.15); display:flex; align-items:center; gap:9px; font-size:10px; animation:toastIn .24s ease; }.toast::before { content:"✓"; width:24px; height:24px; display:grid; place-items:center; border-radius:7px; color:white; background:var(--accent); font-weight:800; }.toast.error::before { content:"!"; background:var(--negative); }@keyframes toastIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.mobile-overlay { display:none; }

/* Zero-balance starting state */
.score-ring,
.account-donut,
.goal-hero-ring,
.allocation-donut,
.report-donut {
  background: var(--accent-soft);
}

.goal-hero-ring {
  background: rgba(255,255,255,.13);
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state > span {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 18px;
}

.empty-state strong { color: var(--text); font-size: 11px; }
.empty-state small { margin-top: 5px; font-size: 8px; }

/* Responsive */
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 218px minmax(0,1fr); }
  .summary-grid { grid-template-columns: 1.35fr 1fr 1fr; }
  .dashboard-layout { grid-template-columns: minmax(0,1.55fr) minmax(245px,.75fr); }
  .page-area { padding-left: 22px; padding-right: 22px; }
  .budget-grid { grid-template-columns: repeat(2,1fr); }
  .theme-options { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: .9fr 1fr; }.auth-showcase { padding:38px; }.showcase-preview { transform:none; }.showcase-copy h1 { font-size:41px; }
  .app-shell { display:block; }.sidebar { width:246px; position:fixed; left:-270px; transition:left .25s ease; box-shadow:20px 0 50px rgba(0,0,0,.18); }.sidebar.open { left:0; }.close-sidebar, .menu-button { display:block; }.mobile-overlay { position:fixed; inset:0; z-index:29; background:rgba(0,0,0,.38); }.mobile-overlay.active { display:block; }
  .dashboard-layout { grid-template-columns:1fr; }.dashboard-side { display:grid; grid-template-columns:repeat(3,1fr); }.health-card, .budget-mini-card, .bills-mini-card { min-width:0; }
  .report-grid { grid-template-columns:1fr; }.category-report { display:grid; grid-template-columns:1fr 150px 1fr; align-items:center; }.category-report .section-head { grid-column:1/-1; }.category-report .report-donut { margin:20px auto 5px; }
}

@media (max-width: 760px) {
  .auth-screen { padding:0; }.auth-shell { min-height:100vh; grid-template-columns:1fr; border-radius:0; }.auth-showcase { display:none; }.auth-form-side { padding:40px 24px; }.mobile-auth-logo { display:flex; }.auth-theme-button { top:22px; right:22px; }
  .topbar { height:64px; padding:0 14px; gap:9px; }.top-search { width:auto; flex:1; }.top-search kbd, .quickThemeButton { display:none; }.top-profile-copy, .top-profile > span:last-child { display:none; }.top-profile { padding-left:7px; }
  .page-area { padding:20px 14px 36px; }.page-heading { align-items:flex-start; flex-direction:column; }.page-heading h1 { font-size:24px; }.heading-actions { width:100%; }.heading-actions button { flex:1; }
  .summary-grid { grid-template-columns:1fr 1fr; grid-template-rows:205px 112px 112px; }.balance-card { grid-column:1/-1; grid-row:auto; }.metric-card { grid-template-columns:34px 1fr; padding:14px; }.metric-icon { width:34px;height:34px;}.metric-card > .tiny-icon { display:none; }.metric-copy strong { font-size:15px; }
  .dashboard-side { grid-template-columns:1fr; }
  .account-grid, .investment-grid { grid-template-columns:1fr; }.account-total { padding:20px; }.account-total strong { font-size:24px; }
  .transaction-tools { grid-template-columns:1fr 1fr; }.filter-search { grid-column:1/-1; }.transaction-tools .secondary-button { grid-column:1/-1; }
  .budget-summary-grid, .bill-summary-grid, .insight-grid { grid-template-columns:1fr; }.budget-grid, .goal-grid { grid-template-columns:1fr; }
  .goals-hero { padding:23px; }.goal-hero-ring { width:82px;height:82px;margin-right:0; }.goals-hero strong { font-size:24px; }
  .investment-hero { grid-template-columns:1fr; }.investment-line { height:100px; }.allocation-body { grid-template-columns:130px 1fr; }
  .bill-row { grid-template-columns:38px 34px 1fr auto; padding:9px 0; }.bill-row .bill-status, .bill-row > button { display:none; }
  .category-report { display:block; }.category-report .report-donut { margin:22px auto; }
  .settings-layout { grid-template-columns:1fr; }.settings-nav { position:static; overflow-x:auto; flex-direction:row; padding-bottom:5px; }.settings-nav button { min-width:max-content; }.theme-options { grid-template-columns:repeat(2,1fr); }.mode-options { grid-template-columns:repeat(3,1fr); }.settings-panel { padding:19px; }
}

@media (max-width: 520px) {
  .top-search { display:none; }.topbar { justify-content:space-between; }.top-actions { margin-left:auto; }.notification-panel { width:min(330px,calc(100vw - 24px)); right:-87px; }
  .dashboard-heading .heading-actions { flex-direction:column; }.summary-grid { display:flex; flex-direction:column; }.balance-card { min-height:205px; }.metric-card { min-height:92px; }
  .analytics-card, .transactions-card, .health-card, .budget-mini-card, .bills-mini-card { padding:16px; }.bar-chart { height:170px; }.chart-bars { gap:8px;padding:0;}.bar{width:7px;}
  .page-heading > .primary-button, .page-heading > .secondary-button { width:100%; }.account-donut { display:none; }.account-card { min-height:190px; }
  .transaction-tools { grid-template-columns:1fr; }.filter-search, .transaction-tools .secondary-button { grid-column:auto; }.table-summary { gap:18px;overflow-x:auto;}.table-summary div{min-width:max-content;}
  .goals-hero { align-items:flex-start; }.goal-hero-ring { width:70px;height:70px;flex:0 0 auto; }.goal-hero-ring span{font-size:15px;}.goals-hero strong{font-size:20px;}.goals-hero strong small{font-size:10px;}
  .allocation-body { grid-template-columns:1fr; }.allocation-donut { margin:20px auto 0; }.investment-hero strong { font-size:24px; }
  .bill-row { grid-template-columns:35px 31px 1fr; }.bill-row > b { grid-column:3;text-align:left;margin-top:-12px;}.bill-date{width:34px;}.bill-logo{width:31px;height:31px;}
  .line-chart-large { padding-left:30px; }.insight-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }.theme-options { grid-template-columns:1fr 1fr; }.theme-preview { height:48px; }.mode-options { grid-template-columns:1fr; }.mode-preview { height:55px; }.preference-row { align-items:flex-start; padding:14px 0; }.preference-row select { min-width:145px;max-width:48%;}.danger-zone{align-items:flex-start;gap:13px;}
  .modal-card { padding:18px;max-height:94vh;overflow-y:auto;}.social-buttons{grid-template-columns:1fr 1fr;}
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
