:root {
  --green: #1b7a3d;
  --green-dark: #0d4f27;
  --green-soft: #ebfbee;
  --yellow: #ffd43b;
  --yellow-dark: #f59f00;
  --yellow-soft: #fff9db;
  --red: #e03131;
  --ink: #1f2d24;
  --muted: #5f7366;
  --line: #dbe8de;
  --card: #ffffff;
  --bg: #f4f9f4;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(13, 79, 39, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', 'Noto Sans Bengali', 'Nirmala UI', 'Vrinda', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--green); }
h2 { font-size: 1.2rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ''; width: 6px; height: 22px; border-radius: 3px; background: var(--yellow); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 10px; }
.bell { position: relative; background: rgba(255,255,255,.14); border: 0; color: var(--yellow); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.badge { position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }

.view { max-width: 960px; margin: 0 auto; padding: 16px 14px calc(96px + var(--safe-b)); }

/* bottom nav */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b));
  box-shadow: 0 -4px 16px rgba(0,0,0,.05);
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .78rem; padding: 4px 0; border-radius: 12px; }
.bottomnav svg { width: 24px; height: 24px; fill: currentColor; }
.bottomnav a.active { color: var(--green); font-weight: 700; }
.bottomnav a.active svg { fill: var(--green); background: var(--yellow-soft); border-radius: 10px; padding: 2px 8px; width: 40px; box-sizing: content-box; }
@media (min-width: 900px) {
  .bottomnav { position: sticky; top: 62px; bottom: auto; max-width: 960px; margin: 0 auto; border: 0; background: transparent; box-shadow: none; }
  .view { padding-bottom: 40px; }
}

