/* ==========================================================================
   আন-নাজাহ ম্যানেজমেন্ট সিস্টেম — ডিজাইন সিস্টেম
   রঙ: গাঢ় সবুজ (প্রতিষ্ঠানের লোগো) + কমলা + আইভরি কাগজ
   ========================================================================== */

:root {
  --g-950: #001B09;
  --g-900: #00240D;
  --g-800: #003414;
  --g-700: #004416;
  --g-600: #0A5524;
  --g-500: #146B31;
  --g-100: #E4EFE6;
  --g-050: #F1F7F2;

  --o-600: #D9610E;
  --o-500: #F57E20;
  --o-400: #FF9C4A;
  --o-100: #FDEADB;

  --ink: #12211A;
  --ink-2: #3A4C43;
  --muted: #6C7F75;
  --faint: #97A69E;

  --line: #E5DECE;
  --line-soft: #EFE9DC;
  --sand: #F4EFE3;
  --paper: #FAF7EF;
  --white: #FFFFFF;

  --danger: #B3261E;
  --danger-bg: #FBEAE8;
  --success: #2C7A4B;
  --success-bg: #E8F4EC;
  --info: #1E5B8A;
  --info-bg: #E8F1F8;
  --warn: #9A6A12;
  --warn-bg: #FBF2DE;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(18, 33, 26, .05);
  --shadow: 0 1px 2px rgba(18, 33, 26, .04), 0 12px 28px -20px rgba(18, 33, 26, .35);
  --shadow-lg: 0 24px 60px -32px rgba(0, 27, 9, .45);

  --sidebar-w: 268px;
  --topbar-h: 68px;
  --serif: 'Noto Serif Bengali', 'Tiro Bangla', serif;
  --sans: 'Anek Bangla', 'Hind Siliguri', system-ui, sans-serif;
  --arabic: 'Amiri', 'Scheherazade New', serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--g-700); text-decoration: none; }
a:hover { color: var(--o-600); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--o-100); color: var(--ink); }

/* ---------- লেআউট ---------- */
.app-body { min-height: 100vh; }

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(178deg, var(--g-800) 0%, var(--g-900) 55%, #001806 100%);
  color: #EAF3EC;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M42 2 52 20 72 24 60 41 64 61 44 56 42 76 40 56 20 61 24 41 12 24 32 20Z'/%3E%3Ccircle cx='42' cy='42' r='32'/%3E%3C/g%3E%3C/svg%3E");
}

.sidebar > * { position: relative; z-index: 1; }
.sidebar > *, .nav-modules, .nav-module, .nav-group { flex-shrink: 0; }
.nav-module > summary { flex-shrink: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .6);
  overflow: hidden;
}

.brand-mark img { width: 40px; height: 40px; object-fit: contain; }

.sidebar-close { display: none; margin-left: auto; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }

