/* D-Finance · partners' app (phone first, works on computer too) */
.fa { min-height: 100vh; padding-bottom: 96px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-left)); background: linear-gradient(90deg, var(--navy), var(--navy2)); color: #fff; box-shadow: 0 6px 20px -12px rgba(10, 22, 48, 0.8); }
.top .logo { height: 48px; width: auto; }
.top .seg { background: rgba(255, 255, 255, 0.1); }
.top .seg button { color: #c9d4ee; padding: 6px 12px; }
.top .seg button.on { background: var(--gold); color: var(--ink); }
.top .fy { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 600; font-size: 13px; }
.top .fy option { color: var(--ink); }
.top .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.av { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--ink); font-weight: 800; font-size: 14px; flex: none; }
.av.s { width: 32px; height: 32px; font-size: 12px; }
.av.big { width: 64px; height: 64px; font-size: 22px; }
.main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 16px; animation: rise 0.35s both; }
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 24px 24px 22px; color: #f4f6fb; background: radial-gradient(500px 260px at 100% 0%, rgba(226, 176, 74, 0.35), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy2) 60%, var(--navy3)); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; box-shadow: var(--shadow); }
.hero::after { content: '₹'; position: absolute; right: -10px; top: -40px; font: 800 200px/1 var(--f-head); color: rgba(243, 207, 122, 0.08); pointer-events: none; }
.hero h1 { font-size: 26px; font-weight: 800; margin-top: 4px; }
.hero p { margin: 2px 0 0; color: #b9c6e4; }
.hero .kick { font-size: 12px; }
.hero-n { text-align: right; }
.hero-n small { display: block; color: #b9c6e4; font-size: 13px; }
.hero-n b { display: block; font: 800 34px/1.1 var(--f-head); color: var(--gold2); }
.hero-n span { color: #b9c6e4; font-size: 13px; }
.hero .add { grid-column: 1 / -1; justify-self: start; padding: 12px 22px; font-size: 16px; }
.hero.me { grid-template-columns: auto 1fr; align-items: center; }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.al { text-align: left; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.al.warn { background: var(--amber2); color: #7a4f0b; }
.al.bad { background: var(--red2); color: var(--red); }
.al b { font-size: 16px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qk { background: #fff; border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 6px 18px -14px rgba(14, 26, 51, 0.5); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s; }
.qk:hover { transform: translateY(-3px); border-color: var(--gold); }
.qk span { font-size: 26px; }
.qk b { font-size: 14px; }
.qk small { color: var(--muted); font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.card { background: #fff; border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); }
.card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.card b { display: block; font: 800 22px/1.2 var(--f-head); margin-top: 4px; }
.in { color: var(--green); }
.out { color: var(--red); }
.h { font-size: 17px; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.pc { background: #fff; border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pc-h { display: flex; align-items: center; gap: 10px; }
.bar { height: 7px; border-radius: 99px; background: #edf0f7; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy3), var(--gold)); }
.pc-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-n small { display: block; color: var(--muted); font-size: 12px; }
.pc-n b { font-size: 13.5px; white-space: nowrap; }
.hint { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.list { background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.it { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef1f7; transition: background 0.15s; }
.it:last-child { border-bottom: 0; }
.it:hover { background: #f8f9fd; }
.it.del { opacity: 0.5; text-decoration: line-through; }
.ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: #f1f4fa; flex: none; }
.ic.k-expense { background: #fdecea; }
.ic.k-income { background: #e3f5ee; }
.ic.k-capital { background: #e8f0ff; }
.ic.k-drawing { background: #fff4dc; }
.it-m { flex: 1; min-width: 0; }
.it-m b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-m small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.it-r b { font-size: 15.5px; white-space: nowrap; }
.day { padding: 10px 14px 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; background: #fafbfe; border-bottom: 1px solid #eef1f7; }
.lh { display: flex; align-items: baseline; gap: 10px; }
.lh h2 { font-size: 24px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.fchips { gap: 6px; }
.fchips .chip { padding: 6px 11px; font-size: 13px; }
.vline { width: 1px; background: var(--line); margin: 0 4px; }
.sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); }
.docs { display: flex; flex-direction: column; gap: 8px; }
.docs .it { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.mi { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; text-align: left; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; font-size: 22px; align-items: center; }
.mi b { font-size: 16px; }
.mi small { grid-column: 2; color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }

/* bottom tabs */
.tabs { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(460px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-radius: 22px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(10, 22, 48, 0.45), 0 0 0 1px rgba(14, 26, 51, 0.06); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tabs button i { font-style: normal; font-size: 19px; filter: grayscale(1); opacity: 0.7; }
.tabs button.on { color: var(--ink); background: #f1f4fb; }
.tabs button.on i { filter: none; opacity: 1; }
.tabs .fab { width: 56px; height: 56px; margin: -26px auto 0; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--ink); box-shadow: 0 12px 26px -10px rgba(226, 176, 74, 0.95), 0 0 0 5px #fff; padding: 0; justify-content: center; }
.tabs .fab i { font-size: 28px; filter: none; opacity: 1; font-weight: 800; }

@media (max-width: 760px) {
  .top .logo { height: 40px; }
  .top .fy { display: none; }
  .top .btn.ghost { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-n { text-align: left; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters #fq { grid-column: 1 / -1; }
  .quick .qk small { display: none; }
}

/* compact sizes */
.top { padding: 8px 14px; }
.top .logo { height: 40px; }
.av { width: 32px; height: 32px; font-size: 12px; }
.main { padding: 14px 14px 20px; gap: 12px; max-width: 980px; }
.hero { padding: 18px 20px; border-radius: 18px; gap: 12px; }
.hero::after { font-size: 150px; top: -30px; }
.hero h1 { font-size: 20px; }
.hero .kick { font-size: 11px; }
.hero p { font-size: 13px; }
.hero-n small { font-size: 12px; }
.hero-n b { font-size: 26px; }
.hero-n span { font-size: 12px; }
.hero .add { padding: 9px 16px; font-size: 14px; }
.al { padding: 10px 13px; font-size: 13px; border-radius: 12px; }
.al b { font-size: 14px; }
.quick { gap: 8px; }
.qk { padding: 10px 6px; border-radius: 14px; }
.qk span { font-size: 20px; }
.qk b { font-size: 12.5px; }
.qk small { font-size: 11px; }
.cards { gap: 8px; }
.card { padding: 10px 13px; border-radius: 14px; }
.card small { font-size: 11.5px; }
.card b { font-size: 18px; }
.h { font-size: 15px; margin-top: 2px; }
.pc { padding: 11px 13px; border-radius: 14px; gap: 8px; }
.pc-n small { font-size: 11px; }
.pc-n b { font-size: 12.5px; }
.list { border-radius: 14px; }
.it { padding: 9px 12px; gap: 10px; }
.ic { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
.it-m small { font-size: 11.5px; }
.it-r b { font-size: 13.5px; }
.day { padding: 7px 12px 5px; font-size: 11px; }
.lh h2 { font-size: 20px; }
.sum { font-size: 13px; }
.mi { padding: 11px 14px; font-size: 18px; border-radius: 12px; }
.mi b { font-size: 14px; }
.mi small { font-size: 12px; }
.tabs { width: min(400px, calc(100% - 24px)); padding: 5px; border-radius: 18px; }
.tabs button { font-size: 10.5px; padding: 5px 0; }
.tabs button i { font-size: 17px; }
.tabs .fab { width: 48px; height: 48px; margin-top: -22px; }
.tabs .fab i { font-size: 24px; }
