/* ==========================================================
   Blood Soldiers of Bangladesh — থিম CSS (Bootstrap 4.6 এর ওপরে)
   লোড করার ক্রম: bootstrap.min.css → (datatables / select2 css) → এই ফাইল
   এই ফাইলে শুধু ব্র্যান্ডের রং, আকার ও Bootstrap ওভাররাইড আছে।

   পেজ চেনার জন্য <body>-তে ক্লাস:
     index.html        -> pg-home
     login.html        -> pg-auth pg-login
     signup.html       -> pg-auth pg-signup
     profile.html      -> pg-private pg-profile
     profile-edit.html -> pg-private pg-edit

   সূচি
     ১. টোকেন ও Bootstrap রিসেট       ৬. হোম পেজ
     ২. বাটন                          ৭. লগইন / সাইনআপ
     ৩. ফর্ম                           ৮. প্রাইভেট পেজ (টপবার, মেনু, প্রোফাইল, এডিট)
     ৪. অ্যালার্ট, পেজিনেশন, টেবিল     ৯. DataTables ও Select2
     ৫. নিচের মেনু বার
   ========================================================== */

/* ---------- ১. টোকেন ও Bootstrap রিসেট ---------- */
:root {
  --red: #D5282D;
  --red-d: #A80D26;
  --red-dd: #7E0A1C;
  --ink: #241A17;
  --muted: #5A4A43;
  --bg: #FBF7F4;
  --tint: #FDECEC;
  --line: #F0DAD6;
  --bnav: 68px;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', 'Hind Siliguri', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a, a:hover { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; margin: 0; }
p, dl, dd, ul { margin: 0; }
b, strong { font-weight: 700; }
::selection { background: #F6C9CE; }
:focus-visible { outline: 3px solid #1b6fd1; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic, .ic svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Bootstrap গ্রিডে নিজের ফাঁক: .row-gap এর ভেতরের কলামগুলোর মাঝে --g পরিমাণ ফাঁক */
.row-gap { --g: 12px; margin: 0 calc(var(--g) / -2) calc(var(--g) * -1); }
.row-gap > [class*="col"] { padding: 0 calc(var(--g) / 2); margin-bottom: var(--g); }

/* ---------- ২. বাটন (Bootstrap .btn ওভাররাইড) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.btn-block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 .2rem rgba(213, 40, 45, .28); }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
  background: var(--red); border-color: var(--red); color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active:focus {
  background: var(--red-d); border-color: var(--red-d); color: #fff;
}
.btn-primary.disabled, .btn-primary:disabled { background: var(--red); border-color: var(--red); opacity: .65; }
.btn-outline-primary { background: transparent; border-color: var(--red); color: var(--red-d); }
.btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active {
  background: var(--tint); border-color: var(--red); color: var(--red-d);
}
.btn-light, .btn-light:hover, .btn-light:focus, .btn-light:not(:disabled):not(.disabled):active {
  background: #fff; border-color: #fff; color: var(--red-d);
}

/* ---------- ৩. ফর্ম (Bootstrap .form-control, .custom-select, .input-group ওভাররাইড) ---------- */
.form-group { margin-bottom: 18px; }
label { display: inline-block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: #3A2C27; }
label small, label .opt { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.form-control, .custom-select {
  min-height: 52px;
  height: auto;
  padding: 13px 14px;
  border: 1px solid #D9C3BA;
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}
.custom-select { padding-right: 34px; }
input.form-control, select.form-control, .custom-select { height: 52px; }
textarea.form-control { min-height: 84px; resize: vertical; }
.form-control:focus, .custom-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 .2rem rgba(213, 40, 45, .18);
  color: var(--ink);
}
.form-control[readonly] { background: #F4EEEB; color: var(--muted); }
.form-control.is-invalid, .custom-select.is-invalid { border-color: var(--red-d); background-color: #FFF6F6; }
.form-control.is-invalid { background-image: none; padding-right: 14px; }
.form-control.is-invalid:focus, .custom-select.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(168, 13, 38, .2); }
.invalid-feedback { color: #B00020; font-size: 15px; line-height: 1.5; margin-top: 6px; }
.form-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
/* ফোন নম্বরের +৮৮ প্রিফিক্স (Bootstrap .input-group) */
.input-group-text {
  padding: 0 12px;
  background: var(--tint);
  border: 1px solid #D9C3BA;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--red-d);
}
.input-group > .form-control { border-radius: 0 12px 12px 0; }
/* পাসওয়ার্ডের ডানে চোখের বাটন */
.pwbox { position: relative; }
.pwbox .form-control { padding-right: 56px; }
.pwbox:has(.is-invalid) ~ .invalid-feedback { display: block; }
.eye {
  position: absolute;
  right: 4px;
  top: 26px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
}
.eye:hover { background: var(--tint); }
.eye svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* লিঙ্গ বাছাই: Bootstrap .btn-group-toggle (data-toggle="buttons") */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills .btn {
  flex: 1 1 90px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid #D9C3BA;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
}
.pills .btn:hover { background: #fff; }
.pills .btn.active, .pills .btn:not(:disabled):not(.disabled).active {
  background: var(--tint); border-color: var(--red); color: var(--red-d); font-weight: 700;
}
.pills .btn.focus, .pills .btn:focus-within { box-shadow: 0 0 0 3px rgba(27, 111, 209, .55); }
.pills.is-invalid .btn { border-color: var(--red-d); }
fieldset.form-group { border: 0; padding: 0; margin-bottom: 18px; min-width: 0; }
legend { font-size: 16px; font-weight: 600; color: #3A2C27; padding: 0; margin-bottom: 8px; width: auto; }

/* ---------- ৪. অ্যালার্ট, পেজিনেশন, টেবিল ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 16px; }
.alert svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.alert-danger { background: #F8D7DA; border-color: #F1AEB5; color: #58151C; }
.alert-success { background: #D1E7DD; border-color: #A3CFBB; color: #0A3622; }
.alert-warning { background: #FFF4D6; border-color: #F0D58A; color: #5b4300; }

.pagination { margin: 0; }
.page-link { min-width: 40px; text-align: center; padding: 8px 12px; color: var(--red-d); border-color: var(--line); background: #fff; line-height: 1.4; }
.page-link:hover { background: var(--tint); border-color: var(--line); color: var(--red-dd); }
.page-link:focus { box-shadow: 0 0 0 .2rem rgba(213, 40, 45, .25); }
.page-item:first-child .page-link { border-radius: 10px 0 0 10px; }
.page-item:last-child .page-link { border-radius: 0 10px 10px 0; }
.page-item.active .page-link { background: var(--red); border-color: var(--red); color: #fff; }
.page-item.disabled .page-link { color: #9a8a84; background: #fff; }

.tbl { width: 100%; margin: 0; color: var(--ink); font-size: 16.5px; }
.tbl th { background: var(--tint); color: var(--red-d); font-weight: 700; padding: 12px 14px; white-space: nowrap; text-align: left; border: 0; vertical-align: middle; }
.tbl th:first-child { border-radius: 12px 0 0 12px; }
.tbl th:last-child { border-radius: 0 12px 12px 0; }
.tbl td { padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.num { white-space: nowrap; }
.tbl.table-hover tbody tr:hover { background: #FFF8F6; color: var(--ink); }
@media (max-width: 699.98px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin-bottom: 12px; background: #fff; }
  .tbl td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex: none; }
}

/* ---------- ৫. নিচের মেনু বার (হোম, লগইন, সাইনআপ; শুধু ফোনে) ---------- */
.bnav {
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(60, 10, 10, .08);
  padding-bottom: env(safe-area-inset-bottom);
  flex-wrap: nowrap;
}
.bnav .nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--bnav);
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6B5A54;
  line-height: 1.2;
}
.bnav svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bnav .nav-link.active { color: var(--red); font-weight: 700; }
.bnav .nav-link.active::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }
@media (min-width: 900px) { .bnav { display: none !important; } }

/* ========== ৬. হোম পেজ (index.html) ========== */
body.pg-home { padding-bottom: calc(var(--bnav) + env(safe-area-inset-bottom)); overflow-x: hidden; }
.pg-home img, .pg-home svg { max-width: 100%; }
.pg-home .container { max-width: 1180px; padding: 0 18px; }
.pg-home .sec { padding: 34px 0; }
.pg-home .sec-h { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 18px; }
.pg-home .sec-h::before { content: ''; width: 5px; height: 26px; background: var(--red); border-radius: 3px; flex: none; }
.pg-home .lead { color: var(--muted); font-size: 17px; font-weight: 400; line-height: 1.7; margin: -6px 0 20px; }
.pg-home .acts { display: flex; flex-wrap: wrap; gap: 10px; }

.pg-home .top { background: linear-gradient(135deg, var(--red-dd), var(--red)); color: #fff; border-radius: 0 0 26px 26px; }
.pg-home .navbar { flex-wrap: nowrap; gap: 16px; padding-top: 14px; padding-bottom: 20px; }
.pg-home .brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 0; font-size: inherit; white-space: normal; line-height: inherit; }
.pg-home .brand img { width: 62px; height: 62px; flex: none; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
.pg-home .brand b { display: block; font-size: 19px; line-height: 1.25; }
.pg-home .brand small { display: block; font-size: 14px; line-height: 1.4; opacity: .95; margin-top: 3px; }
.pg-home .dnav, .pg-home .dacts { display: none; }

.pg-home .hero .container { padding-top: 26px; padding-bottom: 22px; }
.pg-home .hero .row { margin: 0 -6px; flex-wrap: nowrap; }
.pg-home .hero .row > * { padding: 0 6px; }
.pg-home .hero h1 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.32; margin-bottom: 18px; }
.pg-home .hero h1 em { font-style: normal; color: var(--red); }
.pg-home .drop { width: clamp(96px, 27vw, 150px); height: auto; display: block; }

.pg-home .stats { --g: 10px; }
.pg-home .stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px; text-align: center; }
.pg-home .stat b { display: block; font-size: 24px; line-height: 1.25; color: var(--red-d); }
.pg-home .stat span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.pg-home .stats-wrap { padding-top: 8px; }

.pg-home .svc-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 152px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px; text-align: center; }
.pg-home .svc-item:hover { border-color: var(--red); }
.pg-home .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.pg-home .ico svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-home .svc-item b { font-size: 18px; line-height: 1.3; }
.pg-home .svc-item .desc { font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.pg-home .tip { display: flex; gap: 14px; align-items: flex-start; background: #FBDADA; border: 1px solid #F2BDBD; border-radius: 18px; padding: 18px; }
.pg-home .tip .ico { background: #fff; }
.pg-home .tip b { display: block; color: var(--red-d); font-size: 18px; margin-bottom: 4px; }
.pg-home .tip p { font-size: 16px; line-height: 1.65; color: #4a2a28; }

.pg-home .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.pg-home .card-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.pg-home .card h3 { font-size: 20px; line-height: 1.4; }
.pg-home .card p { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.pg-home .num { font-size: 30px; font-weight: 700; color: var(--red); line-height: 1.2; }
.pg-home .soft { background: #F7EDE8; }
.pg-home .grid3 { --g: 14px; }

.pg-home .forms { --g: 20px; }
.pg-home .fcard { border-radius: 22px; scroll-margin-top: 12px; }
.pg-home .fcard .card-body { display: block; padding: 24px 18px; }
.pg-home .fcard h3 { font-size: 22px; line-height: 1.35; margin-bottom: 6px; }
.pg-home .fcard .card-body > p { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.pg-home .fcard .btn { min-height: 52px; }
.pg-home .form-control, .pg-home .custom-select, .pg-home input.form-control, .pg-home select.form-control { min-height: 48px; height: 48px; }

.pg-home .cta { background: linear-gradient(135deg, var(--red-dd), var(--red)); color: #fff; }
.pg-home .cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
.pg-home .cta .txt { flex: 1 1 300px; }
.pg-home .cta h2 { font-size: clamp(25px, 5vw, 30px); margin-bottom: 8px; }
.pg-home .cta p { line-height: 1.7; color: #FFE9E5; }

.pg-home footer { background: #1A1213; color: #FBEDE7; }
.pg-home footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 38px; padding-bottom: 24px; }
.pg-home .fbrand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; line-height: 1.3; }
.pg-home .fbrand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; flex: none; }
.pg-home footer p { color: #E3D0C9; font-size: 16px; line-height: 1.7; margin-top: 10px; max-width: 340px; }
.pg-home footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.pg-home footer ul a { display: inline-block; padding: 6px 0; }
.pg-home .site-domain { display: inline-block; padding: 6px 0; color: #E3D0C9; }
.pg-home .copy { border-top: 1px solid #3A2A25; padding: 16px 18px; text-align: center; font-size: 14.5px; color: #CDB5AD; }

@media (min-width: 700px) {
  .pg-home .container { padding: 0 28px; }
  .pg-home .stat b { font-size: 30px; }
}
@media (min-width: 900px) {
  body.pg-home { padding-bottom: 0; font-size: 18px; }
  .pg-home .sec { padding: 64px 0; }
  .pg-home .sec-h { font-size: 30px; margin-bottom: 26px; }
  .pg-home .top { position: sticky; top: 0; z-index: 40; background: #fff; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); }
  .pg-home .navbar { padding-top: 10px; padding-bottom: 10px; }
  .pg-home .brand img { width: 54px; height: 54px; padding: 0; }
  .pg-home .brand b { font-size: 20px; }
  .pg-home .brand small { color: var(--muted); opacity: 1; }
  .pg-home .dnav { display: flex; flex-direction: row; gap: 6px 26px; }
  .pg-home .dnav .nav-link { padding: 10px 0; font-weight: 500; font-size: 17px; }
  .pg-home .dnav .nav-link:hover { color: var(--red); }
  .pg-home .dacts { display: flex; align-items: center; gap: 10px; }
  .pg-home .hero { background: linear-gradient(180deg, #FFF3EE, var(--bg)); }
  .pg-home .hero .container { padding-top: 72px; padding-bottom: 56px; }
  .pg-home .hero .row { margin: 0 -30px; }
  .pg-home .hero .row > * { padding: 0 30px; }
  .pg-home .hero h1 { font-size: 50px; line-height: 1.28; margin-bottom: 28px; max-width: 640px; }
  .pg-home .drop { width: 300px; }
  .pg-home .stats { --g: 16px; max-width: 760px; }
  .pg-home .stat { padding: 20px 10px; }
  .pg-home .stat span { font-size: 16px; }
  .pg-home .svc { --g: 18px; }
  .pg-home .svc-item { padding: 28px 18px; min-height: 180px; }
  .pg-home .svc-item b { font-size: 20px; }
  .pg-home .svc-item .desc { font-size: 15.5px; }
  .pg-home .forms { --g: 28px; }
  .pg-home .fcard .card-body { padding: 34px 30px; }
  .pg-home .fcard { scroll-margin-top: 90px; }
  .pg-home section[id] { scroll-margin-top: 80px; }
  .pg-home .cta .container { padding-top: 56px; padding-bottom: 56px; }
}

/* ========== ৭. লগইন ও সাইনআপ ========== */
body.pg-auth { padding-bottom: calc(var(--bnav) + env(safe-area-inset-bottom)); }
.pg-auth .page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.pg-auth .brandp { background: linear-gradient(135deg, var(--red-dd), var(--red)); color: #fff; border-radius: 0 0 26px 26px; padding: 18px 20px 64px; position: relative; }
.pg-auth .formp { padding: 0 16px 32px; margin-top: -40px; position: relative; }
.pg-auth .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 16px; color: #fff; }
.pg-auth .back:hover { color: #fff; }
.pg-auth .back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-auth .brandrow { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.pg-auth .brandrow img { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; flex: none; }
.pg-auth .brandrow b { display: block; font-size: 21px; line-height: 1.25; }
.pg-auth .brandrow small { display: block; font-size: 14.5px; line-height: 1.45; opacity: .95; margin-top: 3px; }
.pg-auth .pitch, .pg-auth .drop { display: none; }
.pg-auth .card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 34px rgba(90, 20, 20, .10); max-width: 460px; margin: 0 auto; }
.pg-signup .card { max-width: 520px; }
.pg-auth .card-body { padding: 26px 20px 24px; }
.pg-auth .card h1 { font-size: 26px; margin-bottom: 6px; }
.pg-auth .sub { color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.pg-auth .btn { width: 100%; min-height: 54px; font-size: 18px; }
.pg-auth .btn.btn-outline-primary { font-size: 16.5px; min-height: 50px; padding: 10px 16px; }
.pg-auth .form-control, .pg-auth .custom-select { min-height: 52px; }
.pg-auth .forgot { display: block; text-align: right; color: var(--red-d); font-weight: 600; font-size: 16px; padding: 6px 0; margin: -6px 0 18px; }
.pg-auth .forgot:hover { color: var(--red-d); text-decoration: underline; }
.pg-auth .hint { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.pg-auth .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 22px 0 16px; }
.pg-auth .or::before, .pg-auth .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pg-auth .links { display: flex; flex-direction: column; gap: 10px; }
.pg-auth .help { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); line-height: 1.6; }
.pg-auth .switch { margin-top: 20px; text-align: center; font-size: 16.5px; color: var(--muted); }
.pg-auth .switch a { color: var(--red-d); font-weight: 700; padding: 8px 4px; display: inline-block; }
@media (max-width: 899.98px) {
  .pg-auth .page { min-height: calc(100vh - var(--bnav)); min-height: calc(100dvh - var(--bnav) - env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  body.pg-auth { font-size: 18px; padding-bottom: 0; }
  .pg-auth .brandrow { margin-top: 36px; }
  .pg-auth .brandrow img { width: 84px; height: 84px; }
  .pg-auth .brandrow b { font-size: 24px; }
  .pg-auth .pitch { display: block; font-size: 38px; line-height: 1.32; font-weight: 700; margin-top: auto; max-width: 440px; }
  .pg-auth .drop { display: block; width: 150px; height: auto; margin: 26px 0 auto; }
  .pg-auth .card h1 { font-size: 30px; }
  .pg-auth .page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr; }
  .pg-auth .brandp { border-radius: 0; padding: 36px 56px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  .pg-auth .formp { margin: 0; padding: 40px; display: flex; align-items: center; justify-content: center; }
  .pg-auth .card { box-shadow: none; width: 100%; }
  .pg-auth .card-body { padding: 38px 34px 30px; }
  .pg-signup .page { grid-template-rows: auto; align-items: start; }
  .pg-signup .brandp { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; }
  .pg-signup .formp { min-height: 100vh; }
}

/* ========== ৮. প্রাইভেট পেজ (লগইনের পরের পেজ: প্রোফাইল ও এডিট) ========== */
body.pg-private { padding-bottom: env(safe-area-inset-bottom); }
body.pg-private.menu-open { overflow: hidden; }
.pg-private .container { padding: 0 16px; }
.pg-profile .container { max-width: 980px; }
.pg-edit .container { max-width: 720px; }
.pg-private main.container { padding-top: 18px; padding-bottom: 40px; }

/* টপবার */
.pg-private .topbar { position: sticky; top: 0; z-index: 40; background: var(--red-d); color: #fff; padding-top: env(safe-area-inset-top); }
.pg-private .topbar .in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 64px; }
.pg-private .hamb { width: 48px; height: 48px; flex: none; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pg-private .hamb:hover { background: rgba(255, 255, 255, .24); }
.pg-private .hamb:focus-visible, .pg-private .dclose:focus-visible { outline-color: #fff; }
.pg-private .hamb svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; }
.pg-private .topbar .ttl { font-size: 20px; font-weight: 700; line-height: 1.3; }
.pg-private .topbar img { width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }

/* বাঁ মেনু (drawer) */
.pg-private .scrim { position: fixed; inset: 0; background: rgba(25, 8, 8, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; z-index: 1040; }
.pg-private .drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); background: #fff; z-index: 1050; display: flex; flex-direction: column; transform: translateX(-102%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; }
body.pg-private.menu-open .scrim { opacity: 1; visibility: visible; transition: opacity .25s; }
body.pg-private.menu-open .drawer { transform: none; visibility: visible; transition: transform .28s ease; }
.pg-private .dh { background: linear-gradient(180deg, var(--red-d), var(--red)); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 18px 18px; display: flex; align-items: center; gap: 12px; }
.pg-private .dh img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; flex: none; }
.pg-private .dh b { display: block; font-size: 17px; line-height: 1.3; }
.pg-private .dh small { display: block; font-size: 14px; opacity: .92; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.pg-private .dclose { margin-left: auto; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pg-private .dclose svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; }
.pg-private .dnav { padding: 10px; gap: 2px; flex-wrap: nowrap; }
.pg-private .dnav .nav-link { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 14px; border-radius: 14px; font-size: 17.5px; font-weight: 500; color: var(--ink); }
.pg-private .dnav .nav-link:hover { background: var(--tint); color: var(--ink); }
.pg-private .dnav .nav-link svg { width: 24px; height: 24px; flex: none; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-private .dnav .nav-link.active { background: var(--tint); color: var(--red-d); font-weight: 700; }
.pg-private .dnav .logout { color: var(--red-d); font-weight: 600; }
.pg-private .dsep { height: 1px; background: var(--line); margin: 8px 14px; }

/* কার্ড ও সেকশন-হেডিং (প্রোফাইল + এডিট) */
.pg-private .card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(90, 20, 20, .06); scroll-margin-top: 76px; }
.pg-private .card-body { padding: 22px 18px; }
.pg-private .sec-h { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.35; margin-bottom: 16px; }
.pg-private .sec-h::before { content: ''; width: 5px; height: 24px; background: var(--red); border-radius: 3px; flex: none; }
.pg-private .sec-gap { margin-top: 26px; }

/* প্রোফাইল পেজ: হেডার (কভার + গোল ছবি) */
.pg-profile .who { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(90, 20, 20, .06); padding-bottom: 16px; }
.pg-profile .cover {
  height: 132px;
  background:
    radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .22) 0 70px, transparent 71px),
    radial-gradient(circle at 88% -20%, rgba(255, 255, 255, .16) 0 110px, transparent 111px),
    radial-gradient(circle at 62% 130%, rgba(255, 255, 255, .12) 0 90px, transparent 91px),
    linear-gradient(120deg, var(--red-dd), var(--red-d) 45%, var(--red));
}
.pg-profile .who .hd { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pg-profile .av-box { position: relative; margin-top: -58px; flex: none; }
.pg-profile .avatar { width: 116px; height: 116px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 6px 18px rgba(60, 10, 10, .28); background: linear-gradient(135deg, var(--red), var(--red-d)); color: #fff; display: grid; place-items: center; font-size: 48px; font-weight: 700; line-height: 1; overflow: hidden; }
.pg-profile .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-profile .cam { position: absolute; right: -2px; bottom: 4px; width: 44px; height: 44px; margin: 0; border-radius: 50%; border: 3px solid #fff; background: #EFE6E2; color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.pg-profile .cam:hover { background: #E4D6D0; }
.pg-profile .cam svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-profile .who h1 { font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; }
.pg-profile .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-top: 6px; }
.pg-profile .pill { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); border: 1px solid #F5CFCF; color: var(--red-d); border-radius: 999px; padding: 3px 14px; font-size: 15.5px; font-weight: 600; }
.pg-profile .pill.loc { background: #F4EEEB; border-color: var(--line); color: var(--muted); }
.pg-profile .editbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #E3CFCA; background: #fff; color: var(--red-d); font-weight: 700; font-size: 16px; }
.pg-profile .editbtn:hover { background: var(--tint); color: var(--red-d); }
.pg-profile .editbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-profile .chips { --g: 8px; margin-left: 0; margin-right: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pg-profile .chips > div { text-align: center; min-width: 0; }
.pg-profile .chips b { display: block; font-size: 20px; line-height: 1.3; color: var(--red-d); overflow-wrap: anywhere; }
.pg-profile .chips span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted); }

/* প্রোফাইল পেজ: সেকশন কার্ড */
.pg-profile main.container { display: flex; flex-direction: column; gap: 18px; }
.pg-profile h3.sub-h { font-size: 18px; margin: 22px 0 12px; }
.pg-profile .info > [class*="col"] { margin-bottom: 14px; }
.pg-profile .info .item { border-bottom: 1px solid var(--line); padding-bottom: 12px; min-width: 0; }
.pg-profile .info > [class*="col"]:last-child .item { border-bottom: 0; padding-bottom: 0; }
.pg-profile dt { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.pg-profile dt svg { width: 18px; height: 18px; flex: none; stroke: var(--red-d); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-profile dd { font-size: 17.5px; font-weight: 500; overflow-wrap: anywhere; }
.pg-profile dd a { color: #1b5fb4; text-decoration: underline; }
.pg-profile .na { color: #8d7b74; font-weight: 400; }
.pg-profile .tiles { --g: 10px; }
.pg-profile .tile { background: var(--tint); border: 1px solid #F5CFCF; border-radius: 16px; padding: 14px 12px; text-align: center; min-width: 0; height: 100%; }
.pg-profile .tile b { display: block; font-size: 26px; line-height: 1.3; color: var(--red-d); overflow-wrap: anywhere; }
.pg-profile .tile b.sm { font-size: 19px; }
.pg-profile .tile span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
@media (min-width: 768px) {
  .pg-profile .info > [class*="col"]:nth-last-child(2) .item { border-bottom: 0; padding-bottom: 0; }
}
@media (min-width: 700px) {
  .pg-private .card-body { padding: 28px; }
  .pg-profile .cover { height: 210px; }
  .pg-profile .who .hd { flex-direction: row; align-items: flex-end; text-align: left; gap: 22px; }
  .pg-profile .av-box { margin-top: -70px; }
  .pg-profile .avatar { width: 148px; height: 148px; font-size: 62px; }
  .pg-profile .who .idt { padding-bottom: 6px; }
  .pg-profile .who h1 { font-size: 32px; }
  .pg-profile .meta { justify-content: flex-start; }
  .pg-profile .chips { max-width: 520px; }
}

/* প্রোফাইল এডিট পেজ */
.pg-edit .form-control, .pg-edit .custom-select { border: 1.5px solid #E3CFCA; border-radius: 14px; }
.pg-edit .form-control:focus, .pg-edit .custom-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213, 40, 45, .18); }
.pg-edit .form-control.is-invalid, .pg-edit .custom-select.is-invalid { border-color: #C0152B; background-color: #fff; }
.pg-edit .form-group { margin-bottom: 16px; }
.pg-edit label { display: block; margin-bottom: 6px; color: var(--ink); }
.pg-edit textarea.form-control { line-height: 1.5; }
.pg-edit .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pg-edit .btn { min-height: 54px; border-radius: 14px; font-size: 18px; font-weight: 700; padding: 0 22px; }
.pg-edit .btn-light, .pg-edit .btn-light:hover, .pg-edit .btn-light:focus { background: #fff; color: var(--red-d); border-color: #E3CFCA; }
.pg-edit .btn-light:hover { background: var(--tint); }
@media (min-width: 700px) {
  .pg-edit .actions { flex-direction: row-reverse; justify-content: flex-start; }
}

/* ========== ৯. DataTables ও Select2 (Bootstrap 4 থিম) ========== */
.dataTables_wrapper { font-size: 16px; }
.dataTables_wrapper .row { margin-left: 0; margin-right: 0; }
.dataTables_wrapper .row > div { padding-left: 0; padding-right: 0; }
.dataTables_wrapper .dataTables_filter { text-align: left; margin-bottom: 14px; }
.dataTables_wrapper .dataTables_filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; white-space: nowrap; }
.dataTables_wrapper .dataTables_filter input.form-control { margin: 0; flex: 1; min-height: 44px; border-radius: 12px; font-size: 16px; }
.dataTables_wrapper .dataTables_length label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; }
.dataTables_wrapper .dataTables_length select { min-height: 44px; border-radius: 12px; width: auto; }
.dataTables_wrapper .dataTables_info { padding-top: 14px; font-size: 14.5px; color: var(--muted); }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-start; flex-wrap: wrap; }
table.dataTable { margin: 0 !important; width: 100% !important; }
table.dataTable thead th { padding-right: 26px; }
table.dataTable thead th.num { padding-left: 26px; padding-right: 14px; }
table.dataTable thead .sorting:before, table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_desc:after { right: 8px; color: var(--red-d); }
table.dataTable td.dataTables_empty { text-align: center; color: var(--muted); background: #FAF3EF; border: 1px dashed #E6CFC7; border-radius: 14px; padding: 18px 16px; }
@media (max-width: 699.98px) {
  .tbl td.dataTables_empty { display: block; }
  .tbl td.dataTables_empty::before { content: none; }
  .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { text-align: center; }
  .dataTables_wrapper .dataTables_paginate .pagination { justify-content: center; }
}

.select2-container--bootstrap4 .select2-selection--single { height: 52px !important; min-height: 52px; border: 1.5px solid #E3CFCA; border-radius: 14px; font-size: 17px; background: #fff; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered { line-height: 49px; padding-left: 14px; padding-right: 36px; color: var(--ink); }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow { top: 0; bottom: 0; height: auto; right: 8px; display: flex; align-items: center; }
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b { position: static; margin: 0; }
.select2-container--bootstrap4.select2-container--focus .select2-selection,
.select2-container--bootstrap4.select2-container--open .select2-selection { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213, 40, 45, .18); }
.select2-container--bootstrap4 .select2-dropdown { border-color: var(--red); border-radius: 12px; font-size: 16.5px; overflow: hidden; }
.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected="true"] { background: var(--tint); color: var(--red-d); }
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected="true"],
.select2-container--bootstrap4 .select2-dropdown .select2-results__option--highlighted[aria-selected] { background: var(--red); color: #fff; }
.select2-container--bootstrap4 .select2-results__option { padding: 10px 14px; }
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field { border-radius: 10px; }
.is-invalid + .select2-container--bootstrap4 .select2-selection { border-color: #C0152B; }
