@font-face { font-family: Vazirmatn; src: url(/vendor/vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0d16; --bg2: #0f1320; --card: #141927; --card2: #1a2032; --line: #242b40; --line2: #2f3852;
  --text: #e9ecf5; --muted: #8a93ad; --dim: #5d6682;
  --accent: #7c5cff; --accent2: #22d3ee; --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #60a5fa; --pink: #f472b6;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 16px; --shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: Vazirmatn, system-ui, sans-serif; font-size: 14.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background-image: radial-gradient(900px 500px at 100% -10%, rgba(124, 92, 255, .14), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(34, 211, 238, .09), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--accent2); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }
.num, code, .mono { font-feature-settings: 'tnum'; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.hide { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(15, 19, 32, .75); backdrop-filter: blur(14px); border-inline-end: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; }
.logo { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(124, 92, 255, .4); color: #fff; }
.logo svg { width: 23px; height: 23px; }
.brand b { font-size: 16px; display: block; line-height: 1.3; } .brand small { color: var(--muted); font-size: 11.5px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; transition: .15s; position: relative;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .08)); }
.nav a.on::before { content: ''; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--grad); }
.side .foot { margin-top: auto; }
.srv-pill { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2s infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

.main { padding: 26px 30px 60px; min-width: 0; max-width: 1500px; width: 100%; margin: 0 auto; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 { font-size: 23px; } .head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- components ---------- */
.card { background: linear-gradient(180deg, var(--card), #121724); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card > h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 16px; }

.tile { position: relative; overflow: hidden; padding: 18px 20px; }
.tile .lbl { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.tile .val { font-size: 27px; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; line-height: 1.3; }
.tile .val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.tile .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tile .ib { position: absolute; inset-inline-end: 16px; top: 16px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.tile::after { content: ''; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; background: var(--c); opacity: .07; filter: blur(8px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #46507a; background: #20273d; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, .35); }
.btn.pri:hover { filter: brightness(1.1); }
.btn.bad { color: var(--bad); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.btn.icon svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--card2); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

label.f { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
label.f > span { display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; outline: none; transition: .15s;
}
textarea { height: auto; padding: 10px 13px; resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
input::placeholder, textarea::placeholder { color: var(--dim); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-online { --c: var(--ok); } .st-active { --c: var(--info); } .st-expired { --c: var(--bad); } .st-limited { --c: var(--warn); } .st-disabled { --c: var(--dim); } .st-blocked { --c: var(--pink); }

.bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .4s; }
.bar.warn > i { background: linear-gradient(90deg, #fbbf24, #f97316); } .bar.bad > i { background: linear-gradient(90deg, #f87171, #ef4444); }

/* ---------- table ---------- */
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; inset-inline-start: 12px; top: 11px; color: var(--dim); }
.search input { padding-inline-start: 40px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line2); background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.chip.on { background: rgba(124, 92, 255, .18); border-color: var(--accent); color: #fff; }
.chip b { font-weight: 700; margin-inline-start: 4px; opacity: .8; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(36, 43, 64, .6); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: .12s; cursor: pointer; } .tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.uname { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ava { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 14px; }
.uname b { display: block; font-size: 13.5px; } .uname small { color: var(--dim); font-size: 11.5px; display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage { min-width: 150px; } .usage .t { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; color: var(--muted); } .usage .t b { color: var(--text); font-weight: 600; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--dim); margin-bottom: 10px; }

/* ---------- modal / toast ---------- */
.ov { position: fixed; inset: 0; background: rgba(4, 6, 12, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; z-index: 50; animation: fade .18s; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); animation: pop .2s; margin: auto; }
.modal.wide { max-width: 760px; }
.modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { font-size: 16.5px; }
.modal .mb { padding: 22px; } .modal .mf { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; padding: 13px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: #fff; border-color: var(--accent); }
.toasts { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); display: grid; gap: 8px; z-index: 99; width: max-content; max-width: 92vw; }
.toast { background: #1f2740; border: 1px solid var(--line2); padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; animation: pop .2s; display: flex; gap: 10px; align-items: center; }
.toast.err { border-color: rgba(248, 113, 113, .5); color: #fecaca; } .toast.ok { border-color: rgba(52, 211, 153, .45); }

.qrbox { background: #fff; padding: 14px; border-radius: 16px; width: 232px; height: 232px; margin: 0 auto; display: grid; place-items: center; }
.qrbox svg, .qrbox img { width: 100%; height: 100%; display: block; }
pre.conf { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; overflow-x: auto; direction: ltr; text-align: left; font-size: 12px; line-height: 1.75; color: #c9d1e8; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: end; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.copyline { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; direction: ltr; }
.copyline code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12px; color: #c9d1e8; scrollbar-width: none; }

.dom-cat h3 { font-size: 14px; } .dom-cat h3 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.doms { display: flex; flex-wrap: wrap; gap: 8px; }
.dom { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; direction: ltr; }
.dom.off { opacity: .45; text-decoration: line-through; }
.dom button { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 3px; border-radius: 6px; display: grid; } .dom button:hover { color: var(--text); background: var(--line); }
.dom button svg { width: 14px; height: 14px; }

.ev { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(36, 43, 64, .6); font-size: 13px; }
.ev:last-child { border: 0; }
.ev .ei { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.ev .ei svg { width: 16px; height: 16px; } .ev time { color: var(--dim); font-size: 11.5px; display: block; }
.gauge { display: grid; gap: 14px; } .gauge .g .t { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; color: var(--muted); } .gauge .g .t b { color: var(--text); }
.chart { position: relative; height: 290px; } .chart.sm { height: 220px; }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 13.5px; }
.steps li::before { content: counter(s, persian); width: 30px; height: 30px; border-radius: 10px; background: rgba(124, 92, 255, .18); color: #c4b5fd; display: grid; place-items: center; font-weight: 700; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 34px 30px; text-align: center; box-shadow: var(--shadow); }
.auth .logo { width: 62px; height: 62px; border-radius: 19px; margin: 0 auto 18px; } .auth .logo svg { width: 32px; height: 32px; }
.auth h1 { font-size: 21px; } .auth p { color: var(--muted); margin: 6px 0 24px; font-size: 13.5px; }
.auth form { text-align: start; } .auth .btn { width: 100%; height: 44px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; margin: 80px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- mobile ---------- */
.mnav { display: none; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .app { display: block; } .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .head h1 { font-size: 20px; }
  .mnav {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: rgba(15, 19, 32, .92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav a { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 7px 2px; color: var(--dim); font-size: 10.5px; font-weight: 600; border-radius: 12px; }
  .mnav a.on { color: #fff; background: rgba(124, 92, 255, .16); } .mnav a.on svg { color: var(--accent2); }
  .g2 { grid-template-columns: 1fr; } .g4 { gap: 12px; }
  .tile { padding: 15px 16px; } .tile .val { font-size: 21px; } .tile .ib { width: 36px; height: 36px; inset-inline-end: 12px; top: 12px; }
  .card { padding: 16px; } .chart { height: 240px; }
  .tbl thead { display: none; } .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--line); } .tbl tr:last-child { border: 0; }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl td[data-l] { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
  .tbl td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; }
  .usage { min-width: 0; margin: 6px 0; } .acts { justify-content: flex-start; margin-top: 8px; }
  .search { max-width: none; flex-basis: 100%; }
  .ov { padding: 0; place-items: end center; } .modal { border-radius: 22px 22px 0 0; max-width: none; margin: auto 0 0; }
  .toasts { bottom: 86px; }
}

/* grid/flex children must be allowed to shrink so long LTR strings scroll instead of overflowing */
.grid > *, .steps li > div, .modal .mb, #tb { min-width: 0; }
.copyline, pre.conf { max-width: 100%; min-width: 0; }
.ov { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.modal { min-width: 0; }
.modal .mb > *, #tb > * { min-width: 0; max-width: 100%; }

/* ---------- v2: services, plans, bulk actions, light theme ---------- */
:root { --grid: rgba(47, 56, 82, .45); --card-b: #121724; --glass: rgba(15, 19, 32, .78); --on: #fff; --code: #c9d1e8; }
.card { background: linear-gradient(180deg, var(--card), var(--card-b)); }
.side { background: var(--glass); } .mnav { background: var(--glass); }
.nav a.on, .seg button.on, .chip.on, .tabs button.on, .mnav a.on { color: var(--on); }
pre.conf, .copyline code { color: var(--code); }
.toast { background: var(--card2); }
.btn:hover { background: var(--card2); border-color: var(--accent); }

:root[data-theme="light"] {
  --bg: #f3f5fb; --bg2: #eef1f8; --card: #ffffff; --card2: #f4f6fc; --card-b: #ffffff; --line: #e3e7f2; --line2: #d3d9e8;
  --text: #171b2c; --muted: #636c85; --dim: #97a0b8; --grid: rgba(190, 198, 218, .5); --glass: rgba(255, 255, 255, .85); --on: #171b2c; --code: #2a3350;
  --ok: #059669; --warn: #d97706; --bad: #dc2626; --info: #2563eb; --pink: #db2777; --accent2: #0891b2;
  --shadow: 0 10px 40px rgba(30, 40, 80, .12);
}
:root[data-theme="light"] body { background-image: radial-gradient(900px 500px at 100% -10%, rgba(124, 92, 255, .1), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(34, 211, 238, .1), transparent 60%); }
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(30, 40, 80, .04), 0 8px 24px rgba(30, 40, 80, .05); }
:root[data-theme="light"] .ov { background: rgba(30, 36, 60, .45); }
:root[data-theme="light"] .tbl tbody tr:hover { background: rgba(124, 92, 255, .04); }
:root[data-theme="light"] .tbl td { border-bottom-color: var(--line); }
:root[data-theme="light"] .nav a:hover { background: rgba(30, 40, 80, .05); }

.card { transition: border-color .2s, transform .2s; }
.tile:hover, .plan:hover { border-color: var(--line2); transform: translateY(-2px); }
.spark { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 34px; pointer-events: none; }
.tile .sub { position: relative; z-index: 1; }

.svcs { display: flex; gap: 5px; flex-wrap: wrap; }
.svc { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); letter-spacing: .2px; direction: ltr; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { cursor: pointer; } .pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 11px; border: 1px solid var(--line2); color: var(--muted); font-weight: 600; font-size: 13px; transition: .15s; direction: ltr; }
.pill span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--dim); transition: .15s; }
.pill input:checked + span { border-color: var(--accent); background: rgba(124, 92, 255, .14); color: var(--text); }
.pill input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 92, 255, .3); }

.statbar { display: flex; flex-wrap: wrap; gap: 8px; }
.statbar span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--muted); }
.statbar b { color: var(--text); } .statbar i { width: 8px; height: 8px; border-radius: 50%; } .statbar svg { width: 15px; height: 15px; }

.lrow { display: flex; align-items: center; gap: 11px; padding: 9px 8px; margin: 0 -8px; border-radius: 11px; font-size: 13px; cursor: pointer; color: var(--text); min-width: 0; }
.lrow:hover { background: rgba(124, 92, 255, .08); }
.lrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .lrow .muted { font-size: 12px; white-space: nowrap; }
.ava.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12.5px; }

select.sel { width: auto; min-width: 150px; max-width: 100%; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a93ad' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 34px; }
.cb { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; padding: 0; }
.tbl tr.sel { background: rgba(124, 92, 255, .08); }
.bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 13px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .4); font-size: 13px; position: sticky; top: 10px; z-index: 5; backdrop-filter: blur(10px); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; }

.plan { display: grid; gap: 12px; align-content: start; }
.plan .price { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.plan .price small { font-size: 12.5px; font-weight: 500; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-inline-start: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.plan li { display: flex; align-items: center; gap: 9px; } .plan li svg { width: 16px; height: 16px; color: var(--accent); }
.notice { padding: 12px 16px; border-radius: 13px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); font-size: 13px; margin-bottom: 14px; }

@media (max-width: 820px) {
  .tbl td.cbc { position: absolute; inset-inline-end: 0; width: auto; padding-top: 10px; } .tbl tr { position: relative; }
  select.sel { flex: 1; min-width: 0; }
  .mnav a span { white-space: nowrap; }
}
.tile:has(.spark) { padding-bottom: 44px; }
.tbl td[data-l] { white-space: nowrap; }
:root[data-theme="light"] .ev { border-bottom-color: var(--line); }

/* ---------- v3: servers, connections ---------- */
a.srv-pill { color: var(--muted); }
a.srv-pill:hover { border-color: var(--line2); color: var(--text); }
.dot.warn { background: var(--warn); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { font-size: 16px; }
.h4 { font-size: 14px; margin: 0 0 10px; }
.smini { display: grid; gap: 8px; color: var(--text); cursor: pointer; }
.smini:hover, .scard:hover { border-color: var(--accent); }
.mrow { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.mrow b { color: var(--text); font-weight: 600; }
.scard { cursor: pointer; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 16px; }
.mgrid > div { display: grid; gap: 1px; min-width: 0; }
.mgrid small { color: var(--muted); font-size: 11.5px; }
.mgrid b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sdot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); direction: ltr; }
.sdot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.sdot.on::before { background: var(--ok); } .sdot.off::before { background: var(--bad); }
.sdot.off { color: var(--bad); border-color: rgba(248, 113, 113, .35); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); vertical-align: middle; margin-inline-start: 4px; }
.lconn { display: grid; gap: 2px; min-width: 0; } .lconn small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.tbl.conn td { padding: 10px 12px; font-size: 13px; }
.qrbox.sm { width: 180px; height: 180px; padding: 10px; }
.v2row + .v2row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .mgrid { grid-template-columns: 1fr 1fr; }
  .lconn small { max-width: 200px; }
  .qrbox.sm { margin: 0 auto; }
}
.txc { display: grid; gap: 2px; align-content: start; }
.rcpt { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-top: 10px; border: 1px solid var(--line); }
.morelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.morelist a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-weight: 600; font-size: 13.5px; }
.morelist a svg { color: var(--accent); }
.price-tbl td, .price-tbl th { padding: 8px 12px; text-align: center; white-space: nowrap; }
.price-tbl td:first-child, .price-tbl th:first-child { text-align: start; }
@media (max-width: 820px) { .price-tbl thead { display: table-header-group; } .price-tbl, .price-tbl tbody { display: table; } .price-tbl tr { display: table-row; padding: 0; } .price-tbl td { display: table-cell; } }
