/* সমিতি ব্যবস্থাপনা — গাঢ় নেভি + সোনালি প্রিমিয়াম নকশা
   (রেফারেন্স বোর্ড: al-ittifaq-all-pages.png — ১০ পেজ, এক মোবাইল
   স্ক্রিন প্রতি পেজ। আগের সাদা-সবুজ মিনিমাল দিকটি এই নকশা দিয়ে
   বদলে গেছে; কার্যকারিতা একই আছে।)
   প্যালেট: নেভি #0F1B2D (হিরো/বোতাম/মার্ক), সোনালি #C9A227
   (ট্যাগলাইন/অ্যাকসেন্ট), পাতা #F2F3F5, কার্ড সাদা, নরম ছায়া।
   শিরোনামে Bornomala, মূল লেখায় Hind Siliguri। মোবাইল-ফার্স্ট। */

@font-face {
  font-family: 'Bornomala';
  src: url('fonts/Bornomala-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bornomala';
  src: url('fonts/Bornomala-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('fonts/HindSiliguri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('fonts/HindSiliguri-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('fonts/HindSiliguri-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('fonts/HindSiliguri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0F1B2D;
  --brand-dark: #0A1424;
  --navy: #0F1B2D;
  --navy-soft: #1B2B45;
  --gold: #C9A227;
  --gold-dark: #A8861B;
  --gold-soft: #F7EFD2;
  --paper: #F2F3F5;
  --card: #FFFFFF;
  --ink: #101828;
  --muted: #667085;
  --line: #E4E7EC;
  --danger: #B42318;
  --warn: #B54708;
  --warn-bg: #FEF3E2;
  --ok: #067647;
  --ok-bg: #DCF5E3;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hind Siliguri', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
::selection { background: var(--gold-soft); }
h1, h2, h3, h4, .font-head { font-family: 'Bornomala', 'Hind Siliguri', sans-serif; line-height: 1.4; color: var(--navy); }
h1 { font-size: 30px; margin: 0 0 12px; }
h2 { font-size: 23px; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 10px; }
p { margin: 0 0 12px; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 17px; }

.container { max-width: 960px; margin: 0 auto; padding: 20px; }
.container.wide { max-width: 1120px; }
.narrow { max-width: 600px; margin: 0 auto; }
main > h1 { margin-bottom: 20px; }
.pad-bnav { padding-bottom: 96px; }

/* ---------- লোগো মার্ক: নেভি বৃত্তে সোনালি "আ" ---------- */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 24px; line-height: 1;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.logo-mark.lg { width: 64px; height: 64px; font-size: 34px; }
.logo-mark.xl { width: 88px; height: 88px; font-size: 46px; }
.logo-mark.on-light {
  background: #fff; color: var(--navy);
  box-shadow: 0 0 0 2px var(--gold);
}

/* ---------- টপ বার ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar .logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.topbar .title { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--navy); }
.topbar .subtitle { font-size: 13px; color: var(--muted); line-height: 1.3; }
.topbar .spacer { flex: 1; }
.bell {
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); flex: none;
}
.bell:hover { border-color: var(--navy); }
@media (max-width: 560px) {
  .topbar .title { font-size: 17px; }
  .topbar-inner { gap: 10px; }
}

/* ---------- বোতাম ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 12px;
  background: var(--navy); color: #fff; padding: 13px 24px;
  font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(201, 162, 39, .45); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: #F2F3F5; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #F7F7F7; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F2F3F5; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8F1B12; }
.btn-sm { padding: 9px 15px; font-size: 15px; border-radius: 10px; }
.btn-block { display: block; width: 100%; padding: 15px 24px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- কার্ড / গ্রিড ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  /* cols-2 (পরিসংখ্যান কার্ড) মোবাইলেও ২ কলাম থাকে — বোর্ডের মতো ২×২। */
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.stat .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 700; font-family: 'Bornomala', sans-serif; line-height: 1.3; margin-top: 4px; color: var(--navy); }
.stat .value.small { font-size: 21px; }
.stat .sub { font-size: 14px; color: var(--muted); }
.stat.accent {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.stat.accent .label { color: rgba(255, 255, 255, .7); }
.stat.accent .value { color: #fff; }
.stat.accent .sub { color: rgba(255, 255, 255, .7); }
.stat.gold-top { border-top: 3px solid var(--gold); }

/* ---------- ফর্ম ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 16px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #D0D5DD;
  border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 27, 45, .12); background: #fff;
}
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }

/* ---------- টেবিল ---------- */
.table-wrap {
  overflow-x: auto; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { font-weight: 700; background: #F9FAFB; color: var(--navy); white-space: nowrap; border-bottom: 2px solid var(--line); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.due td { background: var(--warn-bg); }
tr.left td { color: var(--muted); }

/* ---------- ট্যাব ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  border: 1px solid #D0D5DD; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 16px; font-weight: 600;
}
.tab:hover { border-color: var(--navy); }
.tab:active { transform: translateY(1px); }
.tab.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ---------- চিপ (ফিল্টার) ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  border: 1px solid #D0D5DD; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 600;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- ব্যাজ / নোটিশ ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.danger { background: #FEF3F2; color: var(--danger); border-color: transparent; }
.badge.muted { background: #F2F4F7; color: var(--muted); border-color: transparent; }
.badge.gold { background: var(--gold-soft); color: var(--gold-dark); border-color: transparent; }
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--navy);
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.notice.warn { border-left-color: var(--warn); }
.notice.danger { border-left-color: var(--danger); }
.notice p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- হোম পাতা: নেভি হিরো ---------- */
.hero {
  background: var(--navy); color: #fff;
  border-radius: 20px; padding: 28px 24px; margin-bottom: 18px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.hero h1 { color: #fff; font-size: 32px; margin: 14px 0 2px; }
.hero .tagline { color: var(--gold); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.hero .en {
  color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 14px;
}
.hero .meta-line { color: rgba(255, 255, 255, .75); font-size: 16px; margin: 0 0 16px; }
.hero .deposit-label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.hero .deposit-value {
  font-family: 'Bornomala', sans-serif; font-weight: 700;
  font-size: 44px; line-height: 1.2; color: var(--gold); margin: 2px 0;
}
.hero .deposit-sub { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 0 0 20px; }
.hero .btn-row { justify-content: flex-start; }
.hero-chips {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 0 0 18px;
}
.hero-chips .chip-box {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 12px 10px; text-align: center;
}
.hero-chips .label { font-size: 12px; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hero-chips .value { font-size: 17px; font-weight: 700; color: #fff; font-family: 'Bornomala', sans-serif; line-height: 1.35; margin-top: 2px; }
@media (max-width: 420px) {
  .hero-chips .value { font-size: 15px; }
  .hero h1 { font-size: 28px; }
}
.facts {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.facts > div { padding: 20px 22px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.facts .value { font-size: 20px; font-weight: 700; font-family: 'Bornomala', sans-serif; line-height: 1.35; margin-top: 4px; color: var(--navy); }
.facts .sub { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: none; border-top: 1px solid var(--line); }
}
/* সদস্য পোর্টালের নেভি কার্ড */
.member-hero {
  background: var(--navy); color: #fff;
  border-radius: 20px; padding: 26px 24px; margin-bottom: 18px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.member-hero .greet { font-size: 15px; color: rgba(255, 255, 255, .7); }
.member-hero .name { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.3; margin: 2px 0; }
.member-hero .member-no { color: var(--gold); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.member-hero .label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.member-hero .value { font-size: 40px; font-weight: 700; font-family: 'Bornomala', sans-serif; line-height: 1.25; color: #fff; margin-top: 2px; }
.member-hero .sub { font-size: 15px; color: rgba(255, 255, 255, .7); }
.member-hero .status-pill {
  display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
  font-size: 16px; font-weight: 700;
}
.member-hero .status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.member-hero .status-pill.warn { background: var(--warn-bg); color: var(--warn); }
.member-hero .status-note { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 8px; }
/* পুরনো balance-hero ক্লাসটি নেভি কার্ড হিসেবেই রাখা হয়েছে */
.balance-hero {
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 26px; margin-bottom: 16px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.balance-hero .label { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.balance-hero .value { font-size: 40px; font-weight: 700; font-family: 'Bornomala', sans-serif; line-height: 1.25; color: #fff; margin-top: 4px; }
.balance-hero .sub { font-size: 15px; color: rgba(255, 255, 255, .7); }
/* দ্রুত আইকন (সদস্য পোর্টাল) */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 18px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 6px 12px; color: var(--navy); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); text-align: center;
}
.quick-item:hover { border-color: var(--navy); text-decoration: none; }
.quick-item .q-ic {
  width: 52px; height: 52px; border-radius: 50%; background: #F2F4F7;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
/* খতিয়ান/তালিকার সারি */
.ledger-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .l-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: #F2F4F7;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.ledger-row .l-main { flex: 1; min-width: 0; }
.ledger-row .l-title { font-weight: 700; font-size: 17px; color: var(--navy); }
.ledger-row .l-sub { font-size: 14px; color: var(--muted); }
.ledger-row .l-right { text-align: right; flex: none; }
.ledger-row .l-amount { font-weight: 700; font-size: 17px; color: var(--navy); white-space: nowrap; }
/* সদস্য সারি (অ্যাডমিন তালিকা) */
.member-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.member-row .btn-col { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.member-row:last-child { border-bottom: none; }
.member-row.left { opacity: .6; }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 20px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.avatar.gold { background: var(--gold); color: var(--navy); }
.avatar-lg {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 26px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
img.avatar, img.avatar-lg { object-fit: cover; }
.member-hero .mh-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.member-hero .mh-top .avatar-lg { border: 2px solid rgba(255, 255, 255, .35); }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-head .p-name { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); }
/* রসিদের সারি (সদস্য পোর্টাল) */
.receipt-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.receipt-row:last-child { border-bottom: none; }
.receipt-row .r-no { font-weight: 700; font-size: 17px; color: var(--navy); }
.receipt-row .r-amt { font-weight: 700; font-size: 18px; color: var(--navy); margin-left: auto; white-space: nowrap; }
/* নেভি বোতাম (লগইন / সদস্য হওয়া) */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1B2F47; }
.member-row .m-main { flex: 1; min-width: 0; }
.member-row .m-name { font-weight: 700; font-size: 17px; color: var(--navy); }
.member-row .m-sub { font-size: 14px; color: var(--muted); }
.member-row .m-right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.member-row .m-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rules-list { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules-list li {
  counter-increment: rule; position: relative;
  padding-left: 48px; margin-bottom: 16px; min-height: 34px;
}
.rules-list li::before {
  content: counter(rule, bengali);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rules-list li:last-child { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 17px; }
.kv dt { font-weight: 700; color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }
.samity-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.samity-card {
  display: flex; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink);
  box-shadow: var(--shadow);
}
.samity-card:hover { border-color: var(--navy); text-decoration: none; }
.samity-card img {
  width: 60px; height: 60px; object-fit: contain; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.samity-card .name { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--navy); }
.samity-card .meta { font-size: 14px; color: var(--muted); }
/* সুপার-অ্যাডমিন সমিতি কার্ড */
.samity-card2 {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.samity-card2 .sc-head { display: flex; align-items: center; gap: 12px; }
.samity-card2 .sc-name { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 19px; color: var(--navy); line-height: 1.35; }
.samity-card2 .sc-slug { font-size: 14px; color: var(--muted); }
.samity-card2 .sc-meta { font-size: 15px; color: var(--muted); margin: 10px 0; }
.samity-card2 .sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- লগইন ---------- */
.login-card { padding: 32px 26px; }
.login-card .login-mark { display: flex; justify-content: center; margin: 2px 0 16px; }
.login-mark .logo { width: 64px; height: 64px; object-fit: contain; }
.login-logo {
  display: block; width: 96px; height: 96px; object-fit: contain;
  margin: 2px auto 16px; background: #fff;
  border: 2px solid var(--navy); border-radius: 50%; padding: 8px;
}
.login-card > h1, .login-card > h2, .login-card > .muted { text-align: center; }
.login-card > .muted { margin-bottom: 22px; }
.login-toggle {
  display: flex; background: #EEF0F3; border-radius: 999px; padding: 4px;
  margin: 0 auto 22px; max-width: 340px;
}
.login-toggle .toggle {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px;
  font-weight: 700; font-size: 16px; color: var(--ink);
}
.login-toggle .toggle:hover { text-decoration: none; }
.login-toggle .toggle.active { background: var(--navy); color: #fff; }

/* ---------- নিচের নেভিগেশন ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 8px rgba(16, 24, 40, .05);
}
.bottomnav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 4px; color: var(--muted); font-size: 12px; font-weight: 600;
  border-top: 3px solid transparent; background: none; border-left: none; border-right: none; border-bottom: none;
  text-decoration: none;
}
.bottomnav .bn-item:hover { color: var(--navy); text-decoration: none; }
.bottomnav .bn-item.active { color: var(--navy); border-top-color: var(--gold); }
.bottomnav .bn-item svg { width: 22px; height: 22px; }
/* ভাসমান জমা বোতাম (অ্যাডমিন ড্যাশবোর্ড) */
.fab {
  position: fixed; right: 16px; bottom: 86px; z-index: 25;
  background: var(--navy); color: #fff; border: none; border-radius: 999px;
  padding: 13px 20px; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 27, 45, .35);
}
.fab:hover { background: var(--brand-dark); }

/* ---------- রসিদ ---------- */
.receipt {
  max-width: 640px; margin: 0 auto; background: #fff;
  border: 2px solid var(--navy); border-radius: 14px; padding: 24px;
  font-size: 17px;
}
.receipt .r-head { text-align: center; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 14px; }
.receipt .r-head img { width: 68px; }
.receipt .r-head .logo-mark { margin-bottom: 8px; }
.receipt .r-head h2 { margin: 6px 0 0; font-size: 24px; }
.receipt .r-no { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; }
.receipt table { font-size: 17px; }
.receipt table td:first-child { width: 140px; font-weight: 600; color: var(--muted); }
.receipt .sign-row { display: flex; justify-content: space-between; margin-top: 36px; gap: 8px; }
.receipt .sign { text-align: center; font-size: 15px; border-top: 1px solid var(--ink); padding-top: 4px; min-width: 110px; }
.receipt-amount-box {
  background: #F2F4F7; border-radius: 12px; padding: 18px; text-align: center; margin: 14px 0;
}
.receipt-amount-box .ra-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.receipt-amount-box .ra-value { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1.25; }
.receipt-amount-box .ra-words { font-size: 15px; color: var(--muted); }

/* ---------- নোটিশ / রিমাইন্ডার / একসাথে জমা ---------- */
.notice-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.notice-item:last-child { border-bottom: none; padding-bottom: 0; }
.notice-item:first-child { padding-top: 0; }
.notice-title { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); }
.notice-body { font-size: 17px; margin-top: 4px; white-space: pre-wrap; }
.notice-date { margin-top: 6px; }
.month-status { font-size: 18px; }
.month-status .big { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.35; }
.check-list { display: grid; gap: 10px; margin-bottom: 20px; }
.check-list .check-line { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.check-line input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--navy); }

/* ---------- রিমাইন্ডার তালিকা (টেবিল নয় — মোবাইলে বোতাম যেন না লুকায়) ---------- */
.rem-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rem-row:last-child { border-bottom: none; }
.rem-info { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.rem-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- লোডিং / টোস্ট ---------- */
.loading-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--navy);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 16px; opacity: 0; transition: transform .25s, opacity .25s;
  z-index: 100; max-width: 92vw; text-align: center; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--danger); }
#print-area { display: none; }

/* ---------- প্রিন্ট: শুধু রসিদ ---------- */
@media print {
  body { background: #fff; }
  body.printing #app, body.printing .topbar, body.printing #toast { display: none !important; }
  body.printing #print-area { display: block !important; }
  #print-area .receipt { border: 2px solid #000; max-width: 100%; }
  .bottomnav, .fab { display: none !important; }
}

/* ============================================================
   ডিজাইন ভ্যারিয়েন্ট ২ — সবুজ (দ্বিতীয় নমুনা:
   al-ittifaq-design2-new-pages.png — ৫ পেজ)
   সবুজ #0B7A5C হিরো/বোতাম/মার্ক, সোনালি ট্যাগলাইন, সাদা কার্ড।
   ভ্যারিয়েন্ট ১ (নেভি+সোনালি) অপরিবর্তিত — applyBrand
   documentElement-এ data-variant="green" বসালে শুধু এই
   নিয়মগুলো চালু হয়। স্লাইডার, ৯-টাইল গ্রিড, টগল সুইচ,
   অ্যানিমেশন — সব এই ভ্যারিয়েন্টের সাথেই এসেছে।
   ============================================================ */
html[data-variant="green"] {
  --brand: #0B7A5C;
  --brand-dark: #086349;
  --navy: #0B7A5C;
  --navy-soft: #0E8A68;
  --gold: #D99A26;
  --gold-dark: #B57E14;
  --gold-soft: #FBF0D3;
}
html[data-variant="green"] .logo-mark { background: var(--brand); color: #fff; }
html[data-variant="green"] .logo-mark.on-light { background: #fff; color: var(--brand); box-shadow: 0 0 0 2px var(--gold); }
html[data-variant="green"] .topbar .title { color: var(--brand); }
html[data-variant="green"] .btn-navy:hover { background: #0E8A68; }
html[data-variant="green"] .field input:focus,
html[data-variant="green"] .field select:focus,
html[data-variant="green"] .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 122, 92, .14);
}
html[data-variant="green"] .check-line input[type="checkbox"] { accent-color: var(--brand); }

/* ---------- সবুজ হিরো: স্লাইডার কার্ড ---------- */
.slider {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--brand); color: #fff; margin-bottom: 18px;
  min-height: 150px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.slider .slide {
  display: none; padding: 24px; align-items: center; gap: 16px;
}
.slider .slide.active { display: flex; }
.slider .slide .s-main { flex: 1; min-width: 0; }
.slider .slide .s-title { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.35; }
.slider .slide .s-sub { font-size: 15px; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.slider .slide .s-ic {
  width: 72px; height: 72px; flex: none; border-radius: 16px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.slider .slide img.s-img {
  width: 100%; height: 150px; object-fit: cover; display: block;
}
.slider .slide.has-img { display: none; padding: 0; flex-direction: column; align-items: stretch; gap: 0; }
.slider .slide.has-img.active { display: flex; }
.slider .slide.has-img .s-cap { padding: 16px 20px; }
.slider .slider-dots {
  position: absolute; left: 20px; bottom: 12px; display: flex; gap: 6px;
}
.slider .slider-dots button {
  width: 22px; height: 6px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, .4); padding: 0;
}
.slider .slider-dots button.active { background: #fff; }
/* স্লাইড বদলের ধরন */
.slider[data-transition="fade"] .slide { animation: slide-fade .5s ease both; }
.slider[data-transition="slide"] .slide { animation: slide-in-x .5s ease both; }
.slider[data-transition="zoom"] .slide { animation: slide-zoom .5s ease both; }
@keyframes slide-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-x { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- ৯-টাইল গ্রিড (সবুজ হোম) ---------- */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 18px;
}
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 6px 12px; color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); text-align: center;
}
.tile:hover { border-color: var(--brand); text-decoration: none; }
.tile .t-ic {
  width: 52px; height: 52px; border-radius: 50%; background: #E6F4EE;
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.tile .t-ic svg { width: 24px; height: 24px; }

/* ---------- টগল সুইচ (সুবিধা চালু/বন্ধ, স্লাইডার, অ্যানিমেশন) ---------- */
.switch {
  position: relative; display: inline-block; width: 54px; height: 32px; flex: none;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #D0D5DD;
  transition: background .2s; cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(201, 162, 39, .45); outline-offset: 2px; }
.toggle-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: #F2F4F7;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.toggle-row .t-main { flex: 1; min-width: 0; }
.toggle-row .t-title { font-weight: 700; font-size: 17px; color: var(--navy); }
.toggle-row .t-sub { font-size: 14px; color: var(--muted); }

/* ---------- অ্যানিমেশন ধরন বাছাই (কার্ড) ---------- */
.anim-pick {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.anim-card {
  border: 2px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 16px 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink);
}
.anim-card:hover { border-color: var(--navy); }
.anim-card.active { border-color: var(--brand); background: #F2FBF7; color: var(--navy); }
.anim-card .a-demo {
  height: 54px; border-radius: 10px; background: #F2F4F7; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.anim-card .a-demo .a-block { width: 44px; height: 26px; border-radius: 6px; background: var(--brand); }
.anim-card .a-demo .a-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); }
.anim-card .a-demo .a-bar { width: 70%; height: 8px; border-radius: 999px; background: #E4E7EC; overflow: hidden; }
.anim-card .a-demo .a-bar i { display: block; height: 100%; width: 60%; background: var(--brand); border-radius: 999px; }
.anim-card[data-anim="fade-up"] .a-block { animation: anim-fade-up 1.4s ease infinite; }
.anim-card[data-anim="slide-in"] .a-block { animation: anim-slide-in 1.4s ease infinite; }
.anim-card[data-anim="zoom"] .a-block { animation: anim-zoom 1.4s ease infinite; }
.anim-card[data-anim="bounce"] .a-dot { animation: anim-bounce 1.4s ease infinite; }
.anim-card[data-anim="shimmer"] .a-bar {
  background: linear-gradient(90deg, #E4E7EC 0%, #B9E8D4 50%, #E4E7EC 100%);
  background-size: 200px 100%; background-repeat: no-repeat;
  animation: anim-shimmer 1.6s linear infinite;
}
.anim-card[data-anim="progress"] .a-bar i { animation: anim-progress 1.6s ease infinite; }

/* ---------- অ্যানিমেশন: পাতার কার্ডে প্রয়োগ ---------- */
@keyframes anim-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes anim-slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes anim-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes anim-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
@keyframes anim-shimmer {
  from { background-position: -200px 0; }
  to { background-position: 200px 0; }
}
@keyframes anim-progress { from { width: 8%; } to { width: 100%; } }
html[data-anim="fade-up"] main .card, html[data-anim="fade-up"] main .hero,
html[data-anim="fade-up"] main .member-hero, html[data-anim="fade-up"] main .stat,
html[data-anim="fade-up"] main .slider { animation: anim-fade-up .45s ease both; }
html[data-anim="slide-in"] main .card, html[data-anim="slide-in"] main .hero,
html[data-anim="slide-in"] main .member-hero, html[data-anim="slide-in"] main .stat,
html[data-anim="slide-in"] main .slider { animation: anim-slide-in .45s ease both; }
html[data-anim="zoom"] main .card, html[data-anim="zoom"] main .hero,
html[data-anim="zoom"] main .member-hero, html[data-anim="zoom"] main .stat,
html[data-anim="zoom"] main .slider { animation: anim-zoom .4s ease both; }
html[data-anim="bounce"] main .card, html[data-anim="bounce"] main .hero,
html[data-anim="bounce"] main .member-hero, html[data-anim="bounce"] main .stat,
html[data-anim="bounce"] main .slider { animation: anim-bounce .6s ease both; }
html[data-anim="shimmer"] main .hero::after, html[data-anim="shimmer"] main .member-hero::after {
  content: ""; display: block; height: 4px; border-radius: 999px; margin-top: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  background-size: 200px 100%; background-repeat: no-repeat;
  animation: anim-shimmer 1.8s linear infinite;
}
html[data-anim="progress"] body::before {
  content: ""; position: fixed; left: 0; top: 0; height: 4px; z-index: 60;
  background: var(--gold); animation: anim-progress .9s ease both;
}
html[data-anim="progress"] main .card, html[data-anim="progress"] main .hero,
html[data-anim="progress"] main .member-hero { animation: anim-fade-up .4s ease both; }
html[data-anim="off"] * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-anim] * { animation: none !important; }
}

/* ---------- কমিটি / গ্যালারি (সবুজ হোম) ---------- */
.committee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.committee-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow);
}
.committee-card .c-name { font-family: 'Bornomala', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); margin-top: 8px; }
.committee-card .c-role { font-size: 14px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
.gallery-item .g-cap { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- ব্র্যান্ডিং আপলোড সারি ---------- */
.brand-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.brand-row:last-child { border-bottom: none; }
.brand-row .b-prev {
  width: 72px; height: 72px; flex: none; border: 1.5px dashed #D0D5DD; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; background: #F9FAFB; overflow: hidden;
}
.brand-row .b-prev img { width: 100%; height: 100%; object-fit: contain; }
.brand-row .b-prev.wide { width: 120px; height: 56px; }
.brand-row .b-prev.small { width: 48px; height: 48px; }
.brand-row .b-main { flex: 1; min-width: 180px; }
.brand-row .b-title { font-weight: 700; font-size: 17px; color: var(--navy); }
.brand-row .b-size { font-size: 14px; color: var(--gold-dark); font-weight: 600; }
.brand-row .b-sub { font-size: 14px; color: var(--muted); }
