/* ISP প্যানেল — ডার্ক ড্যাশবোর্ড থিম (ডিফল্ট) + লাইট থিম ([data-theme="light"]) */
:root {
  --bg: #0a1024;
  --bg-glow-1: rgba(79, 70, 229, 0.16);
  --bg-glow-2: rgba(14, 165, 233, 0.1);
  --surface: #0f1832;
  --surface-2: #141d36;
  --card-grad: linear-gradient(180deg, rgba(21, 30, 56, 0.92), rgba(12, 18, 37, 0.96));
  --side-bg: linear-gradient(180deg, rgba(19, 28, 52, 0.96), rgba(11, 17, 35, 0.98));
  --line: rgba(130, 150, 210, 0.17);
  --line-strong: rgba(130, 150, 210, 0.3);
  --text: #e8ecf8;
  --muted: #8d99b8;
  --hover: rgba(255, 255, 255, 0.05);
  --blue: #4c8dff;
  --indigo: #7c7bff;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --green: #22c58b;
  --amber: #f5a524;
  --red: #f4585f;
  --grey: #6b7790;
  --blue-soft: rgba(76, 141, 255, 0.15);
  --green-soft: rgba(34, 197, 139, 0.15);
  --amber-soft: rgba(245, 165, 36, 0.15);
  --red-soft: rgba(244, 88, 95, 0.15);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --input-bg: rgba(8, 13, 28, 0.7);
  --font: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Kalpurush", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #eef1f8;
  --bg-glow-1: rgba(99, 102, 241, 0.08);
  --bg-glow-2: rgba(14, 165, 233, 0.07);
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --card-grad: linear-gradient(180deg, #ffffff, #fbfcff);
  --side-bg: linear-gradient(180deg, #ffffff, #f7f8fd);
  --line: rgba(40, 60, 110, 0.14);
  --line-strong: rgba(40, 60, 110, 0.28);
  --text: #131c33;
  --muted: #5b6785;
  --hover: rgba(30, 50, 110, 0.06);
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #0891b2;
  --green: #0f9d6c;
  --amber: #b97700;
  --red: #d63a42;
  --grey: #8a95ad;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --green-soft: rgba(15, 157, 108, 0.12);
  --amber-soft: rgba(185, 119, 0, 0.13);
  --red-soft: rgba(214, 58, 66, 0.1);
  --shadow: 0 8px 26px rgba(30, 50, 110, 0.1);
  --input-bg: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 78% -8%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 480px at 4% 18%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; line-height: 1.3; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.1px; }
h3 { font-size: 15.5px; font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.hidden { display: none !important; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 238px 1fr; gap: 22px; min-height: 100vh; padding: 16px; transition: grid-template-columns 0.2s; }
.shell.collapsed { grid-template-columns: 74px 1fr; }
.side {
  background: var(--side-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 10px;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden auto;
  scrollbar-width: none; /* স্ক্রলবার লুকানো — মাউস হুইল/টাচে স্ক্রল চলবে */
}
.side::-webkit-scrollbar { display: none; }
#collapse {
  position: fixed; z-index: 40; top: 34px; left: calc(16px + 238px - 12px);
  width: 24px; height: 24px; border-radius: 50%; padding: 0;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); transition: left 0.2s, color 0.15s, border-color 0.15s;
}
#collapse:hover { color: var(--text); border-color: var(--indigo); }
#collapse svg { width: 14px; height: 14px; transition: transform 0.2s; }
.shell.collapsed #collapse { left: calc(16px + 74px - 12px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.brand .logo svg { width: 20px; height: 20px; }
.brand .names { min-width: 0; flex: 1; }
.brand b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.2px; color: var(--green); font-weight: 700; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--hover); color: var(--muted);
  cursor: pointer; display: grid; place-items: center; flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.shell.collapsed .brand .names, .shell.collapsed .side .nav span, .shell.collapsed .side .who-name { display: none; }
.shell.collapsed .brand { flex-direction: column; }
.shell.collapsed .side .nav { justify-content: center; padding: 11px 0; }
.shell.collapsed #collapse svg { transform: rotate(180deg); }

.side a.nav {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted);
  text-decoration: none; font-weight: 500; font-size: 14.5px; border: 1px solid transparent;
}
.side a.nav:hover { background: var(--hover); color: var(--text); }
.side a.nav.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(76, 141, 255, 0.08));
  border-color: rgba(124, 123, 255, 0.35); color: var(--text);
}
.side a.nav.active svg { color: var(--indigo); }
.side .spacer { flex: 1; }
.side .foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--red)); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.who-name { min-width: 0; font-size: 13px; line-height: 1.25; }
.who-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-name span { color: var(--muted); font-size: 11px; }
.side .foot .row { display: flex; gap: 6px; }
.side .foot .row .icon-btn { flex: 1; width: auto; height: 34px; }
/* অ্যাডমিন বক্স নিচে স্থির থাকে; মেনু স্ক্রল করলে এর নিচ দিয়ে চলে যায় */
@media (min-width: 901px) {
  .side .foot { position: sticky; bottom: -14px; z-index: 3; margin: 8px -10px -14px; padding: 10px 10px 14px; background: var(--surface); border-radius: 0 0 20px 20px; box-shadow: 0 -10px 18px -6px rgba(0, 0, 0, 0.35); }
}

.main { min-width: 0; padding: 4px 18px 60px 0; max-width: none; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  /* মোবাইল: সাইডবার বাম দিক থেকে খোলা ড্রয়ার, উপরে ☰ বার */
  .shell, .shell.collapsed { grid-template-columns: 1fr; gap: 12px; padding: 10px; }
  .side, .shell.collapsed .side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 272px; max-width: 86vw; height: 100%;
    border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform 0.22s ease; padding: 14px 10px;
  }
  .shell.nav-open .side { transform: none; }
  .shell.collapsed .brand .names, .shell.collapsed .side .nav span, .shell.collapsed .side .who-name { display: initial; }
  .shell.collapsed .brand { flex-direction: row; }
  .shell.collapsed .side .nav { justify-content: flex-start; padding: 10px 12px; }
  #collapse { display: none; }
  .mbar { display: flex !important; }
  .mback { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .shell.nav-open .mback { opacity: 1; pointer-events: auto; }
  .main { padding: 0 0 60px; }
}