/* hero */
.hero { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--yellow-soft); margin-bottom: 18px; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 800/420; object-fit: cover; }
.hero .hero-text { position: absolute; top: 0; left: 0; right: 0; padding: 18px 20px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(1.5rem, 5.5vw, 2.4rem); color: var(--green-dark); line-height: 1.2; text-shadow: 0 2px 0 rgba(255,255,255,.7); }
.hero p { margin: 4px auto 0; display: inline-block; font-size: clamp(.95rem, 3.4vw, 1.2rem); font-weight: 600; color: #fff; background: var(--green); padding: 3px 14px; border-radius: 999px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--green); }
.stat.y { border-left-color: var(--yellow-dark); }
.stat.r { border-left-color: var(--red); }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.stat .val { font-size: 1.35rem; font-weight: 700; color: var(--green-dark); }
.stat.big { grid-column: 1 / -1; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border: 0; }
.stat.big .lbl { color: #d3f9d8; }
.stat.big .val { color: var(--yellow); font-size: 1.8rem; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.muted { color: var(--muted); font-size: .9rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row b { color: var(--green-dark); }
.row .due { color: var(--red); }
.row .ok { color: var(--green); }

.member-pick select { font-size: 1rem; }
.member-detail { margin-top: 14px; border-radius: 14px; background: var(--green-soft); padding: 14px; border: 1px solid #c3e6cb; }
.member-detail .head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--green-dark); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini { background: #fff; border-radius: 12px; padding: 10px; }
.mini .lbl { font-size: .8rem; color: var(--muted); }
.mini .val { font-weight: 700; font-size: 1.1rem; color: var(--green-dark); }
.mini.due .val { color: var(--red); }
.mini.gold { background: var(--yellow-soft); }

/* member list */
.mlist { display: grid; gap: 10px; }
@media (min-width: 640px) { .mlist { grid-template-columns: repeat(2, 1fr); } }
.mitem { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.mitem .info { flex: 1; min-width: 0; }
.mitem .name { font-weight: 700; }
.mitem .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.tag.y { background: var(--yellow-soft); color: #8a5a00; }
.tag.r { background: #fff0f0; color: var(--red); }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--green); color: #fff; font-weight: 600; position: sticky; top: 0; }
th:first-child { border-top-left-radius: 10px; } th:last-child { border-top-right-radius: 10px; }
tbody tr:nth-child(even) { background: #f8fcf8; }
td.num, th.num { text-align: right; }

/* forms */
label { display: block; font-size: .88rem; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,122,61,.15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; background: var(--green); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.y { background: var(--yellow); color: var(--green-dark); }
.btn.ghost { background: var(--green-soft); color: var(--green-dark); }
.btn.danger { background: #fff0f0; color: var(--red); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; margin-top: 14px; }
.btn[disabled] { opacity: .6; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tabs button { flex-shrink: 0; font: inherit; border: 0; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: var(--shadow); cursor: pointer; }
.tabs button.active { background: var(--green); color: var(--yellow); font-weight: 700; }

.bulk-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bulk-row input { padding: 8px 10px; text-align: right; }

.notice { border-left: 4px solid var(--yellow-dark); background: #fff; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.notice.new { background: var(--yellow-soft); }
.notice .t { font-weight: 700; color: var(--green-dark); }
.notice .d { font-size: .78rem; color: var(--muted); }

.inv { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.inv .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inv .title { font-weight: 700; }
.pill { font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--green-dark); font-weight: 600; white-space: nowrap; }
.pill.closed { background: var(--green-soft); color: var(--green); }

.alert { background: var(--yellow-soft); border: 1px solid #ffe8a1; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; color: #7a5200; }
.install-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px dashed var(--yellow-dark); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.install-bar span { flex: 1; font-size: .92rem; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--green-dark); color: #fff; padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

.loader { width: 42px; height: 42px; margin: 80px auto; border: 4px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 20px; }

/* v3 */
.top-actions { display: flex; align-items: center; gap: 8px; }
.langbtn { background: var(--yellow); color: var(--green-dark); border: 0; border-radius: 999px; height: 34px; min-width: 46px; padding: 0 12px; font: inherit; font-weight: 700; cursor: pointer; }
.stat .val { letter-spacing: .2px; }
.stat .sub { font-size: .8rem; opacity: .85; margin-top: 2px; }
.stat.big.gold { background: linear-gradient(135deg, #ffe066, #fab005); color: var(--green-dark); }
.stat.big.gold .lbl, .stat.big.gold .sub { color: #5c3b00; }
.stat.big.gold .val { color: var(--green-dark); }
.mini .val.sm { font-size: .95rem; }
img.avatar { object-fit: cover; background: var(--yellow-soft); border: 2px solid var(--yellow); }
.avatar.sm { width: 38px; height: 38px; font-size: 1rem; }
.avatar.xs { width: 30px; height: 30px; font-size: .85rem; border-width: 1px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bulk-row .who b { word-break: break-word; }
.files { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .files { grid-template-columns: repeat(3, 1fr); } }
.filebox { display: flex; gap: 10px; align-items: center; background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px; }
.filebox .prev { width: 64px; height: 64px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-size: 1.6rem; }
.filebox .prev img { width: 100%; height: 100%; object-fit: cover; }
.filebox .fb-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: .9rem; }
.filebtn { margin: 0; color: var(--green-dark); }
.idcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.idcards a { text-decoration: none; color: var(--muted); font-size: .85rem; text-align: center; }
.idcards img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 4px; }
input.amt { width: 92px; padding: 6px 8px; text-align: right; }
.fine-row { flex-wrap: wrap; }
@media (max-width: 520px) { .row .actions { flex-wrap: wrap; justify-content: flex-end; } }

.footer.rule { color: var(--red); font-weight: 600; font-size: .9rem; background: #fff0f0; border: 1px solid #ffc9c9; border-radius: 12px; padding: 10px 12px; }

/* v5 */
body.guest .bottomnav { display: none; }
body.guest .view { padding-bottom: 40px; }
.bottomnav:empty { display: none; }
.login-card { max-width: 460px; margin: 0 auto 18px; }
.login-links { text-align: center; margin: 12px 0 6px; font-weight: 600; }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; padding: 6px; }
.alert.ok { background: var(--green-soft); border-color: #b2f2bb; color: var(--green-dark); }
.alert a { font-weight: 700; }
.dash-hero { text-align: center; background: linear-gradient(160deg, var(--green), var(--green-dark)); color: #fff; border-radius: 22px; padding: 26px 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.dash-photo { width: 150px; height: 150px; margin: 0 auto 12px; border-radius: 50%; border: 5px solid var(--yellow); overflow: hidden; background: var(--yellow-soft); display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.dash-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-photo span { font-size: 3.6rem; font-weight: 700; color: var(--green-dark); }
.dash-hero h1 { margin: 0; font-size: 1.5rem; color: var(--yellow); }
.dash-meta { color: #d3f9d8; font-size: .92rem; margin-top: 2px; }
.dash-meta b { color: #fff; }
.dash-hero .btn { margin-top: 12px; }
fieldset { border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 14px 14px; margin: 0 0 14px; }
legend { font-weight: 700; color: var(--green-dark); padding: 0 6px; }
.inline { display: flex; gap: 6px; align-items: center; }
.inline input { flex: 1; min-width: 0; }
.profit-fund { border: 2px solid var(--yellow); background: linear-gradient(180deg, #fffdf3, #fff); }
td .who { gap: 8px; }

[hidden] { display: none !important; }

/* v6 */
.brand { min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logoutbtn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.logoutbtn:active { transform: scale(.97); }
@media (max-width: 430px) { .brand span { font-size: .95rem; } .logoutbtn span { display: none; } .logoutbtn { width: 40px; padding: 0; justify-content: center; } .top-actions { gap: 6px; } }
.install-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #ffe066, #fab005); color: var(--green-dark); border-radius: 20px; padding: 16px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(250,176,5,.35); }
.install-hero img { border-radius: 16px; flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.install-hero .ih-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.install-hero .ih-text b { font-size: 1.25rem; }
.install-hero .ih-text span { font-size: .9rem; }
.install-hero .ih-how { background: rgba(255,255,255,.55); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }
.install-hero .btn { background: var(--green); color: var(--yellow); font-size: 1.05rem; padding: 12px 18px; }
@media (max-width: 480px) { .install-hero { flex-wrap: wrap; } .install-hero .btn { width: 100%; } }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.dash-actions .btn.ghost { background: rgba(255,255,255,.15); color: #fff; }
.note-6m { display: inline-block; background: var(--green); color: var(--yellow); font-weight: 700; padding: 6px 14px; border-radius: 999px; margin: 0 0 10px; }
table.serial td.sl { color: var(--muted); font-weight: 600; width: 34px; }
table.serial td { white-space: normal; vertical-align: top; }
.paybox { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.paybox > span:nth-child(2) { flex: 1; }
.paybox.qr { flex-direction: column; text-align: center; }
.paybox.qr img { width: min(280px, 80vw); border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pm { font-weight: 700; padding: 6px 10px; border-radius: 10px; color: #fff; min-width: 64px; text-align: center; font-size: .85rem; }
.pm.bkash { background: #e2136e; } .pm.nagad { background: #f6921e; } .pm.rocket { background: #8c3494; } .pm.bank { background: var(--green); }
.num-big { font-size: 1.15rem; letter-spacing: .5px; }
.req { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; background: #fff; }
.req-card { border-top: 4px solid var(--yellow-dark); }
.slip { display: inline-flex; flex-direction: column; gap: 4px; margin: 10px 0; text-decoration: none; font-size: .85rem; }
.slip img { max-width: 220px; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.bankbox { background: var(--green-soft); border-radius: 10px; padding: 10px; margin: 8px 0; line-height: 1.7; }
.bottomnav a { position: relative; }
.nbadge { position: absolute; top: 0; right: calc(50% - 26px); background: var(--red); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.tabs button[data-count]:not([data-count=""])::after { content: attr(data-count); background: var(--red); color: #fff; border-radius: 9px; font-size: .72rem; padding: 0 6px; margin-left: 6px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .95rem; margin: 12px 0 4px; }
label.check input { width: 20px; height: 20px; }
.alert.pend { display: block; text-decoration: none; font-weight: 700; border-color: var(--yellow-dark); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(250,176,5,.25); } }

/* ================= v7 — সবুজ / লাল / সাদা থিম ================= */
:root {
  --green: #0a7a3c; --green-dark: #06582a; --green-soft: #e9f6ee;
  --red: #d7263d; --red-dark: #a81529; --red-soft: #fdecee;
  --yellow: #ffffff; --yellow-dark: #d7263d; --yellow-soft: #f2f8f4;
  --ink: #17251c; --muted: #5d6f63; --line: #e2ece5; --bg: #f4f7f5; --card: #ffffff;
  --shadow: 0 2px 12px rgba(10, 60, 30, .08);
}
body { background: var(--bg); }
h2::before { background: var(--red); }
/* হেডার */
.topbar { gap: 8px; padding-left: 8px; padding-right: 10px; background: linear-gradient(135deg, #0b8a43, #06582a); }
.menubtn { background: transparent; border: 0; color: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.menubtn:active { background: rgba(255,255,255,.15); }
.brand { flex: 1; justify-content: flex-start; }
.brand img { background: #fff; border-radius: 10px; }
.bell { background: rgba(255,255,255,.12); color: #fff; }
.badge { background: var(--red); border: 2px solid #fff; }
.logoutbtn { border-color: rgba(255,255,255,.6); }
/* সাইড মেনু */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 25, 12, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.2); transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; display: flex; flex-direction: column; padding-bottom: calc(14px + var(--safe-b)); }
.drawer.open .drawer-panel { transform: none; }
.dr-user { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 16px; background: linear-gradient(135deg, #0b8a43, #06582a); color: #fff; }
.dr-user img, .dr-user .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; flex-shrink: 0; }
.dr-user .avatar { color: var(--green); }
.dr-user b { display: block; font-size: 1.02rem; }
.dr-user span { font-size: .82rem; opacity: .85; }
.dr-links { display: flex; flex-direction: column; padding: 8px; }
.dr-links a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.dr-links a:hover, .dr-links a:active { background: var(--green-soft); }
.dr-links .ic { width: 26px; text-align: center; font-size: 1.1rem; }
.dr-sec { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 12px 20px 4px; }
.dr-lang { display: flex; gap: 8px; padding: 6px 16px; }
.dr-lang button { flex: 1; font: inherit; padding: 9px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.dr-lang button.on { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
.dr-logout { margin: 14px 16px 0; font: inherit; font-weight: 700; padding: 11px; border-radius: 12px; border: 1.5px solid var(--red); background: var(--red-soft); color: var(--red); cursor: pointer; }
.dr-foot { margin-top: auto; padding: 18px 16px 4px; font-size: .75rem; color: var(--muted); text-align: center; }
body.noscroll { overflow: hidden; }
/* নিচের মেনু */
.bottomnav { background: #fff; }
.bottomnav a.active { color: var(--green); }
.bottomnav a.active svg { background: transparent; padding: 0; width: 24px; fill: var(--green); }
.bottomnav a.active::after { content: ''; position: absolute; bottom: -2px; left: 22%; right: 22%; height: 3px; border-radius: 3px; background: var(--red); }
@media (min-width: 900px) { .bottomnav a.active::after { bottom: -4px; } }
/* বোতাম ও কার্ড */
.btn.y { background: var(--red); color: #fff; }
.btn.ghost { background: var(--green-soft); color: var(--green-dark); }
.stat { border-left-color: var(--green); }
.stat.y { border-left-color: #1fa458; }
.stat .val { color: var(--green-dark); }
.stat.big { background: linear-gradient(120deg, #0b8a43 0%, #06582a 70%); }
.stat.big .lbl, .stat.big .sub { color: #d6f5e1; }
.stat.big .val { color: #fff; }
.stat.big.gold { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 80%); color: #fff; }
.stat.big.gold .lbl, .stat.big.gold .sub { color: #ffe3e7; }
.stat.big.gold .val { color: #fff; }
.mini.gold { background: var(--green-soft); }
.avatar { background: #fff; color: var(--green); border: 2px solid var(--green); }
img.avatar { border-color: var(--green); background: var(--green-soft); }
.tag.y { background: #fff1e6; color: #b4480b; }
.pill { background: var(--red-soft); color: var(--red); }
.alert { background: var(--red-soft); border-color: #f7c6cd; color: var(--red-dark); }
.alert.ok { background: var(--green-soft); border-color: #bfe6cc; color: var(--green-dark); }
.notice { border-left-color: var(--green); }
.notice.new { background: #f0faf3; border-left-color: var(--red); }
.profit-fund { border: 2px solid #bfe6cc; background: #fff; }
.note-6m { background: var(--red); color: #fff; }
.req-card { border-top-color: var(--red); }
th { background: var(--green); }
.langbtn { background: #fff; color: var(--green-dark); }
.hero { background: #fff; }
.hero h1 { color: var(--green-dark); text-shadow: 0 2px 0 #fff; }
.hero p { background: var(--red); }
.install-hero { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 90%); color: #fff; box-shadow: 0 6px 20px rgba(215,38,61,.3); }
.install-hero .ih-how { background: rgba(255,255,255,.18); }
.install-hero .btn { background: #fff; color: var(--red); }
.install-hero img { background: #fff; }
/* সদস্যের প্রোফাইল কার্ড (নমুনার মতো) */
.pcard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-photo { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--green); padding: 3px; flex-shrink: 0; background: #fff; }
.pc-photo img, .pc-photo span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 2rem; font-weight: 700; }
.pc-info { flex: 1; min-width: 0; }
.pc-info h1 { margin: 0 0 2px; font-size: 1.25rem; color: var(--green-dark); line-height: 1.25; }
.pc-meta { font-size: .86rem; color: var(--muted); }
.pc-meta b { color: var(--ink); }
.pc-status { align-self: flex-start; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pc-actions { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 0; margin-top: 14px; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.pc-actions .act { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; border-left: 1.5px solid var(--line); }
.pc-actions .act:first-child { border-left: 0; }
.pc-actions .act svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; }
.pc-actions .act.dark { background: #111; color: #fff; }
.pc-actions .act.dark svg { fill: #fff; }
@media (max-width: 400px) { .pc-actions .act { font-size: .8rem; flex-direction: column; gap: 2px; } }
.total-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #0b8a43 0%, #06582a 75%); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.total-banner::after { content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 160px; background: rgba(255,255,255,.08); transform: skewX(-25deg); }
.tb-icon { width: 54px; height: 54px; border-right: 2px solid rgba(255,255,255,.35); padding-right: 14px; display: grid; place-items: center; }
.tb-icon svg { width: 40px; height: 40px; fill: #fff; }
.tb-text span { display: block; font-size: .95rem; opacity: .9; }
.tb-text b { font-size: 2rem; line-height: 1.1; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.tcard span { font-size: .8rem; color: var(--muted); }
.tcard b { font-size: 1.15rem; color: var(--green-dark); }
.tcard b.red { color: var(--red); }
.tcard small { font-size: .7rem; color: var(--muted); }
@media (max-width: 380px) { .tcard b { font-size: 1rem; } }
.lastpay { background: var(--green-soft); border: 1px solid #c9ead5; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; color: var(--green-dark); }
/* অ্যাডমিন: সাইড মেনু */
.adm-layout { display: block; }
.adm-side { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow: visible; padding: 0; margin-bottom: 14px; }
.adm-side button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 12px; font-size: .85rem; box-shadow: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.adm-side button.active { background: var(--green); color: #fff; border-color: var(--green); }
.adm-side .ic { font-size: 1rem; }
@media (min-width: 980px) {
  .view { max-width: 1180px; }
  .adm-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
  .adm-side { grid-template-columns: 1fr; position: sticky; top: 76px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
  .adm-side button { justify-content: flex-start; padding: 11px 12px; font-size: .95rem; border: 0; }
  .adm-side button:not(.active):hover { background: var(--green-soft); }
}
/* লাভ বণ্টন */
.cycle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0; }
.cycle-grid > div { background: var(--green-soft); border-radius: 12px; padding: 10px; }
.cycle-grid span { display: block; font-size: .8rem; }
.ps-table td { white-space: normal; vertical-align: middle; }
.ps-table tr.dim { opacity: .45; }
.ps-table input[type=checkbox] { width: 20px; height: 20px; }
.ps-table input.amt { width: 100px; }
.dist { border-bottom: 1px dashed var(--line); }
.dist-edit { background: var(--green-soft); border-radius: 12px; padding: 10px; margin: 6px 0 12px; }
.dist-edit input.amt { width: 100px; }
.hero .hero-text { position: static; padding: 16px 16px 4px; }
.hero img { aspect-ratio: 800/400; }
@media (max-width: 640px) {
  .ps-table { font-size: .82rem; }
  .ps-table th, .ps-table td { padding: 7px 4px; }
  .ps-table .who img, .ps-table .who .avatar, .ps-table .who .muted { display: none; }
  .ps-table .who b { font-weight: 600; }
  .ps-table input.amt { width: 74px; padding: 6px; }
  .ps-table input[type=checkbox] { width: 18px; height: 18px; }
}
.hero { display: flex; flex-direction: column; }
.hero .hero-text { order: -1; padding-bottom: 0; }

/* v8 — নীতিমালা ও যোগাযোগ */
.policy { padding: 20px 18px; line-height: 1.85; }
.policy .pol-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--green-soft); padding-bottom: 12px; margin-bottom: 6px; }
.policy .pol-head img { border-radius: 14px; }
.policy .pol-head b { display: block; color: var(--green-dark); font-size: 1.1rem; }
.policy .pol-head span { font-size: .82rem; color: var(--muted); }
.policy .pol-title { font-size: 1.4rem; color: var(--green-dark); margin: 14px 0 4px; line-height: 1.4; }
.policy h1 + p { color: var(--red); font-weight: 600; margin-top: 0; }
.policy h2 { margin: 22px 0 8px; font-size: 1.08rem; color: var(--green-dark); }
.policy p { margin: 6px 0; }
.policy p.clause { display: flex; gap: 8px; }
.policy p.clause .cn { color: var(--green); min-width: 34px; flex-shrink: 0; }
.policy ul { margin: 6px 0 6px 6px; padding-left: 18px; }
.policy li { margin: 3px 0; }
.policy li::marker { color: var(--red); }
.pol-tools { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pol-edit { font-family: inherit; font-size: .95rem; line-height: 1.7; min-height: 420px; }
code { background: var(--green-soft); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.policy-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border: 2px solid #bfe6cc; max-width: 460px; margin: 0 auto 16px; }
.policy-link .pl-ic { font-size: 2rem; }
.policy-link b { display: block; color: var(--green-dark); font-size: 1.05rem; }
.policy-link small { color: var(--muted); }
.contact-card { max-width: 960px; }
#landContact .contact-card { max-width: 460px; margin: 0 auto 18px; }
.cc-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.cc-row:last-child { border-bottom: 0; }
.cc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.cc-row small { display: block; color: var(--muted); font-size: .78rem; }
.cc-row b { font-weight: 600; word-break: break-word; }
label.check.agree { align-items: flex-start; font-size: .9rem; }
label.check.agree input { margin-top: 3px; flex-shrink: 0; }
@media print {
  .topbar, .bottomnav, .drawer, .no-print, .toast, #installSlot { display: none !important; }
  body { background: #fff; }
  .view { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
  .policy { padding: 0; }
  .policy h2 { break-after: avoid; }
}

/* v9 — পরিচালনা পরিষদ */
.cm-hero { text-align: center; background: linear-gradient(135deg, #0b8a43, #06582a); color: #fff; border-radius: 20px; padding: 22px 16px; margin-bottom: 14px; }
.cm-hero h1 { margin: 0; font-size: 1.4rem; }
.cm-hero p { margin: 6px 0 0; opacity: .9; font-size: .92rem; }
.cm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .cm-grid { grid-template-columns: repeat(3, 1fr); } }
.cm-card { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cm-card.lead { grid-column: 1 / -1; border: 2px solid var(--green); }
.cm-rank { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.cm-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green); padding: 2px; background: #fff; }
.cm-card.lead .cm-photo { width: 120px; height: 120px; }
.cm-photo.ph { display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: var(--green); background: var(--green-soft); }
.cm-photo.big { width: 140px; height: 140px; }
.cm-photo.sm { width: 64px; height: 64px; font-size: 1.4rem; }
.cm-name { font-size: 1.02rem; color: var(--green-dark); margin-top: 6px; line-height: 1.3; }
.cm-pos { display: inline-block; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: .82rem; padding: 2px 12px; border-radius: 999px; }
.cm-phone { font-size: .9rem; color: var(--ink); text-decoration: none; font-weight: 600; margin-top: 2px; }
.cm-more { margin-top: 8px; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(5, 25, 12, .55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { position: relative; background: #fff; border-radius: 22px; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px 18px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green-soft); font-size: 1rem; cursor: pointer; }
.cm-detail { text-align: center; }
.cm-dname { justify-content: center; margin: 10px 0 4px; color: var(--green-dark); }
.cm-dname::before { display: none; }
.cm-duty { text-align: left; background: var(--green-soft); border-radius: 12px; padding: 10px 12px; margin: 14px 0 8px; }
.cm-duty p { margin: 4px 0 0; line-height: 1.7; }
.cm-contact { text-align: left; }
.cm-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.btn.wa { background: #25d366; color: #fff; }
.committee-btn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 2px solid #bfe6cc; border-radius: 14px; padding: 12px 14px; margin: -6px 0 18px; text-decoration: none; color: var(--ink); }
.committee-btn span { font-size: 1.5rem; }
.committee-btn b { color: var(--green-dark); }
.committee-btn small { color: var(--muted); margin-left: auto; }
.cm-form-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }

/* v10 */
.landing { max-width: 480px; margin: 0 auto; }
.landing .hero { margin-bottom: 14px; }
.landing .login-card { max-width: none; margin: 0 0 8px; }
.install-mini { display: flex; align-items: center; gap: 10px; background: #eaf6f9; border: 1px solid #cde8ee; color: #10505e; border-radius: 14px; padding: 8px 10px; margin-bottom: 12px; }
.install-mini img { border-radius: 10px; flex-shrink: 0; }
.install-mini .im-text { flex: 1; min-width: 0; line-height: 1.3; }
.install-mini .im-text b { display: block; font-size: .92rem; }
.install-mini .im-text span { font-size: .78rem; opacity: .85; }
.install-mini .btn { padding: 6px 12px; font-size: .82rem; background: #1b7f95; color: #fff; }
.install-mini .btn.ghost { background: #fff; color: #10505e; border: 1px solid #cde8ee; }
.install-how { background: #f3fafc; border: 1px dashed #cde8ee; color: #10505e; border-radius: 12px; padding: 8px 12px; margin: -6px 0 12px; font-size: .85rem; }
.view { padding-bottom: 12px; }
.sitefoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; max-width: 960px; margin: 0 auto; padding: 14px 14px calc(86px + var(--safe-b)); font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
body.guest .sitefoot { padding-bottom: calc(18px + var(--safe-b)); }
.sitefoot a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.sitefoot a:hover { text-decoration: underline; }
@media (min-width: 900px) { .sitefoot { padding-bottom: 18px; } }
.pick-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.cam { background: var(--green); color: #fff; }
.filebox.changed { border-color: var(--green); background: var(--green-soft); }
.modal-box .contact-card { box-shadow: none; padding: 0; margin: 0; }

/* v10.1 — ভার্সন */
.sitefoot .ver { background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.verwarn { background: #fff4e5; color: #8a4b00; border-bottom: 1px solid #ffd8a8; padding: 8px 14px; font-size: .85rem; text-align: center; }
.sysinfo .ok { color: var(--green); }
.sysinfo .bad { color: var(--red); }
