/* =========================================================
   Budget — redesigned hi-fi finance app screens (dark fintech)
   Rendered live inside the Budget case study.
   ========================================================= */

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

/* ---------- stage ---------- */
.bzstage { display: flex; gap: 32px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }

/* ---------- phone shell ---------- */
.bz-ph {
  --bg:      #0d0f15;
  --bg2:     #11141c;
  --card:    #181c26;
  --card2:   #1f2430;
  --line:    rgba(255,255,255,0.07);
  --line2:   rgba(255,255,255,0.12);
  --tx:      #eef1f6;
  --soft:    #9298a6;
  --faint:   #5e6470;
  --acc:     #6172ff;
  --acc2:    #8b5cf6;
  --green:   #2fd27e;
  --red:     #ff5e6c;
  --amber:   #ffb020;
  --pink:    #ff67a8;
  --teal:    #2fd9d2;

  position: relative; flex: none;
  width: 290px; height: 612px;
  background: #05060a; border-radius: 50px; padding: 11px;
  box-shadow: 0 2px 4px rgba(0,0,0,.6) inset, 0 38px 70px -34px rgba(60,70,180,.5), 0 10px 26px -16px rgba(0,0,0,.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.bz-ph__island { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #05060a; border-radius: 100px; z-index: 20; }
.bz-scr { position: absolute; inset: 11px; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); color: var(--tx); }

.bz-num { font-family: 'Sora', sans-serif; font-feature-settings: "tnum"; }

/* status bar */
.bz-sb { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 6px; font-size: 12px; font-weight: 700; color: var(--tx); flex: none; }
.bz-sb .ico { display: flex; gap: 5px; align-items: center; }
.bz-sb svg { width: 15px; height: 12px; }

/* top bar (titled screens) */
.bz-top { display: flex; align-items: center; gap: 12px; padding: 6px 18px 8px; flex: none; }
.bz-top .bk { width: 34px; height: 34px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--tx); font-size: 16px; flex: none; }
.bz-top h3 { font-size: 16px; font-weight: 700; flex: 1; text-align: center; letter-spacing: -.01em; }
.bz-top .sv { font-size: 13px; font-weight: 700; color: var(--acc); }
.bz-top .sv.muted { color: var(--soft); }

/* scroll body */
.bz-body { flex: 1; overflow: hidden; padding: 4px 16px 86px; }

/* section label */
.bz-sl { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 11px; }
.bz-sl h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.bz-sl a { font-size: 11px; font-weight: 700; color: var(--acc); }

/* ---------- bottom nav ---------- */
.bz-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: rgba(13,15,21,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 26px 0; z-index: 12; }
.bz-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 46px; background: linear-gradient(to top, var(--bg) 35%, transparent); pointer-events: none; }
.bz-nav .n { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--faint); font-size: 9px; font-weight: 600; }
.bz-nav .n svg { width: 21px; height: 21px; }
.bz-nav .n.on { color: var(--acc); }
.bz-fab { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(140deg, var(--acc), var(--acc2)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 25px; z-index: 14; box-shadow: 0 12px 26px -8px var(--acc), 0 4px 10px rgba(0,0,0,.4); border: 4px solid var(--bg); }

/* ---------- balance / hero cards ---------- */
.bz-bal { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; margin: 8px 2px 0; background: linear-gradient(135deg, #5b62ff 0%, #6f54e6 55%, #8b5cf6 100%); color: #fff; box-shadow: 0 18px 30px -18px rgba(97,114,255,.8); }
.bz-bal::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bz-bal .lab { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.bz-bal .amt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; margin: 4px 0 2px; letter-spacing: -.01em; }
.bz-bal .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 100px; }
.bz-bal .pair { display: flex; gap: 10px; margin-top: 14px; position: relative; }
.bz-bal .pair > div { flex: 1; background: rgba(255,255,255,.13); border-radius: 13px; padding: 9px 11px; }
.bz-bal .pair .t { font-size: 9px; font-weight: 600; opacity: .85; display: flex; align-items: center; gap: 4px; }
.bz-bal .pair .v { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; margin-top: 2px; }

/* action row */
.bz-acts { display: flex; justify-content: space-between; margin: 16px 4px 0; }
.bz-act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; color: var(--soft); }
.bz-act .ic { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }

/* budget mini cards */
.bz-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-mc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.bz-mc .h { display: flex; align-items: center; justify-content: space-between; }
.bz-mc .nm { font-size: 11px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.bz-mc .pct { font-size: 11px; font-weight: 700; }
.bz-mc .v { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; margin: 7px 0 8px; }
.bz-mc .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.bz-mc .bar i { display: block; height: 100%; border-radius: 6px; }
.bz-mc .sub { font-size: 9px; color: var(--faint); margin-top: 7px; }

/* transactions */
.bz-tx { display: flex; align-items: center; gap: 11px; padding: 9px 2px; }
.bz-tx .av { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.bz-tx .nm { font-size: 12.5px; font-weight: 600; }
.bz-tx .mt { font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.bz-tx .amt { margin-left: auto; font-family: 'Sora',sans-serif; font-weight: 600; font-size: 12.5px; }
.bz-tx .amt.neg { color: var(--red); } .bz-tx .amt.pos { color: var(--green); }
.bz-tx + .bz-tx { border-top: 1px solid var(--line); }

/* ---------- spendings ---------- */
.bz-seg { display: flex; gap: 8px; margin: 10px 2px 0; }
.bz-seg .b { flex: 1; text-align: center; border-radius: 13px; padding: 11px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.bz-seg .b.inc { background: rgba(47,210,126,.12); color: var(--green); border-color: rgba(47,210,126,.3); }
.bz-seg .b.exp { background: rgba(255,94,108,.12); color: var(--red); border-color: rgba(255,94,108,.3); }
.bz-month { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px 16px; margin: 12px 2px 0; font-family: 'Sora',sans-serif; font-weight: 600; font-size: 13px; }
.bz-month span.ar { color: var(--soft); font-size: 16px; }
.bz-tabs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 10px 2px 0; }
.bz-tabs .t { flex: 1; text-align: center; padding: 8px; font-size: 11.5px; font-weight: 700; border-radius: 9px; color: var(--soft); }
.bz-tabs .t.on { background: var(--acc); color: #fff; }

.bz-chartcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 15px; margin: 14px 2px 0; }
.bz-chartcard .top { display: flex; align-items: center; justify-content: space-between; }
.bz-chartcard .ti { font-size: 12px; font-weight: 700; }
.bz-chartcard .to { font-size: 10px; color: var(--soft); }
.bz-prog { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin: 12px 0 4px; overflow: hidden; }
.bz-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 6px; }
.bz-progtx { font-size: 9.5px; color: var(--faint); }
.bz-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 92px; margin-top: 14px; }
.bz-bars .d { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bz-bars .d .bar { width: 100%; max-width: 18px; border-radius: 6px 6px 3px 3px; background: rgba(255,255,255,.1); }
.bz-bars .d.on .bar { background: linear-gradient(180deg, var(--acc), var(--acc2)); }
.bz-bars .d .l { font-size: 8.5px; font-weight: 600; color: var(--faint); }
.bz-bars .d.on .l { color: var(--acc); }

.bz-break { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.bz-break + .bz-break { border-top: 1px solid var(--line); }
.bz-break .dot { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.bz-break .nm { font-size: 12px; font-weight: 600; }
.bz-break .ln { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 5px; overflow: hidden; width: 110px; }
.bz-break .ln i { display: block; height: 100%; border-radius: 4px; }
.bz-break .amt { margin-left: auto; font-family: 'Sora',sans-serif; font-weight: 600; font-size: 12.5px; }

.bz-alert { display: flex; align-items: center; gap: 9px; background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.28); border-radius: 13px; padding: 11px 13px; margin: 14px 2px 0; font-size: 10.5px; color: #ffd27a; font-weight: 600; }
.bz-alert .i { font-size: 14px; }

/* ---------- categories list ---------- */
.bz-cat { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 12px 14px; margin-bottom: 10px; }
.bz-cat .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex: none; }
.bz-cat .nm { font-size: 13px; font-weight: 600; }
.bz-cat .mt { font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.bz-cat .ar { margin-left: auto; color: var(--faint); font-size: 16px; }

/* ---------- forms ---------- */
.bz-form-h { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 8px 2px 0; }
.bz-fld { margin-top: 14px; }
.bz-fld .lb { font-size: 11px; font-weight: 600; color: var(--soft); margin: 0 2px 6px; display: flex; justify-content: space-between; }
.bz-fld .lb .ct { color: var(--faint); }
.bz-input { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.bz-input.ph { color: var(--faint); }
.bz-input .ar { margin-left: auto; color: var(--faint); }
.bz-input.focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(97,114,255,.18); }
.bz-input .ci { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.bz-swatches { display: flex; gap: 9px; margin-top: 12px; padding: 0 2px; }
.bz-swatches i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.bz-swatches i.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.bz-hint { font-size: 10px; color: var(--faint); margin: 9px 2px 0; }
.bz-usage { display: flex; align-items: center; gap: 10px; background: rgba(97,114,255,.1); border: 1px solid rgba(97,114,255,.25); border-radius: 14px; padding: 12px; margin-top: 16px; }
.bz-usage .i { width: 28px; height: 28px; border-radius: 9px; background: rgba(97,114,255,.25); display: flex; align-items: center; justify-content: center; color: #9aa6ff; font-size: 13px; flex: none; }
.bz-usage .tx { font-size: 10px; color: var(--soft); line-height: 1.4; }
.bz-usage .tx b { color: var(--tx); }
.bz-usage .bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.bz-usage .bar i { display: block; height: 100%; background: var(--acc); border-radius: 5px; }
.bz-del { width: 100%; text-align: center; background: rgba(255,94,108,.1); border: 1px solid rgba(255,94,108,.3); color: var(--red); font-weight: 700; font-size: 13px; padding: 13px; border-radius: 14px; margin-top: 18px; }

/* primary button */
.bz-btn { width: 100%; text-align: center; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-weight: 700; font-size: 14px; padding: 14px; border-radius: 16px; box-shadow: 0 12px 24px -10px var(--acc); }
.bz-btn.green { background: linear-gradient(135deg, #25c46e, #14a85a); box-shadow: 0 12px 24px -10px #25c46e; }

/* ---------- goals ---------- */
.bz-gsum { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px; margin: 8px 2px 0; }
.bz-gsum > div { flex: 1; text-align: center; position: relative; }
.bz-gsum > div + div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.bz-gsum .v { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 13px; white-space: nowrap; }
.bz-gsum .l { font-size: 8.5px; color: var(--faint); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

.bz-fseg { display: flex; gap: 7px; margin: 14px 2px 0; }
.bz-fseg .f { font-size: 9.5px; font-weight: 700; padding: 7px 10px; border-radius: 100px; background: var(--card); border: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.bz-fseg .f.on { background: var(--acc); color: #fff; border-color: var(--acc); }

.bz-goal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.bz-goal__head { display: flex; align-items: center; gap: 11px; }
.bz-goal .bz-ring { width: 40px; height: 40px; }
.bz-goal__id { flex: 1; min-width: 0; }
.bz-goal .nm { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-goal .sub { font-size: 9.5px; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-goal .st { font-size: 8px; font-weight: 700; padding: 3px 8px; border-radius: 100px; flex: none; white-space: nowrap; align-self: center; }
.bz-goal .st.ok { background: rgba(47,210,126,.15); color: var(--green); }
.bz-goal .st.warn { background: rgba(255,176,32,.15); color: var(--amber); }
.bz-goal .ln { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin-top: 13px; overflow: hidden; }
.bz-goal .ln i { display: block; height: 100%; border-radius: 6px; }
.bz-goal__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 9px; }
.bz-goal .amt { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10.5px; font-weight: 500; color: var(--soft); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bz-goal .amt b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 11.5px; }
.bz-goal .lf { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 10px; color: var(--faint); white-space: nowrap; flex: none; }

/* ring */
.bz-ring { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.bz-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.bz-ring span { position: relative; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 10px; }

/* ---------- savings ---------- */
.bz-save-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; margin: 8px 2px 0; background: linear-gradient(135deg, #5b62ff, #8b5cf6); color: #fff; }
.bz-save-hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bz-save-hero .lab { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.bz-save-hero .amt { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 27px; margin: 3px 0; }
.bz-save-hero .chip { display: inline-flex; gap: 4px; align-items: center; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 100px; }
.bz-save-hero .sub { font-size: 10px; opacity: .85; margin-top: 8px; position: relative; }

.bz-donut-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; }
.bz-donut { position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.bz-donut::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.bz-donut span { position: relative; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 14px; }
.bz-donut-card .ti { font-size: 12.5px; font-weight: 700; }
.bz-donut-card .su { font-size: 10px; color: var(--soft); margin-top: 2px; }
.bz-legend { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.bz-legend div { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--soft); }
.bz-legend i { width: 7px; height: 7px; border-radius: 50%; }

.bz-auto { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 9px; }
.bz-auto .ic { width: 34px; height: 34px; border-radius: 11px; background: rgba(47,210,126,.14); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.bz-auto .v { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 12.5px; color: var(--green); }
.bz-auto .nm { font-size: 11px; font-weight: 600; margin-top: 1px; }
.bz-auto .mt { font-size: 9px; color: var(--faint); margin-top: 1px; }

.bz-fund { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-bottom: 9px; }
.bz-fund .ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.bz-fund .nm { font-size: 12px; font-weight: 600; }
.bz-fund .ln { height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); margin-top: 6px; overflow: hidden; }
.bz-fund .ln i { display: block; height: 100%; border-radius: 5px; }
.bz-fund .pct { margin-left: auto; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 12px; flex: none; }
