:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0b1524;
  --ink-2: #33405a;
  --muted: #66738a;
  --line: #e2e8f2;
  --line-2: #d3ddec;
  --surface: #ffffff;
  --page-a: #f4f7fc;
  --page-b: #e9eff9;
  --ok: #12833f;
  --warn: #b45309;
  --danger: #c02a2a;
  --radius: 16px;
  --shadow: 0 18px 40px -28px rgba(11, 23, 45, .5), 0 2px 6px -4px rgba(11, 23, 45, .1);
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(70% 50% at 85% -10%, rgba(37, 99, 235, .12), transparent 70%),
    linear-gradient(180deg, var(--page-a), var(--page-b));
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { height: 34px; width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; }
.brand strong { display: block; font-size: 14.5px; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.ghost-link { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.ghost-link:hover { color: var(--blue); }

.logout {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.logout:hover { border-color: var(--danger); color: var(--danger); }

/* layout */
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 28px 20px 40px; flex: 1 1 auto; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.sub { margin: 0; font-size: 13px; color: var(--muted); }

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 12px;
  background: rgba(37, 99, 235, .07);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .card { margin-bottom: 0; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 14.5px; letter-spacing: -.01em; }

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(18, 131, 63, .1);
  color: var(--ok);
}

.badge.soft { background: rgba(37, 99, 235, .08); color: var(--blue-dark); font-weight: 600; }
.badge.off { background: rgba(192, 42, 42, .1); color: var(--danger); }
.badge.warn { background: rgba(180, 83, 9, .1); color: var(--warn); }

.plan-name { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.facts dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 700; }

.quota-value { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.quota-value strong { font-size: 26px; color: var(--ink); letter-spacing: -.02em; }

.bar { height: 9px; border-radius: 999px; background: #eef2f9; overflow: hidden; margin-bottom: 10px; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2f6ff0, var(--blue-dark)); transition: width .5s ease; }
.bar span.full { background: linear-gradient(90deg, #ef4444, #b91c1c); }

.muted { margin: 0; font-size: 12px; line-height: 1.75; color: var(--muted); }

/* devices */
.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.devices li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.devices .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.devices .meta { min-width: 0; flex: 1 1 auto; }
.devices .meta strong { display: block; font-size: 13px; }
.devices .meta small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.devices button {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 9px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.devices button:hover { border-color: var(--danger); color: var(--danger); }

/* invoices */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table .pill { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(18, 131, 63, .1); color: var(--ok); }
.table .pill.pending { background: rgba(180, 83, 9, .12); color: var(--warn); }
.table .pill.failed, .table .pill.refunded { background: rgba(192, 42, 42, .1); color: var(--danger); }

/* danger */
.card.danger { border-color: rgba(192, 42, 42, .25); }
.card.danger h2 { color: var(--danger); }
.confirm-label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--ink-2); }
.confirm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm-row input { flex: 1 1 160px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary { border-color: transparent; background: linear-gradient(180deg, #2f6ff0, var(--blue-dark)); color: #fff; box-shadow: 0 10px 20px -14px rgba(37, 99, 235, .9); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.full { width: 100%; }
.btn.danger-btn { border-color: transparent; background: var(--danger); color: #fff; }
.btn.danger-btn:disabled { opacity: .45; cursor: not-allowed; }

/* login / closed */
.login-card {
  max-width: 420px;
  margin: 6vh auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-card h1 { font-size: 22px; }
.login-card .lead { margin: 0 0 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
.login-card input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 11px; font: inherit; font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .13); }
.login-card .btn { margin-top: 18px; }
.hint { margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.closed { text-align: center; padding: 8vh 20px; }
.closed-icon { font-size: 30px; margin-bottom: 10px; }
.closed h1 { font-size: 22px; }
.closed p { margin: 0 auto 20px; max-width: 44ch; font-size: 13px; line-height: 1.8; color: var(--muted); }

.error { margin: 10px 0 0; font-size: 12.5px; color: var(--danger); line-height: 1.6; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .wrap { padding: 20px 16px 32px; }
  .top { padding: 12px 16px; }
  .foot { padding: 14px 16px; }
}


/* প্ল্যান কার্ড */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }

.plan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.featured { border-color: rgba(37, 99, 235, .35); background: rgba(37, 99, 235, .045); }
.plan-card h3 { margin: 0; font-size: 14.5px; }
.plan-card .price { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.plan-card .price span { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-card ul { margin: 0; padding-left: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.plan-card .actions { display: grid; gap: 6px; margin-top: auto; }
.plan-card .btn { height: 36px; font-size: 12px; }


/* সম্মতি চেকবক্স */
.consent {
  display: flex;
 align-items: flex-start;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  cursor: pointer;
}
.consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue); text-decoration: none; }
.consent a:hover { text-decoration: underline; }

/* ================= ড্যাশবোর্ড ট্যাব ও রেকর্ড ================= */
.acc-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
}

.acc-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.acc-tabs button:hover { color: var(--ink-2); }
.acc-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(11, 23, 45, .08); }

.filter-card { padding: 14px 16px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }

.filter-row input[type="date"] {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin-bottom: 16px; }

.stat {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 26px -26px rgba(11, 23, 45, .55);
}

.stat-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stat strong { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.stat small { font-size: 10.5px; color: var(--muted); }

.stat-tax { border-left: 3px solid #2563eb; }
.stat-namjari { border-left: 3px solid #10b981; }
.stat-dcr { border-left: 3px solid #f59e0b; }
.stat-khatian { border-left: 3px solid #8b5cf6; }
.stat-total { border-left: 3px solid #0f172a; }

.kind {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  white-space: nowrap;
}

.kind-namjari { background: rgba(16, 185, 129, .12); color: #047857; }
.kind-dcr { background: rgba(245, 158, 11, .15); color: #b45309; }
.kind-khatian { background: rgba(139, 92, 246, .13); color: #6d28d9; }

.link-danger {
  border: 0;
  background: none;
  padding: 0;
  color: var(--danger);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.link-danger:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table small { color: var(--muted); font-size: 11px; }

/* ---------------- রেফারেল ---------------- */
.ref-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 10px 0 16px;
  border: 1px dashed rgba(37, 99, 235, .4);
  border-radius: 14px;
  background: rgba(37, 99, 235, .05);
}

.ref-box small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.ref-box strong { font-size: 22px; letter-spacing: .14em; font-family: ui-monospace, "Cascadia Code", monospace; }

.ref-link-row { display: flex; gap: 8px; margin-bottom: 18px; }
.ref-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fafbfe;
}

.ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ref-stats > div { text-align: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfe; }
.ref-stats strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.ref-stats small { font-size: 10.5px; color: var(--muted); }

/* ---------------- ফর্ম ও ডায়ালগ ---------------- */
.field-label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

#p-name, #p-phone, #pw-current, #pw-new,
.dialog-body input, .dialog-body select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
}

#p-name:focus, #p-phone:focus, #pw-current:focus, #pw-new:focus,
.dialog-body input:focus, .dialog-body select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.save-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

dialog {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 0;
  width: min(520px, 94vw);
  background: #fff;
  color: var(--ink);
}

dialog::backdrop { background: rgba(9, 16, 28, .45); }

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

.dialog-head h2 { margin: 0; font-size: 16px; }

.close-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}

.close-btn:hover { background: #f1f5fb; color: var(--ink); }

.dialog-body { padding: 16px 20px 20px; max-height: 72vh; overflow: auto; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
  .ref-stats { grid-template-columns: 1fr 1fr; }
  .ref-box { flex-direction: column; align-items: flex-start; }
  .ref-box .btn { width: 100%; }
  .ref-link-row { flex-direction: column; }
}


/* ==================================================================
   ক্লায়েন্ট প্যানেল — সাইডবার লেআউট (2026-12-01)
   ================================================================== */
body.panel {
  display: block;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(37, 99, 235, .10), transparent 65%),
    linear-gradient(180deg, #f6f9fe, #eaf1fb);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0b1a33;
  color: #fff;
  font-size: 13px;
}
.skip-link:focus { left: 12px; }

.shell { display: flex; min-height: 100dvh; align-items: stretch; }

/* ---------- সাইডবার ---------- */
.side {
  width: 268px;
  flex: 0 0 268px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, #0b1a33 0%, #112644 55%, #0a172c 100%);
  color: #c8d6ee;
  border-right: 1px solid rgba(255, 255, 255, .06);
  overflow-y: auto;
  z-index: 30;
}

.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 14px; }
.side .brand { color: #fff; }
.side .brand img { background: #fff; padding: 4px 7px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 8px 16px rgba(0,0,0,.20); }
.side .brand strong { font-size: 14px; letter-spacing: .2px; }
.side .brand small { color: #93a8c9; }

.side-close {
  display: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: transparent;
  color: #c8d6ee;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }

.side-label {
  margin: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6f86aa;
}
.side-label:first-child { margin-top: 2px; }

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c8d6ee;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.side-item svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .88; }
.side-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, .34), rgba(59, 130, 246, .10));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .32);
}
.side-item:focus-visible { outline: 2px solid #7aa7ff; outline-offset: 2px; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }

.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.side-user .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.side-user-meta { min-width: 0; }
.side-user-meta strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-meta small { display: block; font-size: 11px; color: #93a8c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.side .logout {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #e6eefc;
  font-size: 12px;
}
.side .logout:hover { background: rgba(255, 255, 255, .14); }
.side .ghost-link { color: #93a8c9; font-size: 12px; }
.side .ghost-link:hover { color: #fff; }
.side-version { margin: 0 0 2px; padding: 0 4px; font-size: 10.5px; color: #5d7597; }

/* ---------- মূল অংশ ---------- */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.topbar-title strong { font-size: 15px; }
.topbar-title small { font-size: 11px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.plan-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #d3e2ff;
}

.btn.sm { padding: 8px 14px; font-size: 12.5px; }

body.panel .wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 26px 44px;
  flex: 1 1 auto;
}

body.panel .foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  background: rgba(255, 255, 255, .55);
}

body.panel .page-head { margin-bottom: 16px; }
body.panel .page-head h1 { margin: 2px 0 4px; font-size: 24px; }

/* লগইন / বন্ধ অবস্থায় সাইডবার ও টপবারের অপ্রয়োজনীয় অংশ */
body.panel:not(.is-member) .side { display: none; }
body.panel:not(.is-member) .menu-btn,
body.panel:not(.is-member) .plan-chip { display: none; }
body.panel:not(.is-member) .topbar { justify-content: center; }

.side-scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(6, 17, 35, .5);
  backdrop-filter: blur(2px);
}

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 1080px) {
  .side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .26s ease;
    box-shadow: 0 24px 60px rgba(6, 17, 35, .4);
  }
  body.nav-open .side { transform: none; }
  .side-close { display: inline-grid; place-items: center; }
  .menu-btn { display: inline-grid; place-items: center; }
  body.panel .wrap { padding: 18px 18px 40px; }
  .topbar { padding: 10px 16px; }
}

@media (max-width: 640px) {
  body.panel .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar-title small { display: none; }
  .plan-chip { display: none; }
  body.panel .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .side, .side-item { transition: none; }
}


/* সেটিংসের ফর্ম খুব চওড়া হলে পড়তে অসুবিধা — প্রস্থ সীমিত */
body.panel #view-settings form,
body.panel #view-settings .confirm-row { max-width: 640px; }

@media (max-width: 640px) {
  body.panel .table { min-width: 620px; }
}

/* ==================================================================
   ড্যাশবোর্ড v3 — বড় কার্ড, বেশি জায়গা (2026-12-02)
   ================================================================== */
body.panel .wrap { max-width: 1320px; padding: 28px 34px 56px; }
body.panel .topbar { padding: 13px 30px; }
body.panel .topbar-title strong { font-size: 16px; }

/* পেজ হেড */
body.panel .page-head { margin-bottom: 22px; align-items: flex-end; }
body.panel .page-head h1 { font-size: 30px; letter-spacing: -.025em; }
body.panel .page-head .eyebrow { font-size: 12px; letter-spacing: .04em; }
body.panel .page-head .sub { font-size: 13px; margin-top: 4px; }

/* সব কার্ড বড় */
body.panel .card { padding: 26px 28px; border-radius: 20px; margin-bottom: 20px; }
body.panel .card-head { margin-bottom: 18px; }
body.panel .card-head h2 { font-size: 16.5px; letter-spacing: -.015em; }

/* ফিল্টার বার */
body.panel .filter-card { padding: 18px 24px; }
body.panel .filter-row { gap: 12px; }
body.panel .filter-row label { font-size: 12.5px; }
body.panel .filter-row input[type="date"] { height: 42px; padding: 0 12px; font-size: 13.5px; border-radius: 11px; }
body.panel .btn { font-size: 13.5px; padding: 11px 18px; border-radius: 11px; }
body.panel .btn.ghost { padding: 11px 16px; }

/* স্ট্যাট কার্ড — অনেক বড় */
body.panel .stats { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 18px; margin-bottom: 20px; }
body.panel .stat {
  gap: 6px;
  padding: 22px 24px;
  min-height: 152px;
  border-radius: 20px;
  align-content: start;
  border-left-width: 4px;
  box-shadow: 0 22px 44px -36px rgba(11, 23, 45, .55), 0 1px 2px rgba(11, 23, 45, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.panel .stat:hover { transform: translateY(-2px); box-shadow: 0 26px 52px -34px rgba(11, 23, 45, .5), 0 2px 6px rgba(11, 23, 45, .06); }

body.panel .stat-tax { --tone: #2563eb; --tone-soft: #e9f0ff; }
body.panel .stat-namjari { --tone: #10b981; --tone-soft: #e6f8f1; }
body.panel .stat-dcr { --tone: #f59e0b; --tone-soft: #fdf3e3; }
body.panel .stat-khatian { --tone: #8b5cf6; --tone-soft: #f2ecff; }
body.panel .stat-total { --tone: #0f172a; --tone-soft: #eceff6; }

body.panel .stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.panel .stat-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); max-width: 140px; line-height: 1.45; }
body.panel .stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: var(--tone-soft, #eef2f9);
  color: var(--tone, var(--ink-2));
  margin-top: 2px;
}
body.panel .stat-icon svg { width: 21px; height: 21px; }
body.panel .stat strong { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; margin-top: 6px; }
body.panel .stat small, body.panel .stat .stat-sub { font-size: 11.5px; color: var(--muted); }

/* টেবিল */
body.panel .table { font-size: 13.5px; }
body.panel .table th { font-size: 11.5px; padding: 11px 12px; }
body.panel .table td { padding: 15px 12px; }
body.panel .table .pill { font-size: 11px; padding: 4px 10px; }

/* প্ল্যান / কোটা / রেফারেল */
body.panel .grid-2 { gap: 20px; }
body.panel .plan-name { font-size: 28px; }
body.panel .facts { gap: 14px; }
body.panel .facts dt { font-size: 11.5px; }
body.panel .facts dd { font-size: 17px; }
body.panel .quota-value { font-size: 14px; }
body.panel .quota-value strong { font-size: 34px; }
body.panel .bar { height: 12px; }
body.panel .muted { font-size: 12.5px; }
body.panel .notice { font-size: 13px; }
body.panel .badge { font-size: 11.5px; padding: 5px 11px; }

/* সেটিংস ইনপুট একটু বড় */
body.panel #view-settings input,
body.panel #view-settings select { padding: 11px 13px; font-size: 13.5px; border-radius: 11px; }

/* রেসপন্সিভ */
@media (max-width: 1220px) {
  body.panel .stats { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }
}
@media (max-width: 1080px) {
  body.panel .wrap { padding: 22px 22px 46px; }
  body.panel .stat { min-height: 136px; padding: 19px 20px; }
  body.panel .stat strong { font-size: 30px; }
  body.panel .card { padding: 22px 22px; }
}
@media (max-width: 640px) {
  body.panel .wrap { padding: 18px 16px 40px; }
  body.panel .page-head h1 { font-size: 24px; }
  body.panel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.panel .stat { min-height: 118px; padding: 15px 15px; border-radius: 16px; border-left-width: 3px; }
  body.panel .stat strong { font-size: 26px; margin-top: 2px; }
  body.panel .stat-label { font-size: 11.5px; }
  body.panel .stat-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  body.panel .stat-icon svg { width: 17px; height: 17px; }
  body.panel .card { padding: 18px; border-radius: 16px; }
  body.panel .card-head h2 { font-size: 15px; }
  body.panel .table { min-width: 640px; }
}

/* স্ট্যাট কার্ডের গ্রিড — এক সারিতে সব, ছোট স্ক্রিনে সুন্দরভাবে ভাগ */
body.panel .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1239px) {
  body.panel .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  body.panel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 640px) {
  body.panel .page-head { align-items: flex-start; gap: 12px; }
  body.panel .page-head > div { width: 100%; }
}

/* ==================================================================
   লগইন / সাইন আপ — ফুল পেজ (2026-12-02)
   ================================================================== */
body.panel.auth-page .topbar,
body.panel.auth-page .foot { display: none; }
body.panel.auth-page .wrap { max-width: none; padding: 0; }
body.panel.auth-page .shell { min-height: 100dvh; }

.auth { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 100dvh; }

/* বাঁ দিকের ব্র্যান্ড প্যানেল */
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 46px 54px;
  overflow: hidden;
  color: #d7e4f7;
  background:
    radial-gradient(70% 55% at 8% 0%, rgba(37, 99, 235, .42), transparent 62%),
    linear-gradient(165deg, #0a1830 0%, #0e2344 55%, #071427 100%);
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .26), transparent 66%);
}
.auth-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.auth-brand img { height: 42px; width: auto; border-radius: 11px; background: #fff; padding: 5px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.22); }
.auth-brand strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.auth-brand small { display: block; font-size: 11.5px; color: #93aac9; margin-top: 1px; }

.auth-pitch { margin-top: auto; }
.auth-pitch .eyebrow { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6fb1f0; }
.auth-pitch h2 { margin: 0 0 22px; font-size: 34px; line-height: 1.34; letter-spacing: -.02em; color: #fff; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.auth-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.6; color: #c6d6ec; }
.auth-points svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: #5eead4; }

.auth-trust {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  padding: 15px 17px;
  border: 1px solid rgba(148, 197, 255, .22);
  border-radius: 14px;
  background: rgba(12, 32, 60, .5);
  font-size: 12.5px;
  line-height: 1.65;
  color: #b9cde7;
}
.auth-trust svg { width: 20px; height: 20px; flex: 0 0 20px; color: #4ade80; }

.auth-foot { margin-top: auto; font-size: 11.5px; color: #7d95b6; }
.auth-foot a { color: #9dc0ea; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ডান দিকের ফর্ম */
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 46px 26px;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(37, 99, 235, .12), transparent 62%),
    linear-gradient(180deg, #f8fbff, #eef4fc);
}
.auth-mini-brand { display: none; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.auth-mini-brand img { width: 30px; height: 32px; }

.auth-card {
  width: min(462px, 100%);
  padding: 24px 28px 26px;
  background: #fff;
  border: 1px solid #e2e9f4;
  border-radius: 22px;
  box-shadow: 0 34px 76px -54px rgba(11, 23, 45, .6), 0 2px 6px rgba(11, 23, 45, .05);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: #eef2f9;
  border-radius: 12px;
}
.auth-tabs button {
  position: relative;
  z-index: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #5a6b85;
  cursor: pointer;
  transition: color .18s ease;
}
.auth-tabs button.on { color: #12203a; }
.auth-tab-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(11, 23, 45, .12);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.auth-tabs.alt .auth-tab-pill { transform: translateX(calc(100% + 8px)); }

.auth-form h1 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.025em; }
.auth-form .lead { margin: 0 0 20px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.auth-form label { display: block; margin: 14px 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.auth-form > input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-form > input:focus,
.field input:focus {
  outline: none;
  border-color: #93b4ea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.field { position: relative; display: flex; align-items: center; }
.field input {
  width: 100%;
  padding: 12px 44px 12px 41px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field-icon { position: absolute; left: 13px; width: 18px; height: 18px; color: #93a5bd; pointer-events: none; }
.reveal {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8395ad;
  cursor: pointer;
}
.reveal svg { width: 18px; height: 18px; }
.reveal:hover { background: #f1f5fb; color: #4a5f7d; }

.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}
.link:hover { text-decoration: underline; }

.consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 14px; font-size: 11.8px; font-weight: 400; line-height: 1.65; color: var(--muted); }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 16px; }

.auth-form .btn.full { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; font-size: 14px; }
.auth-form .btn.full svg { width: 18px; height: 18px; }

.auth-switch { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.opt { font-size: 11.5px; font-weight: 400; color: #93a3b8; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--ink); }

.ok-note { margin: 14px 0 0; padding: 11px 13px; border: 1px solid #bbf7d0; border-radius: 10px; background: #ecfdf5; color: #15803d; font-size: 12.3px; line-height: 1.65; }
.auth-note { margin: 0; font-size: 11.5px; color: #8595ab; text-align: center; }
.auth-note a { color: #5b7ba8; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { justify-content: flex-start; padding: 28px 16px 44px; gap: 16px; }
  .auth-mini-brand { display: inline-flex; }
  .auth-card { padding: 20px 20px 22px; border-radius: 18px; }
  .auth-form h1 { font-size: 21px; }
}

.auth-card.solo .auth-tabs { display: none; }

/* ==================================================================
   লগইন / সাইন আপ — মোবাইল ফ্রেন্ডলি (ডিজাইন অপরিবর্তিত)
   ================================================================== */
@media (max-width: 980px) {
  .auth-main {
    justify-content: flex-start;
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  .auth-mini-brand { font-size: 13px; padding: 6px 2px; }
  .auth-card { width: 100%; max-width: 460px; border-radius: 18px; }
}

@media (max-width: 640px) {
  .auth-card { padding: 16px 16px 20px; }

  /* iOS-এ ফোকাসে জুম এড়াতে ইনপুট অন্তত ১৬px */
  .auth-form > input,
  .field input { font-size: 16px; padding: 13px 44px 13px 42px; }
  .auth-form > input { padding-right: 16px; padding-left: 14px; }
  .field input { padding-left: 41px; }
  .auth-form label { font-size: 12.5px; margin: 13px 0 6px; }
  .label-row { margin-top: 13px; }
  .label-row .link { font-size: 12.5px; padding: 4px 0; }

  .auth-form h1 { font-size: 21px; }
  .auth-form .lead { font-size: 12.5px; margin-bottom: 16px; }
  .auth-tabs { margin-bottom: 18px; }
  .auth-tabs button { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 0; font-size: 13.5px; }
  .auth-tab-pill { height: calc(100% - 8px); }

  /* ট্যাপ টার্গেট বড় */
  .reveal { width: 40px; height: 40px; right: 4px; }
  .reveal svg { width: 19px; height: 19px; }
  .consent { gap: 10px; font-size: 12.2px; margin: 14px 0 12px; }
  .consent input { width: 19px; height: 19px; flex-basis: 19px; margin-top: 1px; }

  .auth-form .btn.full { padding: 14px 18px; font-size: 15px; min-height: 50px; }
  .auth-switch { margin-top: 14px; font-size: 13px; }
  .auth-switch .link { padding: 6px 2px; font-size: 13px; }

  .back-link { padding: 8px 2px; margin-bottom: 10px; font-size: 13px; }
  .ok-note { font-size: 12.5px; }
  .auth-note { display: none; }
}

@media (max-width: 380px) {
  .auth-main { padding: 16px 12px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .auth-card { padding: 14px 14px 18px; border-radius: 16px; }
  .auth-form h1 { font-size: 19.5px; }
  .auth-tabs button { font-size: 13px; }
  .auth-form .btn.full { font-size: 14.5px; }
}

/* ==================================================================
   লগইন কার্ড — ডেস্কটপে বড়, মোবাইলে কেন্দ্রে (2026-12-02)
   ================================================================== */
.auth-card { width: min(586px, 100%); }

@media (min-width: 981px) {
  .auth-card { padding: 36px 42px 38px; border-radius: 26px; }
  .auth-tabs { margin-bottom: 24px; padding: 5px; border-radius: 13px; }
  .auth-tabs button { padding: 12px 0; font-size: 14.5px; border-radius: 10px; }
  .auth-tab-pill { top: 5px; left: 5px; height: calc(100% - 10px); border-radius: 10px; }
  .auth-form h1 { font-size: 28px; margin-bottom: 9px; }
  .auth-form .lead { font-size: 13.5px; margin-bottom: 26px; }
  .auth-form label { font-size: 13px; margin: 16px 0 8px; }
  .auth-form > input,
  .field input { padding: 15px 50px 15px 46px; font-size: 15px; border-radius: 13px; }
  .auth-form > input { padding-right: 16px; padding-left: 15px; }
  .field-icon { left: 15px; width: 19px; height: 19px; }
  .reveal { width: 36px; height: 36px; right: 8px; }
  .reveal svg { width: 19px; height: 19px; }
  .label-row { margin-top: 16px; }
  .consent { margin: 18px 0 16px; font-size: 12.5px; gap: 10px; }
  .consent input { width: 17px; height: 17px; flex-basis: 17px; }
  .auth-form .btn.full { padding: 16px 22px; font-size: 15.5px; }
  .auth-switch { margin-top: 18px; font-size: 13px; }
}

@media (max-width: 980px) {
  .auth-main { justify-content: safe center; min-height: 100dvh; }
}
@media (max-width: 640px) {
  .auth-card { width: 100%; padding: 18px 16px 20px; border-radius: 18px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 15px 14px 18px; }
}

/* লগইন পেজের পূর্ণ লোগো */
.auth-lockup { display: block; width: min(330px, 82%); margin: 0 auto 6px; }
.auth-lockup img { display: block; width: 100%; height: auto; }
@media (max-width: 980px) { .auth-lockup { width: min(280px, 76%); } }
