/* A visual material layer: existing layout, navigation and financial logic stay in app.css / JS.
   Reference: https://developer.apple.com/design/human-interface-guidelines/materials */
:root {
  --ink:#242333;
  --muted:#736e80;
  --primary:#7351cc;
  --focus:#6741bd;
  --line:#dedce880;
  --radius:24px;
  --glass-surface:rgba(255,255,255,.78);
  --glass-control:rgba(255,255,255,.72);
  --glass-border:rgba(255,255,255,.92);
  --glass-shadow:0 8px 28px #30264a09,0 1px 2px #30264a06,inset 0 1px 0 #ffffffef;
}
body {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  background:radial-gradient(ellipse at 8% 0%,#ebe7f56b,transparent 52%),radial-gradient(ellipse at 95% 32%,#edf2f88c,transparent 50%),#f6f6fb;
}
h1,h2,.greeting h2,.total-balance,.bank-card strong { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif }
.panel,.finance-card,.stat,.question-card {
  background:var(--glass-surface);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow);
  border-radius:var(--radius);
}
.login-card { background:rgba(255,255,255,.84); border:1px solid #fff; border-radius:28px; box-shadow:0 16px 48px #382c5112,inset 0 1px 0 #fff }
.login-card button { background:linear-gradient(160deg,#8865df,#7450cc); border:1px solid #ffffff40; box-shadow:0 5px 14px #7653c720,inset 0 1px 0 #ffffff40; font-weight:650 }
.sidebar {
  background:rgba(249,248,253,.8);
  border-right:1px solid #ffffffc9;
  box-shadow:1px 0 18px #3e305005;
}
.nav-item { border-radius:15px; color:#746c82 }
.nav-item.active { background:linear-gradient(120deg,#f2edff,#eae3f79e); box-shadow:inset 0 1px 0 #fff; color:#6744b6 }
.btn,.icon-button,.profile-button,.bottom-item,.bank-card,.transaction,.finance-card,.question-card {
  transition:background .2s ease,box-shadow .2s ease,transform .18s cubic-bezier(.2,.7,.2,1),border-color .2s ease;
}
.btn { border-radius:15px; font-weight:600 }
.btn.primary,.fab {
  background:linear-gradient(160deg,#8865df,#7450cc 72%);
  color:#fff;
  border:1px solid #ffffff38;
  box-shadow:0 5px 14px #7653c727,inset 0 1px 0 #ffffff40;
}
.btn.secondary,.btn.subtle,.icon-button {
  background:var(--glass-control);
  border:1px solid var(--glass-border);
  box-shadow:0 2px 6px #41305206,inset 0 1px 0 #fff;
  color:#66527f;
}
.btn.text { background:transparent; box-shadow:none; border-color:transparent }
.btn.icon-button { border-radius:50% }
.profile-button { border-radius:50%; box-shadow:0 2px 8px #48395614,inset 0 1px 0 #fff }
.bank-card { border-radius:24px; box-shadow:0 7px 18px #30234a10,inset 0 1px 0 #ffffff40 }
.bank-card .bank-tag { border-radius:99px }
.transaction { border-radius:13px }
.transaction:hover { background:#eeeaf733 }
.field input:not([type=checkbox]):not([type=file]),.field select,.field textarea,.search-field {
  background:#ffffffc9;
  border-color:#dedbe9;
  border-radius:14px;
  box-shadow:inset 0 1px 2px #392a4d04;
}
.segmented,.currency-toggle { background:#eae7f16b; border:1px solid #ffffffc9; border-radius:99px; padding:4px }
.segmented button,.currency-toggle button { border-radius:99px }
.segmented .selected,.currency-toggle .selected { background:#fff; color:#6744b6; box-shadow:0 2px 7px #3d275114,inset 0 1px 0 #fff }
.toggle-row input[type=checkbox] {
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 48px;
  width:48px;
  height:29px;
  border:1px solid #c9c5d3;
  border-radius:99px;
  background:#dcd9e4;
  position:relative;
  cursor:pointer;
  margin:4px 0;
}
.toggle-row input[type=checkbox]::before {
  content:"";
  position:absolute;
  width:23px;
  height:23px;
  border-radius:50%;
  left:2px;
  top:2px;
  background:#fff;
  box-shadow:0 1px 4px #0002;
  transition:transform .2s ease;
}
.toggle-row input[type=checkbox]:checked { background:#7956cd; border-color:#7956cd }
.toggle-row input[type=checkbox]:checked::before { transform:translateX(19px) }
.toggle-row input[type=checkbox]:disabled { opacity:.45; cursor:default }
.modalback { background:#2620352b; -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px) }
.modal { background:rgba(251,250,254,.96); border:1px solid #ffffffd9; box-shadow:0 24px 75px #30203c29,inset 0 1px 0 #fff; border-radius:30px; animation:glass-sheet-in .22s cubic-bezier(.2,.8,.2,1) }
.modal-head h2 { letter-spacing:-.45px }
.toast { background:#30273eee; border:1px solid #ffffff20; box-shadow:0 8px 25px #30263e24; border-radius:20px }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .sidebar,.bottomnav,.chat-compose { -webkit-backdrop-filter:blur(22px) saturate(135%); backdrop-filter:blur(22px) saturate(135%) }
  .panel,.finance-card,.stat { -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px) }
}
@media(max-width:950px) {
  .bottomnav {
    background:linear-gradient(170deg,#fffffff0,#faf9fde0 65%,#f0ecf6e0);
    border:1px solid #ffffff;
    outline:1px solid #dcd7e773;
    border-radius:34px;
    box-shadow:0 9px 32px #30223e1a,0 2px 5px #30223e07,inset 0 1px 1px #fff,inset 0 -1px 0 #ffffffcc;
    padding:5px;
  }
  .bottom-item { border-radius:28px; color:#777080; font-weight:550 }
  .bottom-item.active { color:#6744b6; background:linear-gradient(145deg,#eae3f5d9,#f1ecfae8); box-shadow:inset 0 1px 0 #ffffffbd,0 1px 3px #51327408 }
  .fab { border-radius:50%; box-shadow:0 7px 20px #7455d735,inset 0 1px 0 #ffffff55 }
  .chat-compose { background:#f7f6fbe6; border-color:#ffffffd9 }
  .field input:not([type=checkbox]),.field select,.field textarea { font-size:16px }
}
@media(hover:hover) {
  .btn.primary:hover { box-shadow:0 7px 18px #7653c73d,inset 0 1px 0 #ffffff50 }
  .bank-card:hover,.finance-card:hover { transform:translateY(-2px) }
}
.btn:active,.icon-button:active,.bottom-item:active,.fab:active { transform:scale(.97) }
.bank-card:active { transform:scale(.985) }
@keyframes glass-sheet-in { from { opacity:0; scale:.995 } to { opacity:1; scale:1 } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  :root { --glass-surface:#fff; --glass-control:#fff; --glass-border:#dedbe6; --line:#d4cfdc }
  .sidebar,.bottomnav,.chat-compose,.modal { background:#faf9fd; -webkit-backdrop-filter:none; backdrop-filter:none }
  .panel,.finance-card,.stat,.modalback { -webkit-backdrop-filter:none; backdrop-filter:none }
  .bottomnav { border-color:#b5adbe; outline:none }
  .muted,.footnote { color:#61596e }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .bottomnav,.sidebar,.modal,.chat-compose { background:#faf9fd }
  .panel,.finance-card,.stat { background:#fff }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
  .bank-card:hover,.finance-card:hover,.btn:active,.icon-button:active,.bottom-item:active,.fab:active,.bank-card:active { transform:none }
}
