@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Hind+Siliguri:wght@400;500;600;700&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0B1120; color: #E5E7EB; font-family: system-ui, Arial, sans-serif; }
.hidden { display: none !important; }
.muted { color: #94A3B8; font-size: 14px; }
.error { color: #FB7185; font-size: 14px; min-height: 18px; margin-top: 6px; }
h3 { margin-bottom: 10px; }
label { display: block; color: #94A3B8; font-size: 13px; margin: 10px 0 4px; }
input, select { width: 100%; padding: 11px; border-radius: 10px; border: 1px solid #1E293B; background: #111827; color: #E5E7EB; font-size: 15px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: #7C3AED; }
.btn { padding: 11px 16px; border: none; border-radius: 10px; background: #1E293B; color: #E5E7EB; font-size: 15px; cursor: pointer; margin-top: 10px; }
.btn.primary { background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff; width: 100%; }
.btn.logout { background: transparent; border: 1px solid #7C3AED; color: #C4B5FD; padding: 5px 12px; font-size: 13px; margin-top: 6px; width: auto; }

/* #-- Login Page --# Figma (FinWise) design: সবুজ header + হালকা card */
#login-view { height: 100dvh; max-width: 430px; margin-left: auto; margin-right: auto; overflow: hidden; display: flex; flex-direction: column; background: #00D09E; font-family: 'Poppins', system-ui, Arial, sans-serif; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.login-header { flex: none; text-align: center; padding: 38px 20px 24px; }
.login-logo { width: 148px; height: auto; display: block; margin: 0 auto; }
.login-card { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; background: #F1FFF3; border-radius: 36px 36px 0 0; padding: 30px 30px 26px; }
.login-title { color: #0E3E3E; font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.login-label { color: #0E3E3E; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.key-box { position: relative; display: flex; align-items: center; gap: 10px; background: #DFF7E2; border-radius: 999px; height: 52px; padding: 0 18px; }
.key-box .key-icon { width: 20px; height: 20px; color: #0E3E3E; flex: none; }
.key-box input { flex: 1; width: auto; background: transparent; border: none; outline: none; padding: 0 44px 0 0; color: #052224; font-family: inherit; font-size: 15px; }
.key-box input::placeholder { color: #7A8B8B; }
#toggle-key { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; cursor: pointer; color: #0E3E3E; display: flex; }
#toggle-key svg { width: 22px; height: 22px; }
#login-view .error { color: #DC2626; text-align: center; }
.btn.login-btn { background: #00D09E; color: #0E3E3E; font-family: inherit; font-size: 16px; font-weight: 700; border-radius: 999px; width: 200px; height: 48px; margin: 20px auto 0; display: block; }
.btn.login-btn:disabled { opacity: .45; cursor: default; }
.login-footer { margin-top: auto; padding-top: 34px; text-align: center; }
.login-org { display: flex; align-items: center; justify-content: center; gap: 6px; color: #0E3E3E; opacity: .75; font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.login-org svg { width: 16px; height: 16px; color: #00A87E; }
.login-credit { color: #0E3E3E; opacity: .55; font-size: 12px; margin-top: 5px; }
/* Desktop: boro screen-e majhkhane card */
@media (min-width: 768px) {
  #login-view { max-width: none; justify-content: center; align-items: center; padding: 40px 20px; }
  .login-header { padding: 0 0 22px; }
  .login-card { flex: none; width: 400px; max-width: 100%; border-radius: 36px; }
}
/* #-- End Login Page --# */
.logo { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #7C3AED, #4F46E5); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: bold; color: #fff; }
.logo.small { width: 34px; height: 34px; font-size: 19px; border-radius: 9px; display: inline-flex; vertical-align: middle; margin-right: 8px; }

/* #-- Profile --# Header + avatar + profile panel */
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #F1FFF3; border-bottom: 1px solid rgba(5,34,36,.05); position: sticky; top: 0; z-index: 20; font-family: 'Poppins', system-ui, Arial, sans-serif; box-shadow: 0 6px 20px rgba(5,34,36,.06); }
.brand { display: flex; align-items: center; gap: 8px; color: #052224; font-size: 19px; font-weight: 700; }
.brand svg { width: 36px; height: 36px; display: block; }
#header-title { font-size: 17px; font-weight: 600; color: #052224; }
header.title-mode { justify-content: center; }
header.title-mode .brand, header.title-mode #avatar-btn { display: none; }
#avatar-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: linear-gradient(135deg, #00D09E, #0E3E3E); padding: 2.5px; overflow: hidden; cursor: pointer; }
#avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
#profile-backdrop { position: fixed; inset: 0; background: rgba(3,19,20,.45); z-index: 25; }
#profile-panel { position: fixed; top: 72px; right: 12px; width: 280px; max-width: calc(100vw - 24px); background: #F1FFF3; border-radius: 24px; box-shadow: 0 16px 40px rgba(3,19,20,.35); padding: 24px 20px 20px; z-index: 30; text-align: center; font-family: 'Poppins', system-ui, Arial, sans-serif; opacity: 0; transform: scale(.9) translateY(-10px); transform-origin: top right; pointer-events: none; transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.4,.64,1); }
#profile-panel.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
#profile-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: none; border-radius: 50%; background: #DFF7E2; color: #0E3E3E; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#profile-close svg { width: 16px; height: 16px; }
.p-avatar { width: 74px; height: 74px; margin: 2px auto 10px; border-radius: 50%; background: #0E3E3E; overflow: hidden; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-name { color: #052224; font-size: 18px; font-weight: 700; }
.p-badge { display: inline-block; margin-top: 6px; background: #00D09E; color: #052224; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.p-logout { margin: 18px auto 0; display: flex; align-items: center; gap: 8px; background: #FFE3E3; color: #C81E1E; border: none; border-radius: 999px; padding: 10px 22px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.p-logout svg { width: 18px; height: 18px; }
#logout-modal { z-index: 60; }
.logout-box { background: #F1FFF3; border-radius: 24px; padding: 24px 22px 20px; width: 100%; max-width: 320px; text-align: center; font-family: 'Poppins', system-ui, Arial, sans-serif; animation: pop .22s ease; }
.logout-box h3 { color: #052224; margin-bottom: 6px; }
.logout-box p { color: #0E3E3E; opacity: .7; font-size: 14px; }
.logout-actions { display: flex; gap: 10px; margin-top: 18px; }
.logout-actions .btn { flex: 1; margin-top: 0; border-radius: 999px; font-family: inherit; font-weight: 600; }
#logout-no, #undo-no, #delete-no { background: #DFF7E2; color: #0E3E3E; }
#logout-yes, #undo-yes, #delete-yes { background: #E5484D; color: #fff; }
#undo-modal, #delete-modal { z-index: 60; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#app-view { transition: opacity .35s ease; background: #F1FFF3; }
/* App layout: header/nav sthir, sudhu main scroll hoy (login page-er moto) */
#app-view:not(.hidden) { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
#app-view main { flex: 1; min-height: 0; overflow-y: auto; width: 100%; }
#app-view.fade-out { opacity: 0; }
/* #-- End Profile --# */

main { padding: 14px; max-width: 560px; margin: 0 auto; }
.card { background: #111827; border: 1px solid #1E293B; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.big { font-size: 30px; font-weight: bold; margin: 4px 0; }
.progress { height: 10px; background: #1E293B; border-radius: 6px; margin: 10px 0 6px; overflow: hidden; }
#grand-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #7C3AED, #4F46E5); transition: width .4s; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #1E293B; }
.row:last-child { border-bottom: none; }

/* Member rows */
.member-row { display: flex; justify-content: space-between; align-items: center; background: #111827; border: 1px solid #1E293B; border-radius: 12px; padding: 12px 14px; margin-top: 10px; cursor: pointer; }
.member-row .nm { font-weight: bold; }
.member-row .ph { color: #94A3B8; font-size: 13px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: bold; }
.badge.paid { background: #064E3B; color: #34D399; }
.badge.due { background: #4C0519; color: #FB7185; }
.badge.off { background: #1E293B; color: #94A3B8; }
.month-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1E293B; }
.month-row:last-child { border-bottom: none; }
.month-row .tm { color: #94A3B8; font-size: 12px; display: block; }

/* Bottom nav */
#bottom-nav { flex: none; margin: 0 12px 10px; display: flex; gap: 4px; background: #fff; border-radius: 999px; padding: 6px; z-index: 15; box-shadow: 0 10px 30px rgba(5,34,36,.14); font-family: 'Poppins', system-ui, Arial, sans-serif; }
#bottom-nav button { flex: 1; padding: 8px 2px 6px; background: none; border: none; border-radius: 999px; color: #0E3E3E; opacity: .85; font-size: 10px; font-weight: 500; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#bottom-nav button svg { width: 20px; height: 20px; }
#bottom-nav button.active { background: #00D09E; color: #052224; opacity: 1; font-weight: 600; }

/* Modal + popup */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 20; }
.modal-box { background: #111827; border: 1px solid #1E293B; border-radius: 16px; padding: 20px; width: 100%; max-width: 380px; }
.modal-box.center { text-align: center; }
.tick { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: #064E3B; color: #34D399; font-size: 32px; display: flex; align-items: center; justify-content: center; }

/* #-- Dashboard --# Sada card + ring + masher hisab (Members theme) */
#view-home { margin: -14px; padding: 14px 14px 18px; font-family: 'Poppins', system-ui, Arial, sans-serif; background: #F1FFF3; min-height: 100%; }
.glass-card { background: #fff; border: none; border-radius: 26px; padding: 18px 16px; margin-bottom: 12px; box-shadow: 0 10px 30px rgba(5,34,36,.08); }
.ring-wrap-big { position: relative; width: 118px; height: 118px; margin: 0 auto 2px; }
.ring-big { width: 118px; height: 118px; transform: rotate(-90deg); }
.ring-big circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: #DFF7E2; }
.ring-fg { stroke: #00D09E; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s ease; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center span { color: #052224; font-size: 24px; font-weight: 700; line-height: 1.1; }
.ring-center small { color: #0E3E3E; opacity: .65; font-size: 12px; }
.mini-row { display: flex; gap: 8px; margin-top: 12px; }
.mini-box { flex: 1; background: #F1FFF3; border-radius: 14px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-box span { font-size: 11px; color: #0E3E3E; opacity: .75; }
.mini-box b { font-size: 14.5px; color: #052224; white-space: nowrap; }
.mini-box b.green { color: #00A87E; }
.mini-box b.red { color: #E5484D; }
.target-bar { margin-top: 8px; background: #F1FFF3; border-radius: 14px; padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; }
.target-bar span { font-size: 12.5px; color: #0E3E3E; opacity: .8; }
.target-bar b { font-size: 16px; color: #052224; }
.month-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.month-kicker { font-size: 12px; color: #0E3E3E; opacity: .7; }
.month-badge { flex: none; background: #052224; color: #F1FFF3; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.month-nav { margin-top: 12px; background: #052224; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding: 5px; }
.month-nav > span { color: #F1FFF3; font-weight: 600; font-size: 14.5px; }
.mnav-btn { width: 34px; height: 34px; flex: none; border-radius: 50%; border: none; background: #00D09E; color: #052224; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mnav-btn svg { width: 18px; height: 18px; }
.mnav-btn:disabled { opacity: .3; cursor: default; }
.month-progress { height: 9px; background: #DFF7E2; border-radius: 999px; margin-top: 12px; overflow: hidden; }
#run-bar, #col-bar { height: 100%; width: 0%; background: #00D09E; border-radius: 999px; transition: width .4s; }
.dash-foot { display: flex; align-items: center; justify-content: center; gap: 14px; color: #0E3E3E; font-size: 13px; }
.refresh-btn { background: #052224; color: #F1FFF3; border: none; padding: 9px 22px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
/* #-- End Dashboard --# */

/* #-- Members --# Yasin-er screenshot design: sada panel, dhusor search, hairline list */
#view-members { margin: -14px; padding: 16px 14px 14px; font-family: 'Poppins', system-ui, Arial, sans-serif; background: #F1FFF3; height: calc(100% + 28px); display: flex; flex-direction: column; }
.mem-toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex: none; width: 100%; }
.mem-summary { background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 10px 30px rgba(5,34,36,.08); margin-bottom: 12px; flex: none; }
.mem-listwrap { background: #fff; border-radius: 26px; padding: 4px 18px 10px; box-shadow: 0 10px 30px rgba(5,34,36,.08); flex: 1; min-height: 0; overflow-y: auto; }
.ms-label { color: rgba(14,62,62,.55); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.ms-boxes { display: flex; gap: 10px; }
.ms-box { flex: 1; background: #F1FFF3; border-radius: 16px; padding: 10px 12px; }
.ms-box b { display: block; color: #052224; font-size: 19px; font-weight: 600; line-height: 1.15; }
.ms-box span { color: rgba(14,62,62,.65); font-size: 11px; font-weight: 500; }
.add-btn { background: #00D09E; color: #052224; border: none; padding: 0 20px; height: 46px; border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; flex: none; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 0 14px; height: 46px; flex: 1; min-width: 0; box-shadow: 0 6px 18px rgba(5,34,36,.06); }
.search-box svg { width: 18px; height: 18px; color: #64748B; flex: none; }
.search-box input { flex: 1; width: auto; min-width: 0; background: transparent; border: none; outline: none; padding: 0; color: #052224; font-family: inherit; font-size: 14px; }
.search-box input::placeholder { color: #94A3B8; }
#member-list .member-row { background: transparent; border: none; border-bottom: 1px solid #EEF2EE; border-radius: 0; margin: 0; padding: 12px 0; display: flex; align-items: center; gap: 12px; }
#member-list .member-row:last-child { border-bottom: none; }
#member-list .member-row.is-off { opacity: .55; }
.m-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.m-avatar svg { width: 34px; height: 34px; display: block; }
.m-mid { flex: 1; min-width: 0; }
.m-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.p-track { width: 58px; height: 5px; flex: none; background: #EDF2ED; border-radius: 99px; overflow: hidden; }
.p-fill { display: block; height: 100%; background: #00D09E; border-radius: 99px; }
.p-text { font-size: 11px; font-weight: 600; color: #0E3E3E; white-space: nowrap; }
#member-list .nm { color: #052224; font-size: 15px; font-weight: 500; }
#member-list .ph { color: #64748B; font-size: 12px; }
#member-list .ph.no-num { color: #A9BBA9; }
#member-list .badge.paid { background: #DFF7E2; color: #0B7A55; }
#member-list .badge.due { background: #FFE3E3; color: #C81E1E; }
#member-list .badge.off { background: #EEF1EE; color: #8A978A; }
#member-list .muted { color: #64748B; padding: 14px 0; }
/* Sor screen-e row-er jayga bachate mini progress track hide (sonkhya "x/12 paid" text-ei thake) */
@media (max-width: 400px) { .p-track { display: none; } .m-sub { gap: 6px; } }
/* #-- End Members --# */

/* #-- Member Profile --# Majhkhane popup: avatar, edit mode, maser grid */
.modal-box.profile-box { background: rgba(241,255,243,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.8); border-radius: 26px; color: #052224; font-family: 'Poppins', system-ui, Arial, sans-serif; position: relative; max-height: 88dvh; overflow-y: auto; animation: pop .22s ease; }
.pm-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; border-radius: 50%; background: #DFF7E2; color: #0E3E3E; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pm-close svg { width: 16px; height: 16px; }
.pm-avatar { width: 72px; height: 72px; margin: 6px auto 10px; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pm-avatar svg { width: 52px; height: 52px; display: block; }
.pm-name-row { display: flex; align-items: center; }
.pm-side { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-side-r { padding-left: 12px; }
.pm-name-row h3 { color: #052224; font-size: clamp(15px, 5.2vw, 19px); margin: 0; text-align: center; overflow-wrap: break-word; }
.pm-status { width: 11px; height: 11px; flex: none; border-radius: 50%; background: #C9D4C9; box-shadow: 0 0 0 3px #EEF2EE; }
.pm-status.on { background: #00D09E; box-shadow: 0 0 0 3px #DFF7E2; }
.pm-edit-btn { width: 30px; height: 30px; flex: none; border: none; border-radius: 50%; background: #DFF7E2; color: #0E3E3E; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pm-edit-btn svg { width: 15px; height: 15px; }
.pm-info { margin-top: 14px; }
.pm-row { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(5,34,36,.07); font-size: 13.5px; }
.pm-row:last-child { border-bottom: none; }
.pm-row span { color: #0E3E3E; opacity: .6; }
.pm-row b { font-weight: 500; color: #052224; }
.pm-row b.no-num { color: #93A496; font-weight: 400; }
.profile-box label { color: #0E3E3E; font-weight: 600; }
.profile-box input { background: #DFF7E2; border: none; color: #052224; border-radius: 12px; font-family: inherit; }
.profile-box .error { color: #DC2626; }
.pm-edit-actions { display: flex; gap: 10px; margin-top: 14px; }
.pm-edit-actions .btn { flex: 1; margin-top: 0; border-radius: 999px; font-family: inherit; font-weight: 600; }
.pm-save { background: #00D09E; color: #052224; }
.pm-cancel { background: #DFF7E2; color: #0E3E3E; }
/* #-- Delete Member --# Edit mode-er niche halka-lal delete button */
.delete-zone { margin-top: 20px; border-top: 1px solid rgba(5,34,36,.09); padding-top: 16px; }
.delete-btn { width: 100%; height: 46px; border: none; border-radius: 999px; background: #FFE3E3; color: #C81E1E; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.delete-btn svg { width: 17px; height: 17px; }
.delete-hint { text-align: center; color: rgba(14,62,62,.55); font-size: 11.5px; margin-top: 9px; }
/* #-- End Delete Member --# */
.pm-active-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #CFE3CF; border-radius: 999px; cursor: pointer; transition: background .25s; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .25s; box-shadow: 0 2px 6px rgba(5,34,36,.25); }
.switch input:checked + .track { background: #00D09E; }
.switch input:checked + .track::before { transform: translateX(20px); }
.pm-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.mtile { border-radius: 14px; padding: 8px 2px; text-align: center; font-size: 11px; font-weight: 500; }
.mtile b { display: block; font-size: 12px; margin-bottom: 2px; }
.mtile.paid { background: #00D09E; color: #052224; cursor: pointer; }
.mtile.sel { box-shadow: inset 0 0 0 2px #052224; }
.pm-paid-info { margin-top: 10px; background: linear-gradient(135deg, #DFF7E2, #F1FFF3); border: 1px solid rgba(0,208,158,.35); border-left: 4px solid #00D09E; color: #0E3E3E; border-radius: 14px; padding: 9px 12px; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 4px 14px rgba(0,208,158,.12); }
.pm-paid-info svg { width: 14px; height: 14px; flex: none; color: #0B7A55; }
.pm-paid-txt { flex: 1; text-align: left; }
.pm-undo { flex: none; background: #FFE3E3; color: #C81E1E; border: none; border-radius: 999px; padding: 6px 13px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.pm-undo svg { width: 13px; height: 13px; color: #C81E1E; }
.mtile.due { background: #FFE3E3; color: #C81E1E; }
.mtile.due.can-collect { cursor: pointer; }
.pm-collect-hint { text-align: center; color: rgba(14,62,62,.55); font-size: 12px; margin-top: 10px; }
/* #-- End Member Profile --# */

/* Add Member popup: glass style */
.modal-box.glass-box { background: rgba(241,255,243,.95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; color: #052224; font-family: 'Poppins', system-ui, Arial, sans-serif; animation: pop .22s ease; }
.glass-box label { color: #0E3E3E; font-weight: 600; }
.glass-box input { background: #DFF7E2; border: none; color: #052224; border-radius: 12px; font-family: inherit; }
.glass-box .btn { border-radius: 999px; font-family: inherit; font-weight: 600; width: 100%; }
.glass-box .btn.primary { background: #00D09E; color: #052224; }
.glass-box .btn:not(.primary) { background: #DFF7E2; color: #0E3E3E; }
.glass-box .error { color: #DC2626; }

/* #-- Collection --# Stepper card + filter chips + minimal list (serial + name + chip) */
#view-collection { margin: -14px; padding: 16px 14px 14px; font-family: 'Poppins', system-ui, Arial, sans-serif; background: #F1FFF3; height: calc(100% + 28px); display: flex; flex-direction: column; }
.col-card { background: #fff; border-radius: 26px; padding: 18px 16px; box-shadow: 0 10px 30px rgba(5,34,36,.08); flex: none; }
.col-filters { display: flex; gap: 8px; margin: 12px 0; flex: none; }
.fchip { padding: 8px 18px; border-radius: 999px; border: none; background: #fff; color: #0E3E3E; font-family: inherit; font-size: 13px; font-weight: 500; box-shadow: 0 6px 18px rgba(5,34,36,.06); cursor: pointer; }
.fchip.active { background: #00D09E; color: #052224; font-weight: 600; }
.col-listwrap { background: #fff; border-radius: 26px; padding: 4px 18px 10px; box-shadow: 0 10px 30px rgba(5,34,36,.08); flex: 1; min-height: 0; overflow-y: auto; }
#col-member-list .crow { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #EEF2EE; cursor: pointer; }
#col-member-list .crow:last-child { border-bottom: none; }
#col-member-list .crow.is-off { opacity: .55; cursor: default; }
#col-member-list .serial { font-size: 14px; font-weight: 500; color: rgba(14,62,62,.5); width: 24px; flex: none; }
#col-member-list .cname { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: #052224; }
#col-member-list .badge { font-weight: 600; }
#col-member-list .badge.paid { background: #DFF7E2; color: #0B7A55; }
#col-member-list .badge.due { background: #FFE3E3; color: #C81E1E; }
#col-member-list .badge.off { background: #EEF1EE; color: #8A978A; }
#col-member-list .muted { color: #64748B; padding: 14px 0; }
/* #-- End Collection --# */

/* #-- Collect --# Majhkhane popup: tile select, live total, sobuj Collect button */
#collect-modal { z-index: 40; }
.modal-box.collect-box { background: rgba(241,255,243,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.8); border-radius: 26px; color: #052224; font-family: 'Poppins', system-ui, Arial, sans-serif; position: relative; max-height: 88dvh; overflow-y: auto; animation: pop .22s ease; }
.collect-box h3 { text-align: center; color: #052224; font-size: 18px; margin: 0; }
.k-sub { text-align: center; color: rgba(14,62,62,.6); font-size: 12.5px; margin-top: 3px; }
.collect-box .pm-avatar { width: 64px; height: 64px; }
.collect-box .pm-avatar svg { width: 46px; height: 46px; }
#k-months .mtile { cursor: pointer; }
#k-months .mtile.paid { cursor: default; }
#k-months .mtile.pick { background: #DFF7E2; color: #0B7A55; box-shadow: inset 0 0 0 2px #052224; }
.collect-box label { color: #0E3E3E; font-weight: 600; }
/* Manual payment dates: sada card, prottek maser row-e date pill + time pill */
.kdates-card { margin-top: 12px; background: #fff; border-radius: 18px; padding: 12px 14px 6px; box-shadow: 0 6px 18px rgba(5,34,36,.06); text-align: left; }
.kdates-title { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(14,62,62,.55); margin-bottom: 4px; }
.kdates-hint { color: #64748B; font-size: 13px; padding: 4px 0 8px; }
.krow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #EEF2EE; }
.krow:last-child { border-bottom: none; }
.kmon { flex: 0 0 100%; display: flex; align-items: baseline; gap: 6px; }
.kmon b { font-size: 13px; font-weight: 600; color: #052224; line-height: 1.2; }
.kmon span { font-size: 10.5px; color: rgba(14,62,62,.55); }
.kpill { flex: 1; display: flex; align-items: center; gap: 6px; background: #F1FFF3; box-shadow: inset 0 0 0 1.5px #CFE3CF; border-radius: 999px; padding: 7px 11px; margin: 0; cursor: pointer; min-width: 0; }
.kpill svg { width: 14px; height: 14px; flex: none; color: rgba(14,62,62,.45); }
.kpill input { flex: 1; width: auto; min-width: 0; background: transparent; border: none; outline: none; padding: 0; font-family: inherit; font-size: 12px; font-weight: 500; color: rgba(14,62,62,.45); }
.kpill input::-webkit-calendar-picker-indicator { opacity: .45; margin: 0; padding: 0; width: 14px; height: 14px; }
.kpill.time { flex: 1; }
.kpill:has(input:valid) { background: #DFF7E2; box-shadow: none; }
.kpill:has(input:valid) svg { color: #0B7A55; }
.kpill input:valid { color: #0E3E3E; font-weight: 600; }
.collect-box .error { color: #DC2626; text-align: center; }
.k-total-bar { margin-top: 14px; background: #fff; border-radius: 14px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 6px 18px rgba(5,34,36,.06); }
.k-total-bar span { font-size: 12.5px; color: rgba(14,62,62,.7); }
.k-total-bar b { font-size: 16px; color: #052224; }
.k-collect-btn { margin-top: 14px; width: 100%; height: 48px; border: none; border-radius: 999px; background: #00D09E; color: #052224; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.k-collect-btn:disabled { opacity: .55; cursor: default; }
/* #-- End Collect --# */

/* #-- Failed Popup --# Success popup-er jora: lal cross, Close / Try Again */
#failed-modal { z-index: 80; }
#success-modal { z-index: 80; }
#failed-modal .modal-box { background: #F1FFF3; border: none; border-radius: 26px; font-family: 'Poppins', system-ui, Arial, sans-serif; text-align: center; padding: 28px 22px 20px; max-width: 340px; animation: pop .22s ease; }
#failed-modal .cross { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: #FFE3E3; display: flex; align-items: center; justify-content: center; }
#failed-modal .cross svg { width: 52px; height: 52px; display: block; }
#failed-modal .cross circle { fill: #E5484D; }
#failed-modal .cross path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: crossdraw .4s .15s ease forwards; }
@keyframes crossdraw { to { stroke-dashoffset: 0; } }
#failed-modal h3 { color: #052224; font-size: 20px; margin-bottom: 6px; }
#failed-modal p { color: #0E3E3E; opacity: .7; font-size: 14px; }
.failed-actions { display: flex; gap: 10px; margin-top: 20px; }
.failed-actions .btn { flex: 1; margin-top: 0; height: 46px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; }
#failed-close { background: #DFF7E2; color: #0E3E3E; }
#failed-retry { background: #E5484D; color: #fff; }
/* #-- End Failed Popup --# */

/* #-- History --# Summary card + mas filter stepper + tarikh onujayi group list (Undo nei — sudhu record) */
#view-history { margin: -14px; padding: 16px 14px 14px; font-family: 'Poppins', system-ui, Arial, sans-serif; background: #F1FFF3; height: calc(100% + 28px); display: flex; flex-direction: column; }
.hist-summary { background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 10px 30px rgba(5,34,36,.08); margin-bottom: 12px; flex: none; }
.hist-filter { flex: none; margin-bottom: 12px; }
.hist-filter .month-nav { margin-top: 0; }
.hist-listwrap { background: #fff; border-radius: 26px; padding: 6px 18px 12px; box-shadow: 0 10px 30px rgba(5,34,36,.08); flex: 1; min-height: 0; overflow-y: auto; }
.hist-ghead { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.hist-ghead b { font-size: 13px; font-weight: 600; color: #052224; }
.hist-ghead span { font-size: 11px; font-weight: 500; color: rgba(14,62,62,.55); }
#history-list .hrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EEF2EE; }
#history-list .hrow:last-child { border-bottom: none; }
.h-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.h-avatar svg { width: 30px; height: 30px; display: block; }
.h-mid { flex: 1; min-width: 0; }
.h-nm { color: #052224; font-size: 14.5px; font-weight: 500; }
.h-sub { color: #64748B; font-size: 11.5px; margin-top: 1px; }
.h-amt { font-size: 15px; font-weight: 600; color: #00A87E; white-space: nowrap; }
#history-list .muted { color: #64748B; padding: 14px 0; }
/* #-- End History --# */

/* #-- Success Popup --# Digital style: halka box, animated tick, sobuj pill button */
#success-modal .modal-box { background: #F1FFF3; border: none; border-radius: 26px; font-family: 'Poppins', system-ui, Arial, sans-serif; text-align: center; padding: 28px 22px 20px; max-width: 340px; animation: pop .22s ease; }
#success-modal .tick { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: #DFF7E2; display: flex; align-items: center; justify-content: center; }
#success-modal .tick svg { width: 52px; height: 52px; display: block; }
#success-modal .tick circle { fill: #00D09E; }
#success-modal .tick path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: tickdraw .45s .15s ease forwards; }
@keyframes tickdraw { to { stroke-dashoffset: 0; } }
#success-modal h3 { color: #052224; font-size: 20px; margin-bottom: 6px; }
#success-modal p { color: #0E3E3E; opacity: .7; font-size: 14px; }
#success-modal .btn.primary { background: #00D09E; color: #052224; border-radius: 999px; height: 46px; font-family: inherit; font-size: 15px; font-weight: 700; margin-top: 18px; }
/* #-- End Success Popup --# */

/* #-- Statement --# History theke khule: period stepper + sheet preview + ek click-e PDF download */
.hist-stmt-btn { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: none; border-radius: 26px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(5,34,36,.08); margin-bottom: 12px; cursor: pointer; font-family: inherit; text-align: left; flex: none; }
.hsb-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #00D09E; color: #052224; display: flex; align-items: center; justify-content: center; }
.hsb-icon svg { width: 21px; height: 21px; }
.hsb-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hsb-mid b { color: #052224; font-size: 15px; font-weight: 600; }
.hsb-mid small { color: rgba(14,62,62,.6); font-size: 11.5px; }
.hsb-arrow { flex: none; color: #0E3E3E; opacity: .55; display: flex; }
.hsb-arrow svg { width: 20px; height: 20px; }
#view-statement { margin: -14px; padding: 16px 14px 14px; font-family: 'Poppins', system-ui, Arial, sans-serif; background: #F1FFF3; height: calc(100% + 28px); display: flex; flex-direction: column; }
.stmt-card { background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 10px 30px rgba(5,34,36,.08); flex: none; }
.stmt-card .month-nav { margin-top: 0; }
.stmt-hint { margin-top: 10px; text-align: center; color: rgba(14,62,62,.6); font-size: 12px; }
.stmt-preview { flex: 1; min-height: 0; overflow: auto; margin-top: 12px; border-radius: 18px; background: #E4EAE4; box-shadow: inset 0 0 0 1px rgba(5,34,36,.06); -webkit-overflow-scrolling: touch; }
#view-statement .error { color: #DC2626; text-align: center; flex: none; }
.stmt-download-btn { flex: none; margin-top: 12px; width: 100%; height: 50px; border: none; border-radius: 999px; background: #00D09E; color: #052224; font-family: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; }
.stmt-download-btn svg { width: 19px; height: 19px; }
.stmt-download-btn:disabled { opacity: .55; cursor: default; }
/* Sheet (PDF document): sada page, bank statement-er moto — preview ar PDF eki jinish */
.stmt-sheet { background: #fff; color: #052224; font-family: 'Poppins','Hind Siliguri',system-ui,sans-serif; padding: 26px 28px 22px; }
/* Download PDF-er print sheet: prottek page alada — page break-e row kate na */
.stmt-sheet.print { page-break-after: always; }
.stmt-sheet.print:last-child { page-break-after: auto; }
.stmt-cont { text-align: right; color: #7A8B8B; font-size: 10.5px; margin-top: 10px; }
.stmt-sheet.year { width: 1120px; }
.stmt-sheet.month { width: 760px; }
.stmt-topbar { height: 7px; border-radius: 99px; background: linear-gradient(90deg,#00D09E,#0E3E3E); margin: -26px -28px 18px; }
.stmt-head { display: flex; align-items: center; gap: 14px; }
.stmt-badge { width: 54px; height: 54px; flex: none; background: #0E3E3E; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.stmt-badge svg, .stmt-badge img { width: 38px; height: 38px; display: block; }
.stmt-head h2 { font-size: 25px; font-weight: 700; letter-spacing: .5px; line-height: 1.15; }
.stmt-head .stmt-sub { color: #0E3E3E; opacity: .75; font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.stmt-head-r { margin-left: auto; text-align: right; flex: none; }
.stmt-per { display: inline-block; background: #DFF7E2; color: #0B7A55; font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.stmt-per.dark { background: #052224; color: #F1FFF3; }
.stmt-gen { color: #64748B; font-size: 11px; margin-top: 6px; }
.stmt-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stmt-meta .sm { background: #F1FFF3; border-radius: 11px; padding: 7px 13px; font-size: 12px; color: #0E3E3E; }
.stmt-meta .sm b { color: #052224; font-weight: 600; }
.stmt-meta .sm b.red { color: #C81E1E; }
.stmt-legend { text-align: right; color: #7A8B8B; font-size: 10.5px; margin-top: 10px; }
.stmt-legend .lg-p { color: #0B7A55; font-weight: 700; }
.stmt-legend .lg-d { color: #C81E1E; font-weight: 700; }
.stmt-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.stmt-table th, .stmt-table td { border: 1px solid #E3EBE3; text-align: center; }
.stmt-table thead th { background: #052224; color: #F1FFF3; font-size: 11.5px; font-weight: 600; padding: 8px 3px; }
.stmt-table th.nm, .stmt-table td.nm { text-align: left; padding-left: 11px; }
.stmt-table td { padding: 6px 3px; font-size: 11.5px; }
.stmt-table tbody tr:nth-child(even) { background: #FAFCFA; }
.stmt-table td.sl { color: #64748B; width: 32px; }
.stmt-table td.nm { font-size: 13px; font-weight: 600; white-space: nowrap; }
.stmt-table td.nm .inact { color: #8A978A; font-size: 10px; font-weight: 500; }
.st-paid { color: #0B7A55; font-weight: 700; font-size: 11.5px; line-height: 1.2; }
.st-pdate { display: block; color: #7A8B8B; font-size: 9px; font-weight: 500; margin-top: 1px; }
.st-due { color: #C81E1E; font-weight: 600; font-size: 11px; }
td.st-cell-due { background: #FFF7F7; }
.st-up { color: #D8DEDA; font-size: 12px; }
.stmt-table td.tt { background: #F1FFF3; font-weight: 700; font-size: 12px; white-space: nowrap; }
.stmt-table td.tt .cnt { display: block; font-size: 9px; color: #0B7A55; font-weight: 600; }
.stmt-table tfoot td { background: #DFF7E2; font-weight: 700; font-size: 11.5px; padding: 8px 3px; }
.stmt-table tfoot td.nm { font-size: 12px; }
.stmt-table tfoot .grand { background: #00D09E; font-size: 12.5px; }
/* Ek maser sheet: boro row, status pill */
.stmt-table.month-t th { font-size: 12.5px; padding: 10px 12px; text-align: left; }
.stmt-table.month-t th.c, .stmt-table.month-t td.c { text-align: center; }
.stmt-table.month-t th.r, .stmt-table.month-t td.r { text-align: right; }
.stmt-table.month-t td { padding: 9px 12px; font-size: 12.5px; }
.stmt-table.month-t td.nm { font-size: 14px; }
.st-pill-p { display: inline-block; background: #DFF7E2; color: #0B7A55; font-weight: 700; font-size: 11.5px; padding: 4px 13px; border-radius: 999px; }
.st-pill-d { display: inline-block; background: #FFE3E3; color: #C81E1E; font-weight: 700; font-size: 11.5px; padding: 4px 13px; border-radius: 999px; }
.stmt-table.month-t td.dt { color: #43584F; font-size: 12px; text-align: left; }
.stmt-table.month-t td.amt { font-weight: 700; }
.stmt-table.month-t td.amt.zero { color: #B6BFB6; font-weight: 500; }
.stmt-table.month-t tfoot td { font-size: 12.5px; padding: 10px 12px; }
.stmt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 16px; }
.stmt-note { color: #7A8B8B; font-size: 10.5px; line-height: 1.55; max-width: 440px; }
.stmt-sign { text-align: center; flex: none; }
.stmt-sign .line { width: 180px; border-top: 1.5px solid #0E3E3E; margin-bottom: 5px; }
.stmt-sign .sn { font-size: 13px; font-weight: 700; }
.stmt-sign .sr { color: #64748B; font-size: 10.5px; }
/* #-- End Statement --# */