/* ═══ EARN IG 2026 — White UI design system ═══ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --ink: #14201b;
  --ink-2: #5b6b64;
  --line: #e4eae7;
  --line-2: #d2dcd7;
  --green: #006a4e;
  --green-2: #0b8f6a;
  --green-soft: #e8f4ef;
  --red: #c22b3d;
  --red-soft: #fdeef0;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --blue: #0e7490;
  --blue-soft: #e8f4f8;
  --violet: #7c3aed;
  --violet-soft: #f1eafd;
  --shadow: 0 1px 2px rgba(20, 32, 27, .05), 0 8px 24px -12px rgba(20, 32, 27, .18);
  --radius: 14px;
  --font-display: 'Noto Sans Bengali', sans-serif;
  --font-body: 'Noto Sans Bengali', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  margin: 0; max-width: 100%; overflow-x: hidden; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0 0 .4em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: #bfe3d6; }

/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: grid; place-items: center; letter-spacing: .5px;
}
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.deadline-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.deadline-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.dc-label { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; }
.dc-value { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  border-radius: 10px; padding: 9px 18px; border: 1.5px solid transparent;
  transition: all .18s ease; text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #005a42; box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ── tabs ── */
.tabs {
  position: sticky; top: 65px; z-index: 999; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; gap: 4px; overflow-x: auto; padding: 8px clamp(16px, 4vw, 40px);
  scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); background: none; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; transition: all .15s ease;
}
.tab:hover { background: var(--bg-soft); color: var(--ink); }
.tab.active { background: var(--green); color: #fff; }

/* ── layout ── */
main { width: 100%; max-width: 1240px; min-width: 0; margin: 0 auto; padding: 30px clamp(16px, 4vw, 40px) 80px; }
.pane { display: none; animation: fadein .3s ease; }
.pane.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; margin: 8px 0 4px; }
.page-sub { color: var(--ink-2); max-width: 900px; margin: 0 0 24px; }
.sec-title { font-size: 21px; font-weight: 700; margin: 38px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec-sub { font-size: 13.5px; font-weight: 500; color: var(--ink-2); font-family: var(--font-body); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card {
  min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin: 0; color: var(--ink); }
.card.good { border-top: 3px solid var(--green); }
.card.bad { border-top: 3px solid var(--red); }
.card.notes { border-top: 3px solid var(--blue); }
.card.warn { border-left: 4px solid var(--amber); background: var(--amber-soft); }
.card.appendix { border-left: 4px solid var(--violet); }
.src-line { color: var(--ink-2); font-size: 12.5px; margin-top: 12px; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 26px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-block; background: var(--green-soft); color: var(--green);
  font-weight: 600; font-size: 13px; border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.5px; margin: 0 0 12px; }
.hero-sub { color: var(--ink-2); font-size: 16.5px; max-width: 640px; margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--amber); background: var(--amber-soft); border-radius: 10px; padding: 10px 14px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.stat-card { background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.stat-label { font-size: 13px; opacity: .85; }
.stat-big { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 4px 0; }
.stat-sub { font-size: 12.5px; opacity: .8; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.mini-v { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--green); }
.mini-l { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* ── key facts ── */
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .15s ease; }
.kf:hover { transform: translateY(-2px); }
.kf .ico { font-size: 24px; }
.kf .v { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 6px 0 2px; color: var(--green); }
.kf .l { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.kf .s { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }

/* ── sectors ── */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.sector {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: all .18s ease; overflow: hidden;
}
.sector::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--sc, var(--green)); }
.sector:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sector .ico { font-size: 30px; margin-bottom: 8px; display: block; }
.sector .bn { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.sector .en { font-size: 11.5px; color: var(--ink-2); letter-spacing: .3px; text-transform: uppercase; }
.sector .d { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.discouraged {
  margin-top: 12px; background: var(--red-soft); border: 1px solid #f3c8ce; border-radius: var(--radius);
  padding: 12px 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.discouraged b { color: var(--red); }
.discouraged .d-item { background: #fff; border: 1px solid #f3c8ce; border-radius: 999px; padding: 2px 12px; font-size: 13px; }

/* ── timeline ── */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 26px 18px; }
.tl-item::before {
  content: ''; position: absolute; left: -28px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green);
}
.tl-item .tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-item .tl-ico { font-size: 20px; }
.tl-item h3 { font-size: 16.5px; margin: 0; }
.tl-item .tl-date { font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 1px 10px; border-radius: 999px; }
.tl-item p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 760px; }

/* ── lists ── */
.tick-list, .cross-list, .bullet-list { margin: 0; padding: 0; list-style: none; }
.tick-list li, .cross-list li, .bullet-list li { padding: 5px 0 5px 28px; position: relative; font-size: 14.5px; }
.tick-list li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.cross-list li::before { content: '✕'; position: absolute; left: 2px; color: var(--red); font-weight: 700; }
.bullet-list li::before { content: '•'; position: absolute; left: 6px; color: var(--blue); font-weight: 700; }

/* ── beneficiary rules ── */
.ben-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ben-rule { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.ben-rule .h { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.ben-rule p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* ── chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.big .chip { font-size: 14px; padding: 8px 16px; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 13.5px; color: var(--ink);
}
.chip.hl { background: var(--green-soft); border-color: #bfe3d6; color: var(--green); font-weight: 600; }

/* ── auto checks ── */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.auto-check { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.auto-check .code { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 1px 7px; margin-top: 3px; }
.auto-check .t { font-size: 13.5px; }

/* ── eval ── */
.eval-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .eval-wrap { grid-template-columns: 1fr; } }
.eval-bar { margin-bottom: 14px; }
.eval-bar .row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.eval-bar .marks { font-family: var(--font-display); font-weight: 800; }
.eval-bar .track { height: 12px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.eval-bar .fill { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.eval-details .ed { border-left: 3px solid var(--ec, var(--green)); background: #fff; border-radius: 0 10px 10px 0; padding: 8px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.eval-details .ed b { font-size: 14.5px; }
.eval-details .ed span { color: var(--ink-2); font-size: 13px; }
.eval-details .ed .pts { font-size: 13px; color: var(--ink); }

/* ── disbursement ── */
.disb-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 900px) { .disb-flow { grid-template-columns: repeat(2, 1fr); } }
.disb {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow);
}
.disb .pct { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--green); line-height: 1; }
.disb .bn { font-weight: 700; font-size: 14px; margin-top: 4px; }
.disb .d { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.disb .step-no { position: absolute; top: -10px; left: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.date-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.date-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.date-card .d { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--green); }
.date-card.hot .d { color: var(--red); }
.date-card .t { font-size: 13.5px; color: var(--ink-2); }
.indicator-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.indicator-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
.indicator-table th, .indicator-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.indicator-table th { background: var(--bg-soft); font-size: 12.5px; white-space: nowrap; }
.indicator-table tr:last-child td { border-bottom: 0; }
.ind-code { display: inline-block; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 1px 7px; font: 700 12px ui-monospace, monospace; }

/* ── journey ── */
.journey-stepper { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.js-btn {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 96px;
  transition: all .15s ease; font-family: var(--font-body);
}
.js-btn .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-2); }
.js-btn .t { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; text-align: center; }
.js-btn:hover { border-color: var(--sc, var(--green)); }
.js-btn.active { border-color: var(--sc, var(--green)); background: var(--scs, var(--green-soft)); }
.js-btn.active .num, .js-btn.active .t { color: var(--sc, var(--green)); }
.legend-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 20px; }
.lg { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.type-lg { color: var(--ink-2); font-weight: 400; }
.step-block { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow); display: none; }
.step-block.active { display: block; animation: fadein .25s ease; }
.step-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--scs, var(--green-soft)), transparent); }
.step-head .badge { width: 46px; height: 46px; border-radius: 12px; background: var(--sc, var(--green)); color: #fff; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.step-head h2 { margin: 0; font-size: 20px; }
.step-head .en { font-size: 12px; color: var(--ink-2); letter-spacing: .4px; text-transform: uppercase; }
.step-intro { padding: 12px 20px 0; color: var(--ink-2); font-size: 14.5px; }
.step-body { padding: 8px 20px 20px; }
.sub-sec h4 {
  font-size: 15px; margin: 22px 0 10px; padding: 8px 14px; background: var(--bg-soft);
  border-left: 4px solid var(--sc, var(--green)); border-radius: 0 8px 8px 0;
}
.fields { display: grid; gap: 8px; }
.field {
  display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  transition: border-color .15s ease;
}
.field:hover { border-color: var(--line-2); }
.field .no {
  font-family: ui-monospace, 'Cascadia Code', monospace; font-weight: 700; font-size: 13px;
  color: var(--sc, var(--green)); background: var(--scs, var(--green-soft)); border-radius: 7px;
  padding: 2px 0; text-align: center; margin-top: 2px;
}
.field .body .l { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field .body .en { color: var(--ink-2); font-size: 12px; font-weight: 400; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.field .limit { font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 0 8px; font-weight: 600; }
.field .ext { font-size: 11.5px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; }
.field .link { font-size: 12.5px; color: var(--amber); margin-top: 3px; display: flex; gap: 6px; }
.field .link::before { content: '🔗'; font-size: 11px; }

/* req badges */
.req-yes, .req-cond, .req-no, .req-auto {
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; letter-spacing: .2px;
}
.req-yes { background: var(--red-soft); color: var(--red); }
.req-cond { background: var(--amber-soft); color: var(--amber); }
.req-no { background: #e9f7ef; color: #1d8a50; }
.req-auto { background: #eef0f3; color: #55606b; }

/* ── number flow ── */
.numflow { display: grid; gap: 10px; }
.nf { display: grid; grid-template-columns: 1fr 28px 1fr 1.4fr; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nf { grid-template-columns: 1fr; } }
.nf .box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }
.nf .box.to { background: var(--green-soft); border-color: #bfe3d6; color: var(--green); }
.nf .arrow { text-align: center; color: var(--ink-2); font-size: 16px; }
.nf .rule { font-size: 12.5px; color: var(--ink-2); background: var(--bg-soft); border-radius: 10px; padding: 8px 14px; }

/* ── mistakes ── */
.mistake-table { display: grid; gap: 8px; }
.mk { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; }
@media (max-width: 760px) { .mk { grid-template-columns: 1fr; } }
.mk .w { color: var(--red); font-size: 13.5px; }
.mk .w::before { content: '✕ '; font-weight: 700; }
.mk .f { color: var(--green); font-size: 13.5px; }
.mk .f::before { content: '✓ '; font-weight: 700; }

/* ── calculator ── */
.calc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card.wide { margin-top: 18px; }
.fld { display: block; margin: 12px 0; }
.fld > span { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 4px; }
.fld input[type="number"], .fld input[type="text"] {
  width: 100%; font-family: var(--font-body); font-size: 16px; padding: 9px 12px;
  border: 1.5px solid var(--line-2); border-radius: 10px; outline: none; transition: border .15s;
}
.fld input:focus { border-color: var(--green); }
.fld-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fld.half { grid-column: span 1; }
.fld.third { margin: 6px 0; }
@media (max-width: 640px) { .fld-row { grid-template-columns: 1fr; } }
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.calc-out { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 10px; display: grid; gap: 6px; }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.co-row b { font-family: var(--font-display); }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 12px; }
.pill.ok { background: #e9f7ef; color: #1d8a50; }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.hint-line { font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }

/* budget table */
.budget-table { overflow-x: auto; }
.btable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.btable th, .btable td { border: 1px solid var(--line); padding: 7px 10px; text-align: right; }
.btable th { background: var(--bg-soft); font-weight: 700; font-size: 12.5px; text-align: center; }
.btable td:first-child, .btable td:nth-child(2) { text-align: left; }
.btable td input { width: 110px; text-align: right; font-family: var(--font-body); font-size: 14px; padding: 5px 8px; border: 1.5px solid var(--line-2); border-radius: 8px; }
.btable td input:focus { outline: none; border-color: var(--green); }
.btable tr.total td { background: var(--green-soft); font-weight: 800; }
.btable tr.zero td { background: #f4f4f5; color: var(--ink-2); }
.btable-wrap { overflow-x: auto; }
.budget-donut-wrap { display: flex; gap: 20px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
#budgetDonut { width: 200px; height: 200px; flex: 0 0 auto; }
.donut-legend { display: grid; gap: 5px; font-size: 12.5px; }
.donut-legend .dl { display: flex; align-items: center; gap: 8px; }
.donut-legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* quarterly table */
.qtable-wrap, .mtable-wrap { overflow-x: auto; margin-top: 10px; }
.qtable, .mtable { border-collapse: collapse; font-size: 13px; width: 100%; }
.qtable th, .qtable td, .mtable th, .mtable td { border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.qtable th, .mtable th { background: var(--bg-soft); font-size: 12px; text-align: center; position: sticky; top: 0; }
.qtable td:first-child, .mtable td:first-child { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 600; min-width: 170px; }
.qtable td input { width: 74px; text-align: center; font-family: var(--font-body); font-size: 13.5px; padding: 4px 2px; border: 1.5px solid var(--line-2); border-radius: 7px; }
.qtable td input:focus { outline: none; border-color: var(--green); }
.qtable td.sum { font-weight: 800; background: var(--green-soft); }
.qtable td.cut { outline: 2px solid var(--violet); outline-offset: -2px; }
.qchart-wrap { margin: 20px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
#qchart { width: 100%; height: auto; }
.qchart-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; margin-top: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.sw-ver { background: #0e7490; }
.sw-eng { background: #15803d; }
.sw-line { background: none; border-left: 3px dashed var(--violet); height: 12px; width: 4px; border-radius: 0; }
.mtable .inst { font-weight: 700; }
.mtable .rate { color: var(--green); font-weight: 700; }

/* ── map ── */
.map-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ms { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; box-shadow: var(--shadow); text-align: center; }
.ms .v { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--green); }
.ms .l { font-size: 12px; color: var(--ink-2); }
.map-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
#mapSearch {
  flex: 1 1 260px; font-family: var(--font-body); font-size: 15px; padding: 9px 14px;
  border: 1.5px solid var(--line-2); border-radius: 10px; outline: none;
}
#mapSearch:focus { border-color: var(--green); }
.div-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.div-chip { font-size: 13px; font-weight: 600; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-family: var(--font-body); }
.div-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.map-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
@media (max-width: 980px) { .map-layout { grid-template-columns: 1fr; } }
.map-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; position: relative; }
#bdmap { height: 640px; }
.map-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; max-height: 640px; }
.map-list-head { padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--font-display); font-size: 14.5px; background: var(--bg-soft); display: flex; justify-content: space-between; }
.map-list-body { overflow-y: auto; padding: 6px; }
.mli { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.mli:hover { background: var(--bg-soft); }
.mli .dv { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.mli .nm { font-weight: 600; }
.mli .dt { color: var(--ink-2); font-size: 12px; }
.leaflet-container { font-family: var(--font-body); background: #fff; }
.leaflet-popup-content { font-family: var(--font-body); margin: 10px 14px; line-height: 1.5; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 15px; }
.map-legend {
  position: absolute; z-index: 500; bottom: 12px; left: 12px; background: rgba(255,255,255,.95);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 11.5px;
  display: grid; gap: 3px; box-shadow: var(--shadow); max-width: 190px;
}
.map-legend .li { display: flex; gap: 7px; align-items: center; }

/* ── xlsx viewer ── */
.xlsx-drop { border: 2px dashed var(--line-2); border-radius: var(--radius); margin-bottom: 14px; transition: all .15s; }
.xlsx-drop.drag { border-color: var(--green); background: var(--green-soft); }
.xlsx-drop-inner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; font-size: 14.5px; flex-wrap: wrap; }
.xlsx-drop-ico { font-size: 28px; }
.filepick { color: var(--green); font-weight: 700; cursor: pointer; text-decoration: underline; }
.xlsx-sheetbar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; }
.xsheet {
  flex: 0 0 auto; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; cursor: pointer;
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 16px;
}
.xsheet.active { background: var(--green); border-color: var(--green); color: #fff; }
.xlsx-note { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.xlsx-grid-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 640px; background: #fff; box-shadow: var(--shadow); }
.xlsx-grid { display: inline-block; min-width: 100%; }
.xr { display: grid; grid-auto-flow: column; align-items: stretch; }
.xc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-width: 64px; max-width: 420px; padding: 4px 9px; font-size: 13px; white-space: pre-wrap;
  word-break: break-word; display: flex; align-items: center; line-height: 1.5; background: #fff;
}
.xc.h { position: sticky; top: 0; z-index: 2; background: var(--bg-soft); font-weight: 700; font-size: 12px; min-width: 46px; color: var(--ink-2); justify-content: center; }
.xr > .xc:first-child { position: sticky; left: 0; z-index: 1; }
.xr > .xc.h:first-child { z-index: 3; }
.xc.bold { font-weight: 700; }
.xc.yellow { background: #fff9db; }
.xc.grey { background: #f1f2f4; color: #4b5563; }
.xc.num { text-align: right; font-variant-numeric: tabular-nums; justify-content: flex-end; }
.xc.hasf { cursor: help; }
.xc.hasf::after { content: ' ƒ'; color: var(--blue); font-size: 10px; font-weight: 700; }

/* ── documents ── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.doc {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); align-items: flex-start;
}
.doc .ico { font-size: 26px; }
.doc .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.doc .meta { font-size: 12px; color: var(--ink-2); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.doc a.dl { font-size: 13px; font-weight: 700; color: var(--green); }
.checklist { display: grid; gap: 8px; }
.ck { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 14px; }
.ck input { margin-top: 5px; accent-color: var(--green); width: 16px; height: 16px; flex: 0 0 auto; }
.ck.done { opacity: .55; text-decoration: line-through; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.contact .k { font-size: 12px; color: var(--ink-2); }
.contact .v { font-weight: 700; font-size: 15px; margin-top: 2px; }
.contact .v a { color: var(--green); }

/* ── policy ── */
.policy-list { display: grid; gap: 10px; }
.pol { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pol-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; user-select: none; }
.pol-head:hover { background: var(--bg-soft); }
.pol-head .n {
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--green);
  background: var(--green-soft); border-radius: 8px; min-width: 84px; text-align: center; padding: 3px 8px; flex: 0 0 auto;
}
.pol-head h3 { margin: 0; font-size: 16px; flex: 1; }
.pol-head .chev { transition: transform .2s; color: var(--ink-2); }
.pol.open .pol-head .chev { transform: rotate(180deg); }
.pol-body { display: none; padding: 0 18px 16px 42px; color: var(--ink); font-size: 14.5px; }
.pol.open .pol-body { display: block; }

/* ── example ── */
.ex-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; margin-bottom: 16px; align-items: start; }
@media (max-width: 980px) { .ex-grid { grid-template-columns: 1fr; } }
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kv td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv td:first-child { color: var(--ink-2); width: 46%; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px); font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-note { font-size: 12px; }

/* ── FAQ ── */
.faq-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px; margin: 18px 0 8px; align-items: center;
}
.faq-search, .faq-category {
  width: 100%; min-width: 0; min-height: 46px; border: 1.5px solid var(--line-2);
  border-radius: 12px; background: #fff; color: var(--ink); padding: 10px 14px;
  font: 500 15px var(--font-body); outline: none; transition: border-color .18s, box-shadow .18s;
}
.faq-search:focus, .faq-category:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,106,78,.1); }
.faq-summary { color: var(--ink-2); font-size: 13px; margin: 8px 0 16px; }
.faq-categories { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.faq-category-chip {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px;
  background: #fff; color: var(--ink-2); font: 500 13px var(--font-body); cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.faq-category-chip:hover { transform: translateY(-1px); border-color: var(--green); color: var(--green); }
.faq-category-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  min-width: 0; overflow: clip; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 2px 10px rgba(20,32,27,.035);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.faq-item:hover { border-color: #bfd7cc; box-shadow: var(--shadow); }
.faq-item[open] { border-color: #a6cdbb; }
.faq-q {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0,1fr) 22px;
  gap: 12px; align-items: center; padding: 14px 16px; font: 600 16px/1.55 var(--font-display);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-number {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--green); background: var(--green-soft); font: 700 12px var(--font-body);
}
.faq-chevron { color: var(--ink-2); transition: transform .22s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  border-top: 1px solid var(--line); padding: 14px 20px 18px 66px;
  color: #34453d; font-size: 15px; line-height: 1.85;
  animation: answer-in .22s ease both;
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--green); }
.faq-empty {
  border: 1px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft);
  padding: 32px 18px; color: var(--ink-2); text-align: center;
}
@keyframes answer-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ── contained, responsive tables ── */
.budget-table, .btable-wrap, .qtable-wrap, .mtable-wrap, .indicator-table-wrap, .xlsx-grid-wrap {
  width: 100%; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain;
  scrollbar-width: thin; scrollbar-color: #b8c9c0 #f1f5f3;
}
.budget-table, .btable-wrap, .qtable-wrap, .mtable-wrap, .indicator-table-wrap {
  position: relative; border-radius: 10px;
}
.btable { min-width: 760px; width: max-content; }
.qtable { min-width: 1120px; width: max-content; }
.mtable { min-width: 920px; width: max-content; }
.indicator-table { min-width: 820px; }
.qtable-wrap::after, .mtable-wrap::after, .budget-table::after, .btable-wrap::after {
  content: 'পাশে স্ক্রল করুন →'; position: sticky; left: 8px; bottom: 4px;
  display: none; width: max-content; margin: 5px 0 0 auto; padding: 2px 8px;
  border-radius: 999px; color: var(--ink-2); background: var(--bg-soft);
  font: 400 11px var(--font-body); pointer-events: none;
}
.indicator-table-wrap::after {
  content: 'পাশে স্ক্রল করুন →'; position: sticky; left: 8px; bottom: 4px;
  display: none; width: max-content; margin: 5px 0 0 auto; padding: 2px 8px;
  border-radius: 999px; color: var(--ink-2); background: var(--bg-soft);
  font: 400 11px var(--font-body); pointer-events: none;
}
.calc-grid, .calc-grid > *, .ex-grid > *, .map-layout > *, .doc-grid > *, .faq-layout { min-width: 0; }
.xlsx-grid-wrap { scrollbar-gutter: stable; }
.xlsx-grid { width: max-content; min-width: 100%; }
.xlsx-grid .xr { width: max-content; }
.xlsx-grid .xc { max-width: min(340px, 58vw); }
.xlsx-grid .xc.h { max-width: 100px; }
.qchart-wrap { min-width: 0; overflow: hidden; }
#qchart { display: block; max-width: 100%; }
.qtable td:first-child, .mtable td:first-child { z-index: 2; }

/* ── smoother action feedback ── */
button, a.btn, .tab, .div-chip, .xsheet, .js-btn, .pol-head, .mli, .sector, .kf {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(11,143,106,.28); outline-offset: 2px;
}
.btn { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background-color .18s, border-color .18s; }
.btn:active, .faq-category-chip:active, .div-chip:active, .xsheet:active, .tab:active { transform: scale(.97); }
.btn-primary:hover { transform: translateY(-1px); }
.tab, .js-btn, .div-chip, .xsheet { transition: transform .18s, color .18s, background-color .18s, border-color .18s, box-shadow .18s; }
.tab.active { box-shadow: 0 4px 12px rgba(0,106,78,.18); }
.js-btn.active { box-shadow: 0 4px 12px color-mix(in srgb, var(--sc, var(--green)) 18%, transparent); }
.field { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.field:focus-within { border-color: #9ec9b4; box-shadow: 0 0 0 3px rgba(0,106,78,.07); }
.pol { transition: border-color .18s, box-shadow .18s; }
.pol-body { animation: answer-in .2s ease both; }
.xlsx-drop.drag { box-shadow: 0 0 0 4px rgba(0,106,78,.08); }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(194,43,61,.22); } 50% { opacity: .7; box-shadow: 0 0 0 5px rgba(194,43,61,0); } }

/* responsive tweaks */
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  main { padding: 20px 14px 56px; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-title { font-size: 16px; }
  .topbar-right { gap: 6px; }
  .topbar-right .btn { padding: 7px 10px; font-size: 12px; }
  .deadline-chip { gap: 6px; padding: 5px 8px; }
  .dc-value { font-size: 11px; }
  .tabs { top: 54px; padding: 6px 10px; gap: 3px; }
  .tab { font-size: 12.5px; padding: 7px 10px; }
  .page-title { font-size: 25px; }
  .page-sub { font-size: 14px; line-height: 1.7; }
  .sec-title { font-size: 19px; margin-top: 28px; }
  .card { padding: 16px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .faq-toolbar { grid-template-columns: 1fr; }
  .faq-q { grid-template-columns: 32px minmax(0,1fr) 18px; gap: 9px; padding: 12px; font-size: 14.5px; }
  .faq-number { width: 30px; height: 30px; }
  .faq-answer { padding: 12px 14px 16px; font-size: 14px; }
  .faq-categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .faq-category-chip { flex: 0 0 auto; }
  .calc-grid { grid-template-columns: minmax(0,1fr); }
  .calc-grid > *, .ex-grid > * { min-width: 0; }
  .calc-card { padding: 14px; }
  .fld-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .fld.third { min-width: 0; }
  .fld.third input { min-width: 0; }
  .budget-donut-wrap { justify-content: center; gap: 8px; }
  #budgetDonut { width: min(170px, 48vw); height: auto; }
  .donut-legend { flex: 1 1 150px; }
  .map-layout { grid-template-columns: minmax(0,1fr); }
  #bdmap { height: min(65vh, 540px); min-height: 340px; }
  .map-list { max-height: 420px; }
  .map-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms { padding: 8px; }
  .ms .v { font-size: 18px; }
  .doc-grid { grid-template-columns: minmax(0,1fr); }
  .check-grid { grid-template-columns: minmax(0,1fr); }
  .ben-rules { grid-template-columns: minmax(0,1fr); }
  .eval-wrap { grid-template-columns: minmax(0,1fr); }
  .ex-grid { grid-template-columns: minmax(0,1fr); }
  .xlsx-grid-wrap { max-height: 68vh; }
  .xlsx-drop-inner { padding: 12px; }
  .journey-stepper { margin-inline: -4px; padding-inline: 4px; }
  .step-head { padding: 12px; gap: 10px; }
  .step-head h2 { font-size: 17px; }
  .step-intro { padding: 10px 13px 0; font-size: 13.5px; }
  .step-body { padding: 4px 10px 14px; }
  .field { grid-template-columns: 62px minmax(0,1fr); gap: 8px; padding: 9px; }
  .field .no { font-size: 11px; overflow-wrap: anywhere; }
  .field .body .l { font-size: 13.5px; gap: 6px; }
  .field .hint, .field .link { font-size: 12.5px; }
  .sub-sec h4 { font-size: 14px; }
  .qtable-wrap::after, .mtable-wrap::after, .budget-table::after, .btable-wrap::after { display: block; }
  .indicator-table-wrap::after { display: block; }
  .nf { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .nf .arrow { transform: rotate(90deg); line-height: 1; }
  .mk { grid-template-columns: minmax(0,1fr); }
  .pol-head { padding: 11px; gap: 8px; }
  .pol-head .n { min-width: 70px; font-size: 11px; }
  .pol-head h3 { font-size: 14px; }
  .pol-body { padding: 0 13px 14px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-title { font-size: 14.5px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
  .deadline-chip .dot { display: none; }
  .topbar-right .btn { max-width: 112px; white-space: normal; text-align: center; line-height: 1.2; }
  .fld-row { grid-template-columns: minmax(0,1fr); }
  .hero h1 { font-size: 29px; }
  .keyfacts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kf { padding: 12px; }
  .kf .v { font-size: 17px; }
  .sector-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .sector { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .tabs, .foot, .btn { display: none !important; }
  .pane { display: block !important; }
}