/* ---------- controls ---------- */
.btn {
  border: 1px solid var(--line-strong); background: var(--surface-2); padding: 8px 15px; border-radius: 11px; cursor: pointer;
  font-weight: 600; min-height: 38px; color: var(--text);
}
.btn:hover { border-color: var(--blue); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #3b82f6, #6366f1); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 4px 11px; min-height: 30px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
a.btn { display: inline-flex; align-items: center; gap: 6px; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], input[type=month], input[type=tel], input[type=email], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--input-bg); min-height: 39px;
}
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 70px; resize: vertical; }
label.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
label.check input { margin-top: 5px; accent-color: var(--indigo); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.inline { display: flex; gap: 8px; align-items: flex-end; }
.inline > label { flex: 1; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filters > * { flex: 1; min-width: 140px; }

/* ---------- cards & lists ---------- */
.card { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card, .stats + .card { margin-top: 16px; }
.g > .card + .card { margin-top: 0; } /* গ্রিডের পাশাপাশি কার্ড একই লাইনে থাকবে */
.card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card .head h3 { display: flex; align-items: center; gap: 9px; }
.card .pad { padding: 16px; }
.card .head h3 svg { color: var(--indigo); }

.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.item:last-child { border-bottom: 0; }
.item .title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .sub { color: var(--muted); font-size: 13px; }
.item .tools { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.item .amt { text-align: right; font-weight: 700; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

.led { width: 9px; height: 9px; border-radius: 50%; background: var(--grey); display: inline-block; flex: none; }
.led.on { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.22), 0 0 10px rgba(34, 197, 139, 0.6); }
.led.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.2); }
.led.off { background: var(--grey); }

.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge.paid, .badge.active { background: var(--green-soft); color: var(--green); }
.badge.partial, .badge.suspended { background: var(--amber-soft); color: var(--amber); }
.badge.unpaid { background: var(--red-soft); color: var(--red); }
.badge.disabled { background: var(--hover); color: var(--muted); }
.badge.svc { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.badge.svc.hotspot { background: var(--amber-soft); color: var(--amber); }
.badge.vs-new { background: var(--blue-soft); color: var(--blue); }
.badge.vs-sold { background: var(--green-soft); color: var(--green); }
.badge.vs-void { background: var(--hover); color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.stat.hl { border-color: rgba(76, 141, 255, 0.55); background: linear-gradient(180deg, rgba(76, 141, 255, 0.16), rgba(76, 141, 255, 0.04)); }

.summary { display: flex; gap: 22px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.summary div span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.summary div b { font-size: 19px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 5px 10px; margin-bottom: 12px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }
.banner { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245, 165, 36, 0.5); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.banner a { color: inherit; text-decoration: underline; }
.pw { font-family: ui-monospace, Menlo, Consolas, monospace; }
.selbar { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; z-index: 2; }
.selbar .grow { flex: 1; }
.vitem .title .check { gap: 8px; margin: 0; }
.vitem .pw { font-size: 16px; font-weight: 700; letter-spacing: 1px; }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3, 6, 15, 0.7); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; border: 1px solid var(--line-strong); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head button { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 11px 15px; border-radius: 12px; background: #1b2748; color: #fff; font-weight: 600; border: 1px solid rgba(124, 123, 255, 0.4); box-shadow: var(--shadow); }
.toast.err { background: #5a1f27; border-color: var(--red); }
.toast.warn { background: #5a4310; border-color: var(--amber); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--card-grad); border: 1px solid var(--line-strong); width: 100%; max-width: 380px; border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.login-card .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.err-text { color: var(--red); font-weight: 600; min-height: 22px; margin: 6px 0; }

/* ================= ড্যাশবোর্ড ================= */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head .clock { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dash-head .clock b { color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 13px; font-weight: 600; }
.chip.ok { border-color: rgba(34, 197, 139, 0.5); color: var(--green); background: var(--green-soft); }
.chip.bad { border-color: rgba(244, 88, 95, 0.5); color: var(--red); background: var(--red-soft); }
.chip.warn { border-color: rgba(245, 158, 11, 0.5); color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.chip.info { border-color: rgba(76, 141, 255, 0.45); color: var(--blue); background: var(--blue-soft); }

.g { display: grid; gap: 16px; margin-top: 16px; }
.g.top { grid-template-columns: 310px 1fr; align-items: start; }
.g.three { grid-template-columns: 1.15fr 1.15fr 0.9fr; }
.g.three > * { min-width: 0; }
.g.income { grid-template-columns: repeat(3, 1fr); }
.g.wide-narrow { grid-template-columns: 2.1fr 1fr; }
.g.halves { grid-template-columns: 1fr 1fr; }
/* ইউজার ওভারভিউ আর OLT ওভারভিউ পাশাপাশি, প্রতিটায় ২x২ বক্স */
.g.ovpair { grid-template-columns: 1fr 1fr; }
.ovpair > .card { margin: 0; }
.ovpair .tiles2 { grid-template-columns: 1fr 1fr; }
.ovpair .ptitle { min-height: 34px; }
/* ইউজার ওভারভিউ কার্ড */
.uo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uo-card { position: relative; display: flex; flex-direction: column; padding: 15px 16px 14px; border-radius: 16px; text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--ub) 0%, rgba(255,255,255,.035) 55%, rgba(255,255,255,.015) 100%);
  border: 1px solid rgba(255,255,255,.10); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.28); transition: transform .18s, box-shadow .18s, border-color .18s; }
/* কাচের ভেতরে রঙিন আলো */
.uo-card::before { content: ''; position: absolute; z-index: -1; width: 150px; height: 150px; right: -50px; top: -60px; border-radius: 50%; background: radial-gradient(circle, var(--uc) 0%, transparent 68%); opacity: .38; filter: blur(6px); }
/* উপরের দিকে কাচের চকচকে ভাব */
.uo-card::after { content: ''; position: absolute; z-index: -1; inset: 0 0 55% 0; background: linear-gradient(180deg, rgba(255,255,255,.07), transparent); pointer-events: none; }
.uo-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.34), 0 0 0 1px var(--ub); }
.uo-card.blue { --uc: #4c8dff; --ub: rgba(76,141,255,.20); }
.uo-card.green { --uc: #22c58b; --ub: rgba(34,197,139,.20); }
.uo-card.amber { --uc: #f59e0b; --ub: rgba(245,158,11,.20); }
.uo-card.rose { --uc: #f43f5e; --ub: rgba(244,63,94,.20); }
.uo-top { display: flex; align-items: center; justify-content: space-between; }
.uo-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.uo-ic .ic { width: 18px; height: 18px; color: var(--uc); }
.uo-pc { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--uc); }
.uo-n { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 12px; letter-spacing: -.5px; }
.uo-l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.uo-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.uo-bar i { display: block; height: 100%; border-radius: 99px; background: var(--uc); box-shadow: 0 0 10px var(--uc); }
.uo-warn { margin-top: 12px; font-size: 12px; color: #f59e0b; background: rgba(245,158,11,.1); padding: 7px 12px; border-radius: 9px; }
[data-theme="light"] .uo-card { border-color: rgba(15,23,42,.08); background: linear-gradient(135deg, var(--ub) 0%, rgba(255,255,255,.75) 60%, rgba(255,255,255,.6) 100%); box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(15,23,42,.08); }
[data-theme="light"] .uo-ic, [data-theme="light"] .uo-pc { background: rgba(255,255,255,.7); border-color: rgba(15,23,42,.08); }
/* OLT ওভারভিউ */
.oo { display: flex; align-items: center; gap: 26px; padding: 6px 4px 4px; }
.oo-ring { position: relative; width: 168px; height: 168px; flex: none; text-decoration: none; }
.oo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.oo-ring circle { fill: none; stroke-width: 13; }
.oo-ring .trk { stroke: rgba(148, 163, 184, 0.14); }
.oo-ring .on { stroke: #22c58b; }
.oo-ring .wk { stroke: #a78bfa; }
.oo-ring .off { stroke: #f59e0b; }
.oo-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.oo-c b { font-size: 27px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.oo-c small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.oo-list { flex: 1; min-width: 0; display: grid; gap: 13px; }
.oo-tot { display: flex; align-items: baseline; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.oo-tot span { font-size: 13px; color: var(--muted); }
.oo-tot b { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.oo-tot em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(34, 197, 139, 0.12); color: #22c58b; white-space: nowrap; }
.oo-tot em.warn { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.oo-row { display: grid; grid-template-columns: 10px 1fr auto 64px; align-items: center; column-gap: 10px; row-gap: 6px; }
.oo-row i { width: 10px; height: 10px; border-radius: 3px; }
.oo-row span { font-size: 13.5px; color: var(--text); }
.oo-row b { font-size: 17px; font-weight: 800; color: var(--text); text-align: right; }
.oo-row em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; }
.oo-bar { grid-column: 2 / -1; height: 5px; border-radius: 99px; background: rgba(148, 163, 184, 0.13); overflow: hidden; }
.oo-bar s { display: block; height: 100%; border-radius: 99px; }
.oo-row.on i, .oo-row.on s { background: #22c58b; }
.oo-row.off i, .oo-row.off s { background: #f59e0b; }
.oo-row.wk i, .oo-row.wk s { background: #a78bfa; }
.oo-row.ex i, .oo-row.ex s { background: #f43f5e; }
.oo-olt .ic { width: 15px; height: 15px; color: var(--muted); }
.oo-olts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.oo-olt { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--hover); text-decoration: none; color: var(--text); font-size: 12.5px; }
.oo-olt i { width: 8px; height: 8px; border-radius: 50%; background: #64748b; flex: none; }
.oo-olt i.ok { background: #22c58b; box-shadow: 0 0 0 3px rgba(34, 197, 139, 0.18); }
.oo-olt i.bad { background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18); }
.oo-olt span { color: var(--muted); }
.oo-olt small { color: var(--muted); opacity: 0.8; }
@media (max-width: 560px) { .oo { flex-direction: column; } .oo-list { width: 100%; } }
@media (max-width: 1100px) { .g.ovpair { grid-template-columns: 1fr; } }
.col { display: grid; gap: 16px; }
@media (max-width: 1100px) {
  .g.top, .g.three, .g.wide-narrow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .g.income, .g.halves { grid-template-columns: 1fr; }
}

.panel { padding: 16px; position: relative; }
.ptitle { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 15.5px; font-weight: 700; }
.ptitle svg { color: var(--indigo); }
.ptitle .grow { flex: 1; }
.ptitle a { font-size: 12.5px; font-weight: 600; }

/* রাউটার প্যানেল */
.router-hero { padding: 5px; border: 1px solid rgba(124, 123, 255, 0.55); box-shadow: 0 0 0 1px rgba(124, 123, 255, 0.1), 0 0 38px rgba(99, 102, 241, 0.18); }
.router-hero .face { background: transparent; border-radius: 12px; padding: 0; }
.router-hero .note:empty, .router-hero .offline-note.hidden { display: none; }
.router-card .face { border-radius: 12px; }
.router-card .face svg { display: block; width: 100%; height: auto; }
.router-card .note:empty, .router-card .offline-note.hidden { display: none; }
.router-card .offline-note { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; text-align: center; }
.router-hero svg { display: block; width: 100%; height: auto; }
.router-hero .offline-note { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; text-align: center; }

/* KPI কার্ড (হটস্পট / PPPoE) */
.kpi .big { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(76, 141, 255, 0.06); }
.kpi .big b { font-size: 40px; line-height: 1; color: var(--blue); }
.kpi .big span { color: var(--muted); font-size: 17px; }
.kpi.violet .big { background: rgba(124, 123, 255, 0.07); }
.kpi.violet .big b { color: var(--indigo); }
.kpi .tot { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.rows { display: grid; gap: 7px; font-size: 14px; }
.rows > div { display: flex; justify-content: space-between; gap: 10px; }
.rows > div span:first-child { color: var(--muted); }
.rows > div b { font-weight: 600; text-align: right; }
.yes { color: var(--green); }
.no { color: var(--red); }
.meter { height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 6px; }

/* ট্রাফিক পরিসংখ্যান */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .tgrid { grid-template-columns: 1fr 1fr; } }
.tcard { border: 1px solid var(--line-strong); border-top-width: 2px; border-radius: 13px; padding: 12px 12px 10px; text-align: center; background: rgba(255, 255, 255, 0.02); }
.tcard .l { font-size: 11px; letter-spacing: 1px; font-weight: 700; color: var(--muted); }
.tcard .n { font-size: 27px; font-weight: 700; margin: 3px 0 7px; }
.tcard .n small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.tcard .ud { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; }
.tcard .ud .up { color: var(--blue); }
.tcard .ud .dn { color: var(--red); }
.t-blue { border-top-color: var(--blue); } .t-amber { border-top-color: var(--amber); } .t-green { border-top-color: var(--green); }
.t-violet { border-top-color: var(--violet); } .t-cyan { border-top-color: var(--cyan); } .t-red { border-top-color: var(--red); }
.divider { border: 0; border-top: 1px dashed var(--line-strong); margin: 16px 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.note { font-size: 12.5px; color: var(--muted); }

/* তালিকা সারি */
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.lrow + .lrow { margin-top: 9px; }
.lrow .idx { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12.5px; flex: none; }
.lrow .mid { flex: 1; min-width: 0; }
.lrow .mid b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .mid span { font-size: 12px; color: var(--muted); }
.lrow .end { text-align: right; font-size: 12px; color: var(--muted); }
.lrow .end b { display: block; font-size: 14.5px; color: var(--green); }
.lrow.green { border-left-color: var(--green); } .lrow.blue { border-left-color: var(--blue); } .lrow.amber { border-left-color: var(--amber); } .lrow.red { border-left-color: var(--red); }
.lrow.amber .idx { background: var(--amber-soft); color: var(--amber); }
.lrow.red .idx { background: var(--red-soft); color: var(--red); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: var(--amber-soft); color: var(--amber); }

/* আয়ের কার্ড */
.inc { text-align: center; padding: 16px 14px; border: 1px solid var(--line-strong); border-top-width: 2px; border-radius: var(--radius); background: var(--card-grad); box-shadow: var(--shadow); }
.inc .l { font-size: 11.5px; letter-spacing: 1px; font-weight: 700; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 7px; }
.inc .v { font-size: 30px; font-weight: 700; margin: 4px 0 2px; }
.inc .s { font-size: 12px; color: var(--muted); min-height: 18px; }
.inc.i-green { border-top-color: var(--green); background: linear-gradient(180deg, rgba(34, 197, 139, 0.1), transparent 70%), var(--card-grad); }
.inc.i-green .v { color: var(--green); }
.inc.i-indigo { border-top-color: var(--indigo); background: linear-gradient(180deg, rgba(124, 123, 255, 0.12), transparent 70%), var(--card-grad); }
.inc.i-amber { border-top-color: var(--amber); background: linear-gradient(180deg, rgba(245, 165, 36, 0.1), transparent 70%), var(--card-grad); }
.inc.i-amber .v { color: var(--amber); }

/* ভাঙ্গন / বকেয়া */
.bk { display: grid; gap: 14px; }
.bk .r { display: grid; gap: 6px; }
.bk .r .t { display: flex; justify-content: space-between; font-size: 14px; }
.bk .r .t span:first-child { display: flex; align-items: center; gap: 8px; }
.bk .r .t small { color: var(--muted); }
.bk .bar { height: 5px; border-radius: 5px; background: var(--hover); overflow: hidden; }
.bk .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.dues { display: grid; gap: 12px; }
.dues .box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); }
.dues .box .cap { font-size: 11px; letter-spacing: 1px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.dues .box .line { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.dues .box .line b { color: var(--red); }
.dues .box .ok { color: var(--green); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }

/* লগ টেবিল */
.logwrap { overflow-x: auto; }
table.logs { width: 100%; border-collapse: collapse; font-size: 13px; }
table.logs th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.025); white-space: nowrap; }
table.logs td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.logs tr:last-child td { border-bottom: 0; }
table.logs td.t { white-space: nowrap; color: var(--muted); }
table.logs td.m { word-break: break-word; }

@media (prefers-reduced-motion: no-preference) {
  .led.on { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 139, 0.1), 0 0 14px rgba(34, 197, 139, 0.7); } }
}

/* মোবাইলে রাউটার প্যানেল পড়ার মতো বড় রেখে আড়াআড়ি স্ক্রল */
@media (max-width: 900px) {
  .router-hero .face { overflow-x: auto; }
  .router-hero svg { min-width: 600px; }
  .router-card .face { overflow-x: auto; }
  .router-card .face svg { min-width: 600px; }
  .dash-head h2 { font-size: 19px; }
}

/* ================= রাউটার সিলেক্টর, রাউটার/ম্যানেজার/OLT ================= */
.rsel { padding: 0 4px 8px; }
.rsel label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--hover); color: var(--muted); }
.rsel select { border: 0; background: transparent; min-height: 28px; padding: 0; color: var(--text); font-weight: 600; font-size: 13px; }
.shell.collapsed .rsel select { display: none; }
@media (max-width: 900px) { .rsel { padding: 0 6px 0 0; flex: none; } .rsel select { max-width: 130px; } }

.inline-sel { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--input-bg); min-height: 39px; color: var(--muted); }
.inline-sel select { border: 0; background: transparent; min-height: 30px; padding: 0 2px; width: auto; color: var(--text); }
.inline-sel span { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }
.nowrap { white-space: nowrap; }
.badge.brand { background: rgba(34, 211, 238, 0.14); color: var(--cyan); font-weight: 700; letter-spacing: 0.5px; }

/* রাউটার তালিকা */
.rrow { border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rmain { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.rname { display: grid; min-width: 150px; flex: 1; }
.rname b { font-size: 15px; }
.ronline { min-width: 130px; }
.ract { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.rdetail { padding: 4px 16px 16px 60px; }
@media (max-width: 760px) { .rdetail { padding-left: 16px; } .ract { margin-left: 0; width: 100%; } }

/* ট্যাব */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; border: 1px solid transparent; font-size: 14px; }
.tabs a:hover { background: var(--hover); color: var(--text); }
.tabs a.active { color: var(--text); background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(76, 141, 255, 0.08)); border-color: rgba(124, 123, 255, 0.35); }
.tabs a.active svg { color: var(--indigo); }

/* টার্মিনাল */
.term-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.term-bar input { font-family: ui-monospace, Menlo, Consolas, monospace; }
.termout { background: rgba(3, 6, 14, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 160px; max-height: 560px; overflow: auto; }
[data-theme="light"] .termout { background: #f5f7fc; }
.tblock + .tblock { border-top: 1px dashed var(--line-strong); margin-top: 12px; padding-top: 12px; }
.tline { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--green); font-weight: 600; word-break: break-all; }
pre.rawout { background: rgba(3, 6, 14, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: auto; max-height: 340px; font-size: 12.5px; line-height: 1.45; white-space: pre; margin: 8px 0 0; }
[data-theme="light"] pre.rawout { background: #f5f7fc; }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; background: rgba(255, 255, 255, 0.02); }
details.adv > summary { cursor: pointer; font-weight: 700; padding: 2px 0 8px; }
details.adv textarea { font-size: 12.5px; }

/* OLT ড্যাশবোর্ড */
.ostats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .ostats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ostats { grid-template-columns: 1fr; } }
.ostat { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ostat small { display: block; color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: 0.4px; }
.ostat b { font-size: 26px; line-height: 1.2; }
.oi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--hover); flex: none; }
.oi svg { width: 24px; height: 24px; }
.oi.big { width: 54px; height: 54px; color: var(--green); background: var(--green-soft); }
.olt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 16px; margin-top: 16px; }
.olt-card { padding: 18px; }
.olt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.olt-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.olt-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); display: inline-block; }
.olt-st.on { color: var(--green); } .olt-st.on i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.olt-st.off { color: var(--red); } .olt-st.off i { background: var(--red); }
.olt-st.unk { color: var(--muted); }
.olt-name { font-size: 20px; margin: 2px 0 4px; }
.olt-host { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.olt-host svg { width: 14px; height: 14px; color: var(--indigo); }
.olt-stats { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, 0.025); }
.olt-stats span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); }
.olt-stats b { font-size: 24px; line-height: 1.2; }
.olt-stats .r { text-align: right; }
.olt-sys { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; margin-top: 10px; font-size: 12.5px; color: var(--cyan); background: rgba(34, 211, 238, 0.04); }
.olt-sys > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.olt-sys svg { width: 14px; height: 14px; }
.olt-sys.bad { color: var(--red); background: var(--red-soft); }
.olt-sys .pw { text-align: right; word-break: break-word; }
.olt-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.olt-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.btn.view { background: var(--green-soft); border-color: rgba(34, 197, 139, 0.45); color: var(--green); }
.btn.ping { background: var(--blue-soft); border-color: rgba(76, 141, 255, 0.45); color: var(--blue); }
.btn.map { color: var(--indigo); border-color: rgba(124, 123, 255, 0.4); background: rgba(124, 123, 255, 0.1); }
.btn.rb { color: var(--red); border-color: rgba(244, 88, 95, 0.4); background: var(--red-soft); }
.btn.sm svg { width: 14px; height: 14px; }

/* ONU তালিকা */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; }
.chk-box { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--hover); font-size: 13.5px; cursor: pointer; }
.chk-box input { accent-color: var(--indigo); }
.ohead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ohead .grow { flex: 1; min-width: 200px; }
.ohead h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.onu-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.searchbox { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 11px; padding: 0 12px; background: var(--input-bg); color: var(--muted); }
.searchbox input { border: 0; background: transparent; min-height: 38px; padding: 0; }
.searchbox input:focus-visible { outline: none; }
table.onu td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
table.onu .ponic { color: var(--indigo); margin-right: 8px; vertical-align: middle; }
table.onu .ponic svg { width: 15px; height: 15px; }
.rxdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; background: var(--grey); }
.rxdot.ex, .rxdot.good { background: var(--green); } .rxdot.weak { background: var(--amber); } .rxdot.poor { background: var(--red); }
.rxq { font-size: 11px; color: var(--muted); font-weight: 600; }
.rxq.weak { color: var(--amber); } .rxq.poor { color: var(--red); }
.onst { display: inline-block; padding: 2px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.onst.on { background: var(--green-soft); color: var(--green); } .onst.off { background: var(--red-soft); color: var(--red); }
.unm { color: var(--muted); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.unm svg { width: 15px; height: 15px; }
.onu-desc { min-width: 180px; line-height: 1.35; }
.onu-desc .ou { display: block; font-size: 15px; font-weight: 800; }
.onu-desc .on { font-size: 13px; color: var(--text); opacity: .85; margin-top: 2px; }
.onu-desc .op { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- রঙিন ড্যাশবোর্ড ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.topbar h2 { margin: 0; }
.topbar .clock { color: var(--muted); font-size: 13px; margin-top: 3px; }
.topbar .clock b { color: var(--text); }
.topbar .chips { align-items: center; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.bell:hover { border-color: var(--blue); }
.bell .ic { width: 19px; height: 19px; }
.bell .dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.hidden { display: none !important; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }

.tiles2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 20px; border-radius: 15px; color: #fff; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
a.tile { cursor: pointer; transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36); }
.tile.blue { background: linear-gradient(135deg, #2f6bff, #4c9dff); }
.tile.teal { background: linear-gradient(135deg, #0e9f8e, #27d3b0); }
.tile.orange { background: linear-gradient(135deg, #f0791d, #ffb03a); }
.tile.purple { background: linear-gradient(135deg, #7c3aed, #b06cff); }
.tile .ti { width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; }
.tile .ti .ic { width: 24px; height: 24px; color: #fff; }
.tile .tl { font-size: 13px; opacity: 0.92; }
.tile .tn { font-size: 30px; font-weight: 800; line-height: 1.15; }
.tile .tp { font-size: 12.5px; opacity: 0.9; }
.tile .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, 0.22); }
.tile .tbar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.85); }

.g.dg1 { grid-template-columns: 1fr 1.25fr; align-items: stretch; }
.g.dg2 { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.dateinp, select.mini { width: auto; min-height: 32px; padding: 3px 9px; font-size: 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--input-bg); color: var(--text); font-family: inherit; }
.ptitle { flex-wrap: wrap; }

.ttiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* ট্রাফিক কার্ড পাশের লাইভ গ্রাফের সমান উঁচু হয় — টাইলগুলো সেই জায়গা সমান ভাগে ভরাট করবে */
.g.dg1 > .card.panel:first-child { display: flex; flex-direction: column; }
#trafficStats { flex: 1; display: flex; flex-direction: column; }
#trafficStats .ttiles { flex: 1; grid-auto-rows: 1fr; }
#trafficStats .tt { display: flex; flex-direction: column; }
#trafficStats .tt .n { margin-top: 4px; }
#trafficStats .tt .tbar { margin-top: auto; }
#trafficStats .tt .ud { padding-top: 6px; }
.tt { border-radius: 12px; padding: 10px 12px; color: #fff; min-width: 0; container-type: inline-size; }
.tt.blue { background: linear-gradient(135deg, #2f6bff, #4c9dff); }
.tt.orange { background: linear-gradient(135deg, #f0791d, #ffb03a); }
.tt.teal { background: linear-gradient(135deg, #0e9f8e, #27d3b0); }
.tt.purple { background: linear-gradient(135deg, #7c3aed, #b06cff); }
.tt.pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.tt.slate { background: linear-gradient(135deg, #334155, #64748b); }
.tt .l { font-size: 11.5px; opacity: 0.92; }
.tt .n { font-size: clamp(18px, 11cqi, 28px); font-weight: 800; margin: 1px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt .ud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt .ud > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt .ud > div > span { display: inline-flex; align-items: center; gap: 0.3em; font-size: clamp(10px, 5cqi, 13px); opacity: 0.88; white-space: nowrap; }
.tt .ud .ic { width: 1.15em; height: 1.15em; flex: none; }
.tt .ud i { font-style: normal; }
.tt .ud b { font-weight: 800; font-size: clamp(12px, 6.6cqi, 17px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt .ud .dn { text-align: right; align-items: flex-end; }
/* মাঝের গ্রেডিয়েন্ট লাইন — ভরা অংশ = ডাউনলোডের ভাগ */
.tt .tbar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); overflow: hidden; margin: 8px 0 2px; }
.tt .tbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #ffffff); box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }

.legend2 { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.legend2 i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.legend2 b { color: var(--text); font-weight: 600; }
.legend2 em.lgl { font-style: normal; }
.chart svg { width: 100%; height: auto; display: block; }
.chart svg text.unit { font-size: 10px; }

.lrow.red { border-left-color: var(--red); }
.lrow .idx.red { background: var(--red-soft); color: var(--red); }
.lrow .idx.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }

.inc2 .iv { font-size: 36px; font-weight: 800; color: var(--green); line-height: 1.1; }
.inc2 .is { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.inc2 .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inc2 .split > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, 0.03); }
.inc2 .split span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.inc2 .split span .ic { width: 15px; height: 15px; }
.inc2 .split b { display: block; font-size: 18px; margin-top: 4px; }

.alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.al { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 13px; border: 1px solid var(--line); border-left-width: 4px; background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none; }
.al span { font-size: 12.5px; color: var(--muted); }
.al b { font-size: 26px; line-height: 1; }
.al.red { border-left-color: var(--red); } .al.red b { color: var(--red); }
.al.amber { border-left-color: var(--amber); } .al.amber b { color: var(--amber); }
.al.blue { border-left-color: var(--blue); } .al.blue b { color: var(--blue); }
.al.violet { border-left-color: var(--violet); } .al.violet b { color: var(--violet); }
.sect-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin: 26px 0 -4px; color: var(--muted); }

@media (max-width: 1100px) { .tiles2 { grid-template-columns: 1fr 1fr; } .g.dg1, .g.dg2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tiles2 { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { flex-direction: column; align-items: flex-start; gap: 8px; } .tile .tn { font-size: 24px; } .ttiles, .inc2 .split { grid-template-columns: 1fr 1fr; } .alerts { grid-template-columns: 1fr 1fr; } }
.ptitle .dateinp, .ptitle select.mini, .ptitle .seg { width: auto; flex: none; }
.ptitle { flex-wrap: nowrap; } @media (max-width: 560px) { .ptitle { flex-wrap: wrap; } }
.ptitle .grow { min-width: 0; }

/* ---------- বিলিং ও ইউজার তালিকার পেজ ---------- */
/* ড্রপডাউন মেনু (বিলিং, PPPoE) — বাকি মেনুর মতোই দেখতে */
.side a.nav.nav-parent .chev { margin-left: auto; width: 16px; height: 16px; transition: transform 0.15s; }
.side a.nav.nav-parent.open .chev { transform: rotate(180deg); }
.side a.nav.nav-parent.has-active { color: var(--text); }
.side a.nav.nav-parent.has-active > svg:first-child { color: var(--indigo); }
.side .nav-sub { display: none; margin: 2px 0 4px 18px; padding-left: 8px; border-left: 1px solid var(--line-strong); }
.side .nav-sub.open { display: block; }
.side a.nav.sub { padding: 8px 10px; font-size: 13.5px; }
.side .nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(99, 102, 241, 0.18); color: var(--indigo); font-size: 11.5px; font-weight: 600; line-height: 20px; font-style: normal; text-align: center; }
.side .nbadge[hidden] { display: none; }
.side .nbadge.txt { font-size: 9.5px; letter-spacing: .4px; font-weight: 800; padding: 0 7px; }
.side .nbadge.txt.ok { background: rgba(34, 197, 94, 0.16); color: var(--green); }
.side .nbadge.txt.off { background: var(--hover); color: var(--muted); }
.side a.nav.sub > span { white-space: nowrap; }
.shell.collapsed .side .nbadge { display: none; }
.shell.collapsed .side a.nav.nav-parent { display: none; }
.shell.collapsed .side .nav-sub { display: block; margin: 0; padding: 0; border: 0; }
.shell.collapsed .side a.nav.sub { padding: 11px 0; }
.bstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bstat { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); color: var(--text); text-decoration: none; }
a.bstat[href]:hover { border-color: var(--blue); text-decoration: none; }
.bstat span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.bstat b { font-size: 20px; }
.bstat b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.bstat.green b { color: var(--green); }
.bstat.red b { color: var(--red); }
.bstat.amber b { color: var(--amber); }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.bulkbar select, .bulkbar input { width: auto; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.pager span { margin-right: auto; }
.pf-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pf-actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.blist td { vertical-align: middle; }
table.blist td.acts { white-space: nowrap; }
table.blist td.acts .btn + .btn { margin-left: 4px; }

/* কাস্টমার পেজের ছোট সারাংশ বক্স */
.cstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 1150px) { .cstats { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cstat { flex-direction: column; align-items: center; text-align: center; gap: 8px; } .cstat > div { width: 100%; } }
.cstat { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--card-grad); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.cstat:hover { transform: translateY(-2px); border-color: var(--c, var(--blue)); }
.cstat .ci { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 16%, transparent); }
.cstat .ci .ic { width: 18px; height: 18px; }
.cstat small { display: block; font-size: 12px; color: var(--muted); line-height: 1.25; }
.cstat b { display: block; font-size: 21px; line-height: 1.2; margin-top: 2px; }
@media (max-width: 560px) { .cstats { grid-template-columns: repeat(2, 1fr); } }
.ctable th { text-transform: uppercase; font-size: 11.5px; letter-spacing: .6px; white-space: nowrap; }
html[lang=bn] .ctable th { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.ctable td { white-space: nowrap; }
.ctable .cname { display: flex; align-items: center; gap: 9px; white-space: normal; min-width: 200px; }
.ctable .cname b { display: block; }
.ctable .cname .muted { display: block; }
.led.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(244, 88, 95, 0.2), 0 0 8px rgba(244, 88, 95, 0.55); }
.ctable td.sn { width: 1%; padding-right: 0; }
.ctable td.sn > * { vertical-align: middle; }
.ctable td.sn .snum { display: inline-block; text-align: left; color: var(--text); opacity: .85; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctable td.sn .led { margin-left: 5px; }
.ctable td.sn + td { padding-left: 8px; }
.ctable th:nth-child(2) { padding-left: 8px; }
.ctable .cname { min-width: 0; }
.iacts { display: inline-flex; align-items: center; gap: 4px; }
.ia { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--muted); transition: color .12s, background .12s, border-color .12s; }
.ia:hover { color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, transparent); border-color: color-mix(in srgb, var(--c1) 30%, transparent); }
.ia:focus-visible { outline: 2px solid var(--c1); outline-offset: 1px; }
.ia:active { transform: scale(.95); }
.ia .ic { width: 17px; height: 17px; stroke-width: 1.75; }
.ia.green { --c1: #34d399; }
.ia.blue { --c1: #60a5fa; }
.ia.indigo { --c1: #a78bfa; }
.ia.amber { --c1: #f59e0b; }
.ia.teal { --c1: #2dd4bf; color: #2dd4bf; }
.ia.red { --c1: #f43f5e; }
.clink { color: inherit; text-decoration: none; } .clink:hover b { color: var(--blue); text-decoration: underline; }

/* ---------- কাস্টমার ফর্ম (নতুন ডিজাইন) ---------- */
.cf{display:flex;flex-direction:column;gap:14px}
.cf-hero{display:flex;align-items:center;gap:18px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 10%,transparent),transparent 60%)}
.cf-av{position:relative;flex:none;width:84px;height:84px;cursor:pointer}
.cf-av .cf-prev{width:84px;height:84px;border-radius:50%;overflow:hidden;display:grid;place-items:center;border:2px dashed color-mix(in srgb,var(--blue) 50%,var(--line));background:var(--surface-2);color:var(--muted)}
.cf-av.has .cf-prev{border-style:solid;border-color:var(--blue)}
.cf-av .cf-prev img{width:100%;height:100%;object-fit:cover}.cf-av .cf-prev .ic{width:34px;height:34px}
.cf-cam{position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:50%;border:2px solid var(--surface);background:var(--blue);color:#fff;display:grid;place-items:center;cursor:pointer}.cf-cam .ic{width:15px;height:15px}
.cf-av.drag .cf-prev,.cf-up.drag{border-color:var(--green)!important;background:color-mix(in srgb,var(--green) 8%,var(--surface-2))}
.cf-hi{flex:1;min-width:0}.cf-hi>b{display:block;font-size:15px}.cf-hi>small{display:block;color:var(--muted);font-size:12px;margin:2px 0 10px}
.cf-seg{display:inline-flex;padding:3px;border-radius:11px;border:1px solid var(--line);background:var(--input-bg,var(--surface-2));gap:3px;flex-wrap:wrap}
.cf-seg label{cursor:pointer}.cf-seg input{position:absolute;opacity:0;pointer-events:none}
.cf-seg span{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:8px;font-size:13px;font-weight:600;color:var(--muted);transition:.15s}.cf-seg span .ic{width:15px;height:15px}
.cf-seg input:checked+span{background:var(--blue);color:#fff;box-shadow:0 4px 14px -6px var(--blue)}
.cf-seg input:disabled+span{cursor:not-allowed}.cf-seg input:disabled:not(:checked)+span{opacity:.45}
.cf-sec{padding:14px 16px 4px;border-radius:14px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 60%,transparent)}
.cf-sec h4{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:13.5px;letter-spacing:.2px}
.cf-hic{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;color:var(--blue);background:color-mix(in srgb,var(--blue) 14%,transparent)}.cf-hic .ic{width:14px;height:14px}
.cf-pw{display:flex;gap:8px;align-items:center}.cf-pw input{flex:1;min-width:0}.cf-pw .btn{flex:none;height:40px;display:inline-flex;align-items:center;gap:6px}
.cf-ups{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.cf-up{position:relative;height:150px;border-radius:12px;border:2px dashed var(--line);background:var(--surface-2);overflow:hidden;cursor:pointer;transition:border-color .15s}
.cf-up:hover{border-color:var(--blue)}
.cf-up .cf-prev{position:absolute;inset:0}.cf-up .cf-prev img{width:100%;height:100%;object-fit:cover}
.cf-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);text-align:center;padding:10px}.cf-ph .ic{width:28px;height:28px;margin-bottom:4px;color:var(--blue)}.cf-ph b{color:var(--text);font-size:13.5px}.cf-ph small{font-size:11.5px}
.cf-up.has{border-style:solid;border-color:color-mix(in srgb,var(--green) 55%,var(--line))}.cf-up.has .cf-ph{display:none}
.cf-upb{position:absolute;right:8px;bottom:8px;display:none;gap:6px}.cf-up.has .cf-upb{display:flex}.cf-upb .btn{display:inline-flex;align-items:center;gap:5px;backdrop-filter:blur(6px);background:rgba(10,15,30,.75)}.cf-upb .ic{width:13px;height:13px}
.cf-lbl{position:absolute;left:8px;top:8px;display:none;padding:2px 8px;border-radius:6px;font-style:normal;font-size:11px;font-weight:700;color:#fff;background:rgba(10,15,30,.7)}.cf-up.has .cf-lbl{display:block}
.cf-more{border:1px solid var(--line);border-radius:14px;padding:0 16px}
.cf-more summary{display:flex;align-items:center;gap:8px;padding:12px 0;cursor:pointer;font-weight:650;font-size:13.5px;list-style:none}.cf-more summary::-webkit-details-marker{display:none}
.cf-more summary .ic{width:15px;height:15px;color:var(--muted)}.cf-more summary small{color:var(--muted);font-weight:500}
.cf-more summary::after{content:"▾";margin-left:auto;color:var(--muted);transition:transform .15s}.cf-more[open] summary::after{transform:rotate(180deg)}
.cf-more[open]{padding-bottom:6px}
.cf-sync{padding:2px 4px}
@media(max-width:640px){.cf-ups{grid-template-columns:1fr}.cf-hero{flex-direction:column;align-items:flex-start}}
.cf-pw .btn[hidden]{display:none}
/* কাস্টমার ফর্ম — চওড়া, দুই কলাম (কম স্ক্রল) */
.modal.cf-modal{max-width:1180px;width:calc(100vw - 32px)}
.cf-col{display:flex;flex-direction:column;gap:14px;min-width:0}
@media(min-width:980px){
  .cf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
  .cf-sync{grid-column:1/-1}
  .cf-modal .cf-up{height:130px}
}

/* ---------- প্রোফাইল আইকনের মেনু ---------- */
.av-btn{border:0;cursor:pointer;transition:box-shadow .15s,transform .15s}.av-btn:hover{transform:scale(1.06);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 35%,transparent)}
.av-menu{position:fixed;z-index:1000;width:240px;padding:6px;border-radius:14px;border:1px solid var(--line);background:var(--surface);box-shadow:0 18px 50px -12px rgba(0,0,0,.6);animation:avIn .14s ease-out}
@keyframes avIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.av-head{display:flex;align-items:center;gap:10px;padding:10px 10px 12px;margin-bottom:4px;border-bottom:1px solid var(--line)}.av-head b{display:block;font-size:14px}.av-head small{color:var(--muted);font-size:11.5px}
.av-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:9px;background:none;color:var(--text);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.av-menu button:hover{background:color-mix(in srgb,var(--blue) 12%,transparent)}.av-menu button .ic{width:16px;height:16px;color:var(--muted)}
.av-menu button.danger{color:#f87171}.av-menu button.danger .ic{color:#f87171}.av-sep{height:1px;background:var(--line);margin:4px 2px}

/* ---------- সাইডবার কাস্টমাইজ ---------- */
.nc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto}
.nc-item{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:opacity .15s,border-color .3s}
.nc-item.off{opacity:.5}.nc-item.moved{border-color:var(--blue)}
.nc-row{display:flex;align-items:center;gap:10px;padding:8px 10px}.nc-row b{flex:1;font-size:13.5px}
.nc-ic{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--blue);background:color-mix(in srgb,var(--blue) 13%,transparent)}.nc-ic .ic{width:15px;height:15px}
.nc-acts{display:flex;align-items:center;gap:4px}.nc-acts .ia{width:28px;height:28px}.nc-acts .ia .ic{width:14px;height:14px}
.nc-sw{position:relative;display:inline-block;width:38px;height:22px;margin-left:6px;cursor:pointer}.nc-sw input{position:absolute;opacity:0}
.nc-sw i{position:absolute;inset:0;border-radius:99px;background:var(--line);transition:.15s}.nc-sw i::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s}
.nc-sw input:checked+i{background:var(--green)}.nc-sw input:checked+i::after{left:19px}.nc-sw input:disabled+i{opacity:.6;cursor:not-allowed}
.nc-sub{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 10px 48px}
.nc-chip{cursor:pointer}.nc-chip input{position:absolute;opacity:0}
.nc-chip span{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:99px;font-size:12px;border:1px solid var(--line);color:var(--muted);text-decoration:line-through}.nc-chip span .ic{width:12px;height:12px}
.nc-chip input:checked+span{color:var(--text);text-decoration:none;border-color:color-mix(in srgb,var(--blue) 45%,var(--line));background:color-mix(in srgb,var(--blue) 10%,transparent)}
/* ---------- সাইডবারে ড্র্যাগ করে সাজানো ---------- */
.nedit-bar{margin:4px 2px 10px;padding:10px;border-radius:12px;border:1px dashed color-mix(in srgb,var(--blue) 60%,var(--line));background:color-mix(in srgb,var(--blue) 9%,transparent)}
.nedit-t{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:650;margin-bottom:8px}.nedit-t .ic{width:15px;height:15px;color:var(--blue)}
.nedit-b{display:flex;gap:6px}.nedit-b .btn{flex:1;justify-content:center;display:inline-flex;align-items:center;gap:5px}.nedit-b .ic{width:13px;height:13px}
.side.nav-edit a.nav,.side.nav-edit a.nav-parent{cursor:grab;position:relative;border:1px dashed transparent;user-select:none}
.side.nav-edit a.nav:hover,.side.nav-edit a.nav-parent:hover{border-color:var(--line-strong,var(--line));background:color-mix(in srgb,var(--blue) 7%,transparent)}
.side.nav-edit a.nav::before,.side.nav-edit a.nav-parent::before{content:"⋮⋮";position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:11px;letter-spacing:-2px;color:var(--muted);opacity:.7}
.side.nav-edit a.nav-parent .chev{display:none}
.side.nav-edit .dragging{opacity:.35}
.side.nav-edit .drop-before{box-shadow:0 -3px 0 0 var(--blue)}.side.nav-edit .drop-after{box-shadow:0 3px 0 0 var(--blue)}
.side.nav-edit .moved{background:color-mix(in srgb,var(--green) 16%,transparent)!important;transition:background .5s}
.nedit-h{font-size:11px;color:var(--muted);margin:-4px 0 8px 22px}
/* ---------- কাস্টমার তালিকার পেজ ভাগ ---------- */
.pgbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--line)}
.pg-nav{display:flex;align-items:center;gap:4px}
.pg-b{min-width:34px;height:34px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.pg-b:hover:not(:disabled){border-color:var(--blue)}.pg-b.on{background:var(--blue);border-color:var(--blue);color:#fff}.pg-b:disabled{opacity:.4;cursor:not-allowed}
.pg-gap{padding:0 4px;color:var(--muted)}
.cstat.on{border-color:var(--c,var(--blue));box-shadow:0 0 0 1px var(--c,var(--blue)) inset,0 8px 22px -12px var(--c,var(--blue))}
/* ---------- রাউটারের পোর্ট (ক্লিকযোগ্য) ---------- */
.rport{cursor:pointer}.rport .rport-hit{transition:fill .15s,stroke .15s}
.rport:hover .rport-hit{fill:rgba(56,189,248,.12);stroke:#38bdf8;stroke-width:1;stroke-dasharray:3 2}
.pm-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.pm-head b{font-size:16px}.pm-head small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.pm-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line)}.pm-ic.on{color:var(--green);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}.pm-ic.off{color:var(--red)}
.pm-live{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.pm-live>div{padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2)}
.pm-live small{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}.pm-live small .ic{width:13px;height:13px}
.pm-live>div:first-child b{color:#38bdf8}.pm-live>div:last-child b{color:#4ade80}.pm-live b{display:block;font-size:20px;margin-top:2px;font-variant-numeric:tabular-nums}
.pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-bottom:14px}.pm-kv{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.pm-kv small{color:var(--muted);font-size:12.5px}.pm-kv b{font-size:13px;text-align:right}
.pm-acts{display:flex;gap:8px;flex-wrap:wrap}.pm-acts .btn{display:inline-flex;align-items:center;gap:6px}.pm-acts .ic{width:14px;height:14px}
.pm-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:12px}
.pm-t{padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2)}
.pm-t small{display:block;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.pm-t b{display:block;font-size:22px;margin-top:2px;font-variant-numeric:tabular-nums}.pm-t em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);margin-top:2px}
.pm-t.ok{border-color:color-mix(in srgb,var(--green) 40%,var(--line))}.pm-t.ok b{color:var(--green)}
.pm-t.warn{border-color:color-mix(in srgb,var(--amber) 45%,var(--line))}.pm-t.warn b{color:var(--amber)}
.pm-t.bad{border-color:color-mix(in srgb,var(--red) 45%,var(--line))}.pm-t.bad b{color:var(--red)}
.pm-t b i{font-style:normal;font-size:12px;font-weight:600;opacity:.8}.pm-t b{white-space:nowrap}
/* মেয়াদ শেষের ধরন */
.exp-mode{display:grid;gap:8px;margin:8px 0 12px}
.exp-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:var(--surface-2);cursor:pointer}
.exp-opt:has(input[type=radio]:checked){border-color:var(--blue);background:color-mix(in srgb,var(--blue) 9%,var(--surface-2))}
.exp-opt input[type=radio]{margin-top:3px}.exp-opt b{display:block;font-size:13.5px}.exp-opt small{display:block;color:var(--muted);font-size:12px;margin:2px 0 6px}.exp-opt input[type=time]{max-width:150px}
.andro{margin:4px 0 10px;padding:12px 14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--green) 35%,var(--line));background:color-mix(in srgb,var(--green) 6%,transparent)}
.andro-steps{margin:0 0 12px;padding-left:20px;font-size:13px;line-height:1.75}
/* অ্যাডমিনের ছবি / লোগো */
.avatar.has-img { background: #fff; overflow: hidden; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* রাউটার অফলাইন হলে কারণটা রাউটারের ছবির মাঝখানে */
.face-wrap { position: relative; }
.face-wrap .offline-note { position: absolute; left: 22%; right: 38%; top: 50%; transform: translateY(-50%); margin: 0 !important; text-align: center; line-height: 1.5; font-size: 13.5px; }
@media (max-width: 700px) { .face-wrap .offline-note { position: static; transform: none; margin-top: 8px !important; } }
.brand .logo.has-img { background: #fff; overflow: hidden; padding: 0; }
.brand .logo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* মোবাইলের উপরের বার (ডেস্কটপে লুকানো) */
.mbar { display: none; align-items: center; gap: 10px; position: sticky; top: 8px; z-index: 40; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--side-bg); box-shadow: var(--shadow); }
.mbar .mburger { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--hover); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.mbar .mburger svg { width: 22px; height: 22px; }
.mbar .logo { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); overflow: hidden; }
.mbar .logo svg { width: 18px; height: 18px; }
.mbar .logo.has-img { background: #fff; }
.mbar .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mbar b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) { .mback { display: none; } }
/* লুকানো গ্রিডের পরের কার্ডেও ফাঁকা জায়গা থাকবে */
.g.hidden + .card, .hidden + .card { margin-top: 16px; }
/* OLT: PON পোর্ট প্যানেল */
#ponBoxes:empty { display: none; }
#ponBoxes { border: 1px solid var(--line); border-radius: 18px; background: var(--card-grad, var(--surface)); box-shadow: var(--shadow); padding: 14px 16px 16px; margin: 4px 0 16px; }
.pp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pp-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.pp-head b svg { width: 18px; height: 18px; color: var(--indigo); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pp { display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--hover); transition: border-color .15s, background .15s; }
.pp:hover { border-color: rgba(99, 102, 241, .5); }
.pp.sel { border-color: var(--indigo); background: rgba(99, 102, 241, .1); }
.pp-top { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; }
.pp-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pp-dot.up { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.pp-dot.down { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.pp-dot.empty { background: var(--muted); }
.pp-name { flex: 1; font-weight: 800; font-size: 12px; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-onu { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.pp-onu b { color: var(--text); font-size: 12px; }
.pp-l { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; }
.pp-l span { font-size: 9.5px; font-weight: 800; letter-spacing: .4px; color: var(--muted); }
.pp-l i { height: 4px; border-radius: 99px; background: rgba(127, 127, 127, .2); overflow: hidden; }
.pp-l i em { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.pp-l i.good em { background: #10b981; }
.pp-l i.warn em { background: #f59e0b; }
.pp-l i.bad em { background: #ef4444; }
.pp-l b { font-size: 11.5px; font-family: ui-monospace, Consolas, monospace; min-width: 44px; text-align: right; }
.onu-filters .searchbox { flex: 0 1 420px !important; min-width: 220px; }
.onu-filters #shown { margin-left: 4px; margin-right: 14px; }
.onu-filters .searchbox + .inline-sel { margin-left: auto; }
#oltHead .ohead > .olt-st { margin-right: 14px; }
/* বিলিং প্রোফাইল পপআপ */
.bp-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(79, 70, 229, .22), rgba(37, 99, 235, .1)); border: 1px solid rgba(99, 102, 241, .3); }
.bp-av { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #3b82f6); flex: none; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .8); }
.bp-id { flex: 1; min-width: 0; }
.bp-id b { display: block; font-size: 16.5px; font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.bp-id div { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-wal { text-align: right; padding: 8px 14px; border-radius: 13px; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); }
.bp-wal span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.bp-wal b { font-size: 22px; font-weight: 800; color: var(--green); }
.bp-wal small { display: block; font-size: 11px; color: var(--red); font-weight: 700; }
.bp-wal.neg { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }
.bp-wal.neg b { color: var(--red); }
.bp-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.bp-info > div { padding: 11px 13px; border-radius: 13px; background: var(--hover); border: 1px solid var(--line); min-width: 0; }
.bp-info span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.bp-info span svg { width: 14px; height: 14px; color: var(--indigo); }
.bp-info b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-info b a { color: inherit; }
.bp-info small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.bp-acts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.bp-a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 13px; border: 1px solid var(--line); background: var(--hover); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.25; transition: transform .12s, border-color .12s; }
.bp-a svg { width: 19px; height: 19px; color: var(--indigo); }
.bp-a:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .55); }
.bp-a.pri { background: linear-gradient(135deg, #10b981, #059669); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .8); }
.bp-a.pri svg { color: #fff; }
.bp-sec { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
.bp-sec svg { width: 16px; height: 16px; color: var(--indigo); }
@media (max-width: 760px) { .bp-info { grid-template-columns: 1fr; } .bp-acts { grid-template-columns: repeat(4, 1fr); } .bp-hero { flex-wrap: wrap; } .bp-wal { width: 100%; text-align: left; } }
.bp-info small .badge { display: inline-block; width: auto; }

/* মাস্টার প্যানেল থেকে হটস্পট ফিচার বন্ধ */
.hs-off .hs-only { display: none !important; }

/* চালু/বন্ধ সুইচ */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(148, 163, 184, 0.35); transition: 0.2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: 0.2s; }
.switch input:checked + span { background: #16a34a; }
.switch input:checked + span::after { left: 23px; }

/* ড্যাশবোর্ডের শুভেচ্ছা */
.greet .gname { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet .gw { display: inline-block; transform-origin: 70% 70%; animation: gwave 2.4s ease-in-out 1; }
@keyframes gwave { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20% { transform: rotate(-8deg) } 40% { transform: rotate(-4deg) } 50% { transform: rotate(10deg) } }

/* OLT ওভারভিউ — স্লিম ডিজাইন */
.o2 { display: grid; gap: 12px; }
.o2-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(34,197,139,.14), rgba(76,141,255,.07) 60%, transparent); border: 1px solid rgba(255,255,255,.08); }
.o2-hero::before { content: ''; position: absolute; z-index: -1; width: 160px; height: 160px; left: -40px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,139,.28), transparent 70%); }
.o2-ring { position: relative; width: 82px; height: 82px; flex: none; text-decoration: none; }
.o2-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(34,197,139,.35)); }
.o2-ring circle { fill: none; stroke-width: 10; }
.o2-ring .trk { stroke: rgba(148,163,184,.16); }
.o2-ring .on { stroke: #22c58b; } .o2-ring .wk { stroke: #a78bfa; } .o2-ring .off { stroke: #f59e0b; }
.o2-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.o2-c b { font-size: 13.5px; font-weight: 800; color: var(--text); letter-spacing: -.3px; line-height: 1; }
.o2-c small { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.o2-hi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.o2-n small { font-size: 11px; color: var(--muted); }
.o2-big { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -.6px; display: flex; align-items: baseline; gap: 7px; }
.o2-big span { font-size: 11.5px; font-weight: 600; color: #22c58b; letter-spacing: 0; }
.o2-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.o2-p { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: var(--muted); white-space: nowrap; }
.o2-p .ic { width: 12px; height: 12px; }
.o2-p b { color: var(--text); font-weight: 700; }
.o2-p.good { color: #22c58b; } .o2-p.good b { color: #22c58b; }
.o2-p.warn { color: #f59e0b; } .o2-p.warn b { color: #f59e0b; }
.o2-p.bad { color: #f43f5e; background: rgba(244,63,94,.10); border-color: rgba(244,63,94,.25); }
.o2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.o2-t { position: relative; display: flex; align-items: center; gap: 11px; padding: 22px 14px 18px; cursor: pointer; border-radius: 12px; text-decoration: none; color: var(--text); overflow: hidden;
  background: linear-gradient(135deg, var(--ob), rgba(255,255,255,.02) 75%); border: 1px solid rgba(255,255,255,.08); transition: transform .15s, border-color .15s; }
.o2-t:hover { transform: translateY(-1px); border-color: var(--oc); }
.o2-t.on { --oc: #22c58b; --ob: rgba(34,197,139,.14); }
.o2-t.off { --oc: #f59e0b; --ob: rgba(245,158,11,.14); }
.o2-t.wk { --oc: #a78bfa; --ob: rgba(167,139,250,.14); }
.o2-ic { width: 36px; height: 36px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.o2-ic .ic { width: 17px; height: 17px; color: var(--oc); }
.o2-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.o2-tx b { font-size: 22px; font-weight: 800; }
.o2-l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-t > em { position: absolute; top: 9px; right: 11px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--oc); white-space: nowrap; }
.o2-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.05); }
.o2-bar i { display: block; height: 100%; background: var(--oc); box-shadow: 0 0 6px var(--oc); }
.o2-olts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.o2-olt { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 9px; background: var(--hover); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 11.5px; }
.o2-olt i { width: 7px; height: 7px; border-radius: 50%; background: #64748b; flex: none; }
.o2-olt.ok i { background: #22c58b; box-shadow: 0 0 0 3px rgba(34,197,139,.18); }
.o2-olt.bad i { background: #f43f5e; box-shadow: 0 0 0 3px rgba(244,63,94,.18); animation: o2blink 1.6s infinite; }
.o2-olt.bad { border-color: rgba(244,63,94,.25); }
.o2-olt span, .o2-olt small { color: var(--muted); }
.o2-olt.bad small { color: #f43f5e; }
@keyframes o2blink { 50% { opacity: .35; } }
[data-theme="light"] .o2-hero, [data-theme="light"] .o2-t { border-color: rgba(15,23,42,.08); }
[data-theme="light"] .o2-ic, [data-theme="light"] .o2-p { background: rgba(255,255,255,.75); border-color: rgba(15,23,42,.08); }
@media (max-width: 560px) { .o2-tiles { grid-template-columns: 1fr; } .o2-pills { align-items: flex-start; margin-left: 0; } }

/* PON পোর্টের নতুন কার্ড (ছোট) */
.pp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 10px !important; }
.pq { gap: 7px !important; padding: 10px 12px !important; border-radius: 13px !important; background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(255,255,255,.02) 70%) !important; position: relative; overflow: hidden; }
.pq::before { content: ''; position: absolute; width: 90px; height: 90px; right: -35px; top: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.2), transparent 70%); pointer-events: none; }
.pq.down::before { background: radial-gradient(circle, rgba(239,68,68,.2), transparent 70%); }
.pq.empty::before { background: none; }
.pq-top { display: flex; align-items: center; gap: 7px; }
.pq-name { flex: 1; font-weight: 800; font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.pq-ty { font-size: 9.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(99,102,241,.16); color: #818cf8; }
.pq-mid { display: flex; align-items: center; gap: 9px; }
.pq-ring { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#10b981 calc(var(--p) * 1%), rgba(127,127,127,.2) 0); position: relative; }
.pq-ring::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.pq-ring b { position: relative; z-index: 1; font-size: 9px; font-weight: 800; }
.pq-cnt { display: flex; flex-direction: column; line-height: 1.15; }
.pq-cnt > b { font-size: 16px; font-weight: 800; }
.pq-cnt > b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pq-cnt > span { font-size: 10.5px; color: var(--muted); }
.pq-cnt .pq-weak { color: #f59e0b; font-weight: 700; }
.pq-m { display: flex; flex-direction: column; gap: 3px; }
.pq-ml { display: flex; align-items: baseline; gap: 5px; }
.pq-ml span { font-size: 10.5px; font-weight: 700; color: var(--muted); flex: 1; }
.pq-ml b { font-size: 12px; font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.pq-ml b small { font-size: 9px; color: var(--muted); margin-left: 2px; font-family: inherit; }
.pq-ml em { font-style: normal; font-size: 9px; font-weight: 800; padding: 0 6px; border-radius: 99px; }
.pq-m i { height: 4px; border-radius: 99px; background: rgba(127,127,127,.18); overflow: hidden; display: block; }
.pq-m i u { display: block; height: 100%; border-radius: 99px; text-decoration: none; }
.pq-m.good i u { background: linear-gradient(90deg, #10b981, #34d399); } .pq-m.good em { color: #10b981; background: rgba(16,185,129,.13); }
.pq-m.warn i u { background: linear-gradient(90deg, #f59e0b, #fbbf24); } .pq-m.warn em { color: #f59e0b; background: rgba(245,158,11,.14); }
.pq-m.bad i u { background: linear-gradient(90deg, #ef4444, #f87171); } .pq-m.bad em { color: #ef4444; background: rgba(239,68,68,.13); }
.pq-m.na .pq-ml b { color: var(--muted); }
.pq-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pq-chips span { font-size: 9.5px; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--muted); border: 1px solid var(--line); }
.pq-chips span b { color: var(--text); }
.pq-chips span.good b { color: #10b981; } .pq-chips span.warn b { color: #f59e0b; }
.onu-ven { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.vlt { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--hover); font-size: 11.5px; font-weight: 700; }
.onu-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.onu-topbar .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ostats.ostats3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
@media (max-width: 760px) { .ostats.ostats3 { grid-template-columns: 1fr; } .onu-topbar { justify-content: stretch; } }

.olt-box { background: var(--card-grad); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.oinfo { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px; }
.oinfo:empty { display: none; }
.oinfo .oi.big { flex: none; }
.oi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oi-top h3 { margin: 0; font-size: 17px; }
.oi-top .olt-st { margin-left: auto; }
.oi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.oic { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--hover); font-size: 12px; line-height: 1.4; }
.oic small { color: var(--muted); font-size: 11px; }
.oic b { font-weight: 700; }
/* OLT-এর অবস্থা: পাওয়ার/ফ্যান/CPU/মেমরি/তাপমাত্রা */
.ohealth { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ohealth:empty { display: none; }
.oh-card { display: flex; align-items: center; justify-content: space-around; gap: 14px; padding: 14px 18px; min-height: 106px; }
.oh-card + .oh-card { border-left: 1px solid var(--line); }
.oh-sep { width: 1px; align-self: stretch; background: var(--line); }
.oh-unit { display: flex; align-items: center; gap: 12px; }
.oh-unit > div { display: flex; flex-direction: column; gap: 2px; }
.oh-unit small, .oh-temp small, .oh-ring small { color: var(--muted); font-size: 12px; }
.oh-unit b { font-size: 18px; }
.oh-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 3px solid currentColor; }
.oh-ic .ic { width: 22px; height: 22px; }
.oh-unit.good .oh-ic { color: var(--green); } .oh-unit.bad .oh-ic { color: var(--red); } .oh-unit.na .oh-ic { color: var(--muted); }
.oh-st { font-size: 12px; font-weight: 700; } .oh-unit.good .oh-st { color: var(--green); } .oh-unit.bad .oh-st { color: var(--red); }
.oh-ring { position: relative; width: 86px; height: 86px; display: grid; place-items: center; }
.oh-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.oh-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.oh-ring .t { stroke: var(--hover); } .oh-ring .v { transition: stroke-dasharray .6s; }
.oh-ring.good .v { stroke: #4f8df7; } .oh-ring.warn .v { stroke: var(--amber); } .oh-ring.bad .v { stroke: var(--red); }
.oh-ring b { font-size: 17px; margin-top: -6px; } .oh-ring small { position: absolute; bottom: 2px; }
.oh-temp { display: flex; align-items: center; gap: 12px; }
.oh-temp b { display: block; font-size: 26px; font-weight: 600; }
.oh-temp .th { position: relative; width: 14px; height: 60px; border-radius: 10px; background: var(--hover); overflow: hidden; }
.oh-temp .th::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: inherit; }
.oh-temp .th i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px; background: var(--green); }
.oh-temp.warn .th i { background: var(--amber); } .oh-temp.bad .th i { background: var(--red); }
@media (max-width: 900px) { .ohealth { grid-template-columns: 1fr; } .oh-card + .oh-card { border-left: 0; border-top: 1px solid var(--line); } }
.oinfo > .grow { flex: 1; min-width: 0; }
.oh-unit.warn .oh-ic { color: var(--amber); }
.oh-items { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.oh-it { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.oh-it i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.oh-it b { margin-left: auto; padding-left: 8px; font-weight: 700; }
.oh-it.on { background: var(--green-soft); color: var(--green); }
.oh-it.off { background: var(--red-soft); color: var(--red); }
.oh-unit .oh-it b { font-size: 12px; }
.olt-box-h { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.olt-box-h .ic { width: 18px; height: 18px; color: var(--indigo); }
/* পাওয়ার/ফ্যান: আইকন বাঁপাশে, লেখা ডানে — পুরোটা অংশের মাঝখানে */
.oh-unit { flex-direction: row; align-items: center; justify-content: center; gap: 16px; flex: 1; }
.oh-unit > div { align-items: flex-start; text-align: left; }
.oh-ic { width: 56px; height: 56px; flex: none; }
.oh-items { align-items: stretch; min-width: 150px; }
.badge.ulp-offb { background: var(--red-soft); color: var(--red); }
/* ড্যাশবোর্ড: ১২ ভাগের গ্রিড, প্রতিটা বক্স আলাদা */
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.dcell { grid-column: span var(--sp, 12); min-width: 0; position: relative; display: flex; flex-direction: column; }
.dcell > .card { flex: 1; margin: 0 !important; min-width: 0; }
.dcell > .card.panel:has(> #trafficStats) { display: flex; flex-direction: column; }
.dcell[data-dk="router"] { display: block; }
.dcell[data-dk="router"] > .g { margin-top: 16px; }
.dcell:not([data-dk="router"]):has(> .hidden) { display: none; }
.dedit-bar .btn { white-space: nowrap; }
.hs-off .dcell:has(> .hs-only) { display: none; }
.dcell .tiles2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .dcell { grid-column: 1 / -1 !important; } }
.dedit-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 4px; border-radius: 12px; border: 1px dashed var(--indigo); background: rgba(99, 102, 241, .08); }
.dedit-bar .nedit-t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dedit-bar .nedit-b { display: flex; gap: 8px; }
.dash-editing .dcell { cursor: grab; outline: 2px dashed rgba(99, 102, 241, .45); outline-offset: 3px; border-radius: 14px; }
.dash-editing .dcell > .card, .dash-editing .dcell > .card * { pointer-events: none; }
.dash-editing .dcell.ddragging { opacity: .4; }
.dash-editing .dcell.ddrop-before { box-shadow: -6px 0 0 var(--indigo); }
.dash-editing .dcell.ddrop-after { box-shadow: 6px 0 0 var(--indigo); }
.dsz { position: absolute; top: 8px; right: 10px; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; background: var(--indigo); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.dsz button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(255,255,255,.18); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; line-height: 1; }
.dsz button:hover { background: rgba(255,255,255,.32); }
.dsz-l { color: #fff; font-size: 12px; font-weight: 700; min-width: 36px; text-align: center; }
.dsz-h { position: absolute; right: -3px; top: 50%; transform: translateY(-50%); z-index: 5; width: 8px; height: 46px; border-radius: 6px; background: var(--indigo); cursor: ew-resize; }
.card[hidden] { display: none !important; }