.brand-text { min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 15.5px; color: #fff; line-height: 1.35; }
.brand-sub { font-size: 10.5px; letter-spacing: .6px; color: rgba(255, 255, 255, .55); text-transform: uppercase; }

.nav-group { margin-top: 6px; }
.nav-cap {
  font-size: 10.5px;
  letter-spacing: 1.1px;
  color: rgba(255, 255, 255, .42);
  padding: 12px 10px 6px;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 500;
  transition: background .16s, color .16s;
  position: relative;
}

.nav-link + .nav-link { margin-top: 2px; }
.nav-link .ic { width: 19px; height: 19px; opacity: .8; flex: 0 0 19px; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link.active { background: rgba(245, 126, 32, .16); color: #fff; font-weight: 600; }
.nav-link.active .ic { opacity: 1; color: var(--o-400); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--o-500);
}

.nav-link .count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 255, 255, .12);
  padding: 1px 7px;
  border-radius: 20px;
  color: #fff;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.side-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.side-card strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }

/* ---------- কোল্যাপসিবল মডিউল মেনু ---------- */
.nav-modules { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.nav-module summary { list-style: none; cursor: pointer; }
.nav-module summary::-webkit-details-marker { display: none; }

.nav-module summary.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.nav-module summary.nav-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-module summary.nav-btn .ic { width: 19px; height: 19px; opacity: .8; flex: 0 0 19px; }
.nav-module[open] > summary.nav-btn { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-module[open] > summary.nav-btn .chev { transform: rotate(180deg); }
.nav-module summary .chev { margin-left: auto; opacity: .55; transition: transform .2s; }

.sub-menu {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 0 8px 10px;
  margin-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.sub-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.8px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.5;
}
.sub-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sub-link.active { background: rgba(245, 126, 32, .12); color: #FFB067; font-weight: 600; }

.side-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}
.side-collapse:hover { background: rgba(255, 255, 255, .1); color: #fff; }

body.sidebar-mini { --sidebar-w: 84px; }
body.sidebar-mini .brand-text,
body.sidebar-mini .nav-label,
body.sidebar-mini .side-card,
body.sidebar-mini .sub-menu,
body.sidebar-mini .nav-module summary .chev { display: none; }
body.sidebar-mini .nav-link,
body.sidebar-mini .nav-module summary.nav-btn { justify-content: center; padding: 11px 0; }
body.sidebar-mini .brand { justify-content: center; padding: 6px 0 16px; }
body.sidebar-mini .side-collapse { justify-content: center; }
body.sidebar-mini .nav-module { }
body.sidebar-mini .nav-link.active::before { left: -14px; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: rgba(250, 247, 239, .88);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 40;
}

.burger { display: none; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--g-700); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb .now { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-spacer { flex: 1; }

.top-date {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  line-height: 1.35;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.top-date strong { display: block; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: .15s;
  position: relative;
}

.icon-btn:hover { border-color: var(--g-500); color: var(--g-700); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--o-500); box-shadow: 0 0 0 2px var(--white); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.user-chip .avatar { width: 32px; height: 32px; font-size: 13px; }
.user-chip .u-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-chip .u-role { font-size: 10.5px; color: var(--muted); line-height: 1.2; }

.content {
  padding: 26px 28px 44px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* ---------- পেজ হেড ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head .kicker {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--o-600);
  font-weight: 700;
  margin-bottom: 2px;
}

.page-head h1 { position: relative; padding-left: 14px; }
.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--o-500), var(--o-600));
}

.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- গ্রিড ---------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.card { max-width: 100%; }
.page-actions { max-width: 100%; }
.chart { max-width: 100%; }
.chart .col { min-width: 0; }
.chart .col .lbl { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
img, svg { max-width: 100%; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }

.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.serif { font-family: var(--serif); }
.arabic { font-family: var(--arabic); direction: rtl; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.tnum { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- বাটন ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn .ic { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--g-600), var(--g-700));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(0, 68, 22, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, var(--g-500), var(--g-600)); }

.btn-accent {
  background: linear-gradient(180deg, var(--o-500), var(--o-600));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(217, 97, 14, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-accent:hover { color: #fff; }

.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--g-500); color: var(--g-700); }

.btn-soft { background: var(--g-050); color: var(--g-700); border-color: var(--g-100); }
.btn-soft:hover { background: var(--g-100); color: var(--g-800); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #F2CDC9; }
.btn-danger:hover { background: #F7DAD7; }

.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

/* ---------- কার্ড ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.card-head h3 { font-size: 16px; }
.card-head .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #FDFBF6; }

.panel-soft { background: linear-gradient(180deg, #FFFDF8, var(--sand)); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- স্ট্যাট ---------- */
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 17px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}

.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--g-050);
  color: var(--g-700);
}
.stat .ico .ic { width: 20px; height: 20px; }
.stat .ico.orange { background: var(--o-100); color: var(--o-600); }
.stat .ico.blue { background: var(--info-bg); color: var(--info); }
.stat .ico.red { background: var(--danger-bg); color: var(--danger); }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.stat .delta { font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

.stat-accent { background: linear-gradient(150deg, var(--g-700), var(--g-900)); border-color: transparent; color: #fff; }
.stat-accent .label { color: rgba(255, 255, 255, .7); }
.stat-accent .value { color: #fff; }
.stat-accent .delta { color: rgba(255, 255, 255, .65); }
.stat-accent .ico { background: rgba(255, 255, 255, .12); color: var(--o-400); }
.stat-accent::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 26px solid rgba(245, 126, 32, .18);
}

/* ---------- টেবিল ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 11px 14px;
  background: #FBF8F1;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #FDFBF5; }
table.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
table.tbl.compact td { padding: 8px 12px; }
table.tbl.compact th { padding: 8px 12px; }

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.person .meta { font-size: 11.5px; color: var(--muted); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--g-100);
  color: var(--g-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
  font-family: var(--serif);
  overflow: hidden;
  border: 1px solid rgba(0, 68, 22, .08);
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 54px; height: 54px; font-size: 19px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; border-radius: 24px; }
.avatar.orange { background: var(--o-100); color: var(--o-600); border-color: rgba(245, 126, 32, .15); }
.avatar.blue { background: var(--info-bg); color: var(--info); }

/* ---------- ব্যাজ / পিল ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--sand);
  color: var(--ink-2);
  border: 1px solid transparent;
}
.badge.green { background: var(--success-bg); color: var(--success); }
.badge.orange { background: var(--o-100); color: var(--o-600); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.blue { background: var(--info-bg); color: var(--info); }
.badge.gray { background: #F1F1EC; color: var(--ink-2); }
.badge.outline { background: transparent; border-color: var(--line); color: var(--muted); }
.badge.gold { background: var(--warn-bg); color: var(--warn); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.pill.present, .pill.paid, .pill.active { background: var(--success-bg); color: var(--success); }
.pill.absent, .pill.unpaid, .pill.fail { background: var(--danger-bg); color: var(--danger); }
.pill.late, .pill.partial { background: var(--warn-bg); color: var(--warn); }
.pill.leave, .pill.inactive { background: #F0F0EA; color: var(--ink-2); }

/* ---------- ফর্ম ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field > label em { color: var(--danger); font-style: normal; }

.input, .select, .textarea {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 0 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-size: 13.5px;
}
.textarea { height: auto; padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236C7F75' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(20, 107, 49, .12); }
.input::placeholder, .textarea::placeholder { color: #A9B3AD; }
.input:disabled, .select:disabled { background: #F6F4EC; color: var(--muted); }

.input-sm, .select-sm { height: 34px; font-size: 12.5px; border-radius: 8px; }

.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--g-600); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.err { color: var(--danger); font-size: 11.5px; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 16px;
}
.filter-bar .input, .filter-bar .select { height: 36px; font-size: 12.5px; }
.filter-bar .grow { flex: 1 1 180px; }

/* ---------- ট্যাব ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a.active { color: var(--g-700); border-color: var(--o-500); }
.tabs a:hover { color: var(--ink); }

/* ---------- প্রগ্রেস ---------- */
.bar { height: 8px; background: #EFEBDF; border-radius: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--g-600), var(--g-500)); }
.bar.orange > span { background: linear-gradient(90deg, var(--o-500), var(--o-400)); }
.bar.thin { height: 5px; }

.ring { --val: 0; --size: 104px; width: var(--size); height: var(--size); position: relative; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: #EFEBDF; }
.ring .fg { stroke: var(--o-500); stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: calc(283 - (283 * var(--val)) / 100); transition: stroke-dashoffset .7s ease; }
.ring .txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.ring .txt small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); font-weight: 500; }

/* ---------- চার্ট (বার) ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart .col .fill { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--g-500), var(--g-700)); min-height: 3px; position: relative; transition: height .5s; }
.chart .col .fill.orange { background: linear-gradient(180deg, var(--o-400), var(--o-600)); }
.chart .col .fill.soft { background: linear-gradient(180deg, #BFD9C6, #8FBE9E); }
.chart .col .lbl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart .col .val { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.chart .pair { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 160px; }
.chart .pair .fill { flex: 0 0 42%; max-width: 26px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }

/* ---------- অ্যালার্ট ---------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r);
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid;
}
.flash.ok { background: var(--success-bg); border-color: #C7E3D2; color: #1E5B38; }
.flash.err { background: var(--danger-bg); border-color: #F2CDC9; color: #8C1D17; }
.flash.info { background: var(--info-bg); border-color: #CADFEE; color: #164C74; }
.flash .ic { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ic-wrap { width: 54px; height: 54px; border-radius: 16px; background: var(--g-050); color: var(--g-600); display: grid; place-items: center; margin: 0 auto 10px; }
.empty h4 { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.empty p { font-size: 13px; }

.note {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r);
  background: var(--warn-bg);
  border: 1px solid #F0E1BD;
  color: #7A5410;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- পেজিনেশন ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pager .info { font-size: 12.5px; color: var(--muted); }
.pager .links { display: flex; gap: 5px; align-items: center; }
.pager .links a, .pager .links span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--white);
}
.pager .links a:hover { border-color: var(--g-500); color: var(--g-700); }
.pager .links .on { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.pager .links .off { opacity: .45; }

/* ---------- ড্রপডাউন ---------- */
.menu { position: relative; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  display: none;
}
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--g-050); color: var(--g-700); }
.menu-panel .ic { width: 16px; height: 16px; }
.menu-sep { height: 1px; background: var(--line-soft); margin: 5px 4px; }

/* ---------- লগইন ---------- */
.auth-body { margin: 0; background: var(--paper); min-height: 100vh; }

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

.auth-visual {
  position: relative;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(245, 126, 32, .22), transparent 55%),
    linear-gradient(165deg, var(--g-700) 0%, var(--g-900) 60%, #001606 100%);
  color: #fff;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M60 4 76 28 104 34 86 58 90 88 62 80 60 108 58 80 30 88 34 58 16 34 44 28Z'/%3E%3Ccircle cx='60' cy='60' r='44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .9;
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(245, 126, 32, .25);
  right: -180px;
  bottom: -220px;
  box-shadow: 0 0 0 60px rgba(245, 126, 32, .05), 0 0 0 120px rgba(245, 126, 32, .03);
}

.auth-visual > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand .seal {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.auth-brand .seal img { width: 50px; height: 50px; object-fit: contain; }
.auth-brand .nm { display: block; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.35; max-width: 330px; }
.auth-brand .sb { display: block; font-size: 10px; letter-spacing: 1.4px; color: rgba(255, 255, 255, .55); text-transform: uppercase; }

.auth-arch {
  position: relative;
  margin: 30px auto;
  width: min(360px, 78%);
  aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .25);
}

.auth-arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px 999px 16px 16px;
  border: 1px dashed rgba(245, 126, 32, .35);
}

.auth-arch .logo { width: 62%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
.auth-arch .plaque {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #FFFDF8, #EFE6D3);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .8);
  position: relative;
}
.auth-arch .plaque::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 68, 22, .2);
}
.auth-arch .plaque img { width: 76%; filter: none; }

.auth-arch .ayah {
  position: absolute;
  bottom: 20px;
  font-family: var(--arabic);
  font-size: 21px;
  color: rgba(255, 255, 255, .75);
  direction: rtl;
}

.auth-quote { max-width: 460px; }
.auth-quote .ar { font-family: var(--arabic); font-size: 26px; color: var(--o-400); direction: rtl; line-height: 1.9; margin-bottom: 8px; }
.auth-quote .bn { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.9; }
.auth-quote .src { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 6px; letter-spacing: .4px; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; }
.auth-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 68, 22, .07) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}

.auth-card { width: min(430px, 100%); position: relative; }
.auth-card .hello { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--o-600); font-weight: 700; }
.auth-card h1 { font-size: 31px; margin: 4px 0 6px; }
.auth-card .lede { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .input { height: 46px; border-radius: 11px; background: #fff; }
.auth-form .field > label { font-size: 12.5px; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: grid; place-items: center; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }

.auth-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-note b { color: var(--ink-2); }

.demo-box { margin-top: 18px; border: 1px dashed var(--line); border-radius: 12px; padding: 11px 13px; background: #FCFAF3; font-size: 12px; color: var(--muted); }
.demo-box .accounts { display: grid; gap: 4px; margin-top: 6px; }
.demo-box code { background: var(--sand); padding: 1px 5px; border-radius: 5px; color: var(--ink-2); font-size: 11.5px; }

/* ---------- পোর্টাল ---------- */
.portal-hero {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(245, 126, 32, .2), transparent 55%),
    linear-gradient(150deg, var(--g-700), var(--g-900));
  color: #fff;
  padding: 26px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.portal-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .02);
}
.portal-hero .who { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.portal-hero .avatar { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.portal-hero h1 { font-size: 24px; color: #fff; }
.portal-hero .meta { font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.portal-hero .quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.portal-hero .quick a {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portal-hero .quick a:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.mini-stat { display: flex; align-items: center; gap: 12px; padding: 14px 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.mini-stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--g-050); color: var(--g-700); flex: 0 0 auto; }
.mini-stat .ic.orange { background: var(--o-100); color: var(--o-600); }
.mini-stat .v { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.2; }
.mini-stat .l { font-size: 11.5px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-item .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--g-050); color: var(--g-700); display: grid; place-items: center; flex: 0 0 34px; }
.list-item .t { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.list-item .s { display: block; font-size: 11.5px; color: var(--muted); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--o-500), var(--g-100)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 16px 6px; }
.timeline-item::before { content: ""; position: absolute; left: -21px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--g-600); box-shadow: 0 0 0 3px var(--paper); }
.timeline-item .when { font-size: 11px; color: var(--muted); }

/* ---------- প্রিন্ট / আইডি কার্ড ---------- */
.idcard {
  width: 340px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, #FBF7EC);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.idcard .top { background: linear-gradient(150deg, var(--g-700), var(--g-900)); padding: 16px; color: #fff; text-align: center; position: relative; }
.idcard .top .logo { width: 46px; height: 46px; object-fit: contain; background: var(--paper); border-radius: 12px; padding: 4px; margin-bottom: 6px; }
.idcard .top .nm { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.3; }
.idcard .top .sb { font-size: 8.5px; letter-spacing: .7px; color: rgba(255, 255, 255, .6); }
.idcard .body { padding: 16px; text-align: center; }
.idcard .photo { width: 84px; height: 84px; border-radius: 50%; margin: -58px auto 8px; border: 4px solid #fff; background: var(--g-100); display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--g-700); overflow: hidden; }
.idcard .nm { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.idcard .cls { font-size: 12px; color: var(--muted); }
.idcard .rows { margin-top: 12px; text-align: left; font-size: 11.5px; display: grid; gap: 5px; }
.idcard .rows div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 4px; }
.idcard .rows span:first-child { color: var(--muted); }
.idcard .foot { background: var(--g-900); color: rgba(255, 255, 255, .7); font-size: 9px; text-align: center; padding: 7px; letter-spacing: .4px; }

/* ---------- উইজার্ড (ভর্তি / সম্পাদনা) ---------- */
.wizard { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 18px; align-items: start; }

.wizard-rail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-sm);
}

.wizard-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: none;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .16s;
}
.wizard-step:hover { background: #FBF8F1; }
.wizard-step .num {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12.5px;
}
.wizard-step .txt strong { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.wizard-step .txt small { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; }
.wizard-step.active { background: var(--g-050); }
.wizard-step.active .num { background: var(--o-500); color: #fff; }
.wizard-step.active .txt strong { color: var(--g-800); }
.wizard-step.done .num { background: var(--g-600); color: #fff; }

.wizard-body { overflow: hidden; }
.wizard-body .card-head { border-bottom: 1px solid var(--line-soft); }
.wizard-panel .card-body { padding: 20px 20px 24px; }

.wizard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background: #FDFBF6;
}

.photo-row { display: flex; gap: 16px; align-items: center; }
.photo-preview {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 20px;
  background: var(--g-100);
  color: var(--g-700);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 68, 22, .1);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.review-item { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.review-item > span:first-child { color: var(--muted); white-space: nowrap; }
.review-item > span:last-child { text-align: right; }

/* প্রোফাইল হেডার কার্ড */
.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profile-cover {
  height: 96px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(245, 126, 32, .28), transparent 55%),
    linear-gradient(150deg, var(--g-700), var(--g-900));
  position: relative;
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.08'%3E%3Cpath d='M40 4 51 19 69 24 56 38 60 59 40 53 40 76 38 53 18 59 22 38 9 24 27 19Z'/%3E%3C/g%3E%3C/svg%3E");
}
.profile-body { padding: 0 18px 18px; text-align: center; }
.profile-photo {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  margin: -46px auto 10px;
  border: 4px solid #fff;
  background: var(--g-100);
  color: var(--g-700);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 26px -16px rgba(0, 36, 13, .5);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.35; }
.profile-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.profile-facts { display: grid; gap: 7px; margin-top: 14px; text-align: left; }
.profile-facts .row-between { font-size: 12.5px; }
.profile-facts .row-between span:first-child { color: var(--muted); }
.profile-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.profile-tabs a { padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.profile-tabs a.active { color: var(--g-700); border-color: var(--o-500); }

.profile-layout { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 18px; align-items: start; }

@media (max-width: 1000px) {
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-rail { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .wizard-step { min-width: 190px; }
  .wizard-step .txt small { display: none; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wizard-panel .card-body { padding: 14px; }
  .wizard-foot { padding: 12px 14px; }
  .wizard-foot .btn { flex: 1; justify-content: center; }
  .wizard-foot [data-prev][hidden] + .grow { display: none; }
  .profile-body { padding: 0 14px 14px; }
}

/* ---------- মিস ---------- */
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }.dot-sep { color: var(--faint); margin: 0 6px; }
.hr-text { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; }
.hr-text::before, .hr-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.hero-pattern { position: relative; }
.hero-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 68, 22, .08) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}

.overlay { position: fixed; inset: 0; background: rgba(0, 20, 8, .5); z-index: 45; display: none; backdrop-filter: blur(2px); }

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 0px; }
  html, body { overflow-x: hidden; max-width: 100%; }
  .shell { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: min(86vw, 300px); height: 100dvh; }
  .sidebar-close { display: grid; place-items: center; }
  .app-body.nav-open { overflow: hidden; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .8px; }
  .app-body.nav-open .sidebar { transform: none; }
  .app-body.nav-open .overlay { display: block; }
  .main { margin-left: 0; width: 100%; max-width: 100vw; min-width: 0; overflow-x: hidden; }
  .burger { display: grid; }
  .top-date { display: none; }
  .topbar { gap: 8px; padding: 0 14px; min-width: 0; }
  .topbar > * { min-width: 0; }
  .user-chip .u-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar form { display: none; }
  .breadcrumb { flex: 1; min-width: 0; }
  .breadcrumb .now { max-width: 130px; }
  .page-head { gap: 12px; }
  .page-actions { flex-wrap: wrap; }
  .content { max-width: 100%; min-width: 0; }
  .content > * { min-width: 0; max-width: 100%; }
  .grid, .grid-2, .grid-3, .grid-4, .grid-5, .grid-2-1, .grid-1-2 { min-width: 0; }
  table.tbl { min-width: 0; }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; padding: 32px 20px; }
  .auth-card { margin: 0 auto; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 36px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}

@media (max-width: 900px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table.tbl { min-width: 640px; }
  .table-wrap table.tbl.compact { min-width: 560px; }
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .page-actions { justify-content: flex-start; }

  /* খালি টেবিলের বার্তা মোবাইলে দৃশ্যমান রাখতে */
  .table-wrap table.tbl td[colspan] { position: sticky; left: 0; }
  .table-wrap table.tbl td[colspan] .empty { width: calc(100vw - 70px); max-width: 100%; margin: 0; text-align: center; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  h1 { font-size: 21px; }
  .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .value { font-size: 20px; }
  .stat .ico { width: 34px; height: 34px; margin-bottom: 8px; }
  .stat .label { font-size: 11.5px; }
  .stat .delta { font-size: 10.5px; }
  .user-chip .u-meta { display: none; }
  .card-head { padding: 13px 14px; flex-wrap: wrap; row-gap: 6px; align-items: center; }
  .card-head > .row, .card-head > form { max-width: 100%; }
  .card-body { padding: 14px; }
  .portal-hero { padding: 20px; }
  .portal-hero h1 { font-size: 20px; }
  .portal-hero .quick a { flex: 1 1 auto; justify-content: center; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; justify-content: center; }
  .page-actions .btn { flex: 0 1 auto; justify-content: center; }
  .user-chip { padding: 4px; }
  .topbar { gap: 6px; padding: 0 12px; }
  .icon-btn { width: 36px; height: 36px; }
  .breadcrumb > a, .breadcrumb .sep { display: none; }
  .breadcrumb .now { max-width: 52vw; }
  .form-grid { grid-template-columns: 1fr; }
  .filter-bar { padding: 11px 12px; flex-direction: column; align-items: stretch; }
  .filter-bar .field { width: 100%; }
  .filter-bar .grow { flex: 1 1 auto; width: 100%; }
  .filter-bar .select, .filter-bar .input { width: 100%; }
  .filter-bar .btn { width: 100%; justify-content: center; }
  .panel-soft { padding: 12px !important; }
  .mini-stat { padding: 12px; gap: 10px; }
  .mini-stat .v { font-size: 18px; }
  .tabs { gap: 2px; }
  .tabs a { padding: 8px 11px; font-size: 12.5px; }
  .empty { padding: 28px 14px; }
  .btn { height: 38px; }
  .btn-block { width: 100%; }
  .table-wrap table.tbl { min-width: 600px; }
  .table-wrap::-webkit-scrollbar { height: 6px; }
  .table-wrap::-webkit-scrollbar-thumb { background: #D8D2C2; border-radius: 4px; }
  .table-wrap::-webkit-scrollbar-track { background: #FBF8F1; }
  .chart { height: 150px !important; overflow-x: auto; padding-bottom: 4px; }
  .chart .col { min-width: 30px; }
  .chart .col .val { font-size: 9.5px; }
  .chart .col .lbl { font-size: 9.5px; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 19px; }
  .stat { padding: 11px 12px; }
  .stat .value { font-size: 18px; }
}
