/* Stream-Net Radius — the new look. Colors live in the variables below (light + dark). */
:root {
  --bg: #eef3fb; --card: #ffffff; --line: #e1e8f3; --text: #10234a; --muted: #5a6b8c; --soft: #eef2f9;
  --primary: #1747b8; --primary-soft: #e6edfc; --primary-text: #163a8f;
  --green: #12a150; --green-soft: #e3f6ea; --amber: #c27c0e; --amber-soft: #fdf1dc; --red: #d93b3b; --red-soft: #fde8e8;
  --blue: #2f7bd8; --blue-soft: #e4effc; --gray-soft: #eef0f4;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 24, 40, .04), 0 4px 16px rgba(20, 24, 40, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1220; --card: #171b2e; --line: #262b44; --text: #e8eaf4; --muted: #949ab5; --soft: #1d2238;
  --primary: #5b8df5; --primary-soft: #1b2a52; --primary-text: #a9c4ff;
  --green: #3ccf7f; --green-soft: #15332a; --amber: #f0b44c; --amber-soft: #3a2e15; --red: #f27171; --red-soft: #3d1c22;
  --blue: #6aa8f5; --blue-soft: #18294a; --gray-soft: #232842; --shadow: none; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0f1220; --card: #171b2e; --line: #262b44; --text: #e8eaf4; --muted: #949ab5; --soft: #1d2238;
  --primary: #5b8df5; --primary-soft: #1b2a52; --primary-text: #a9c4ff;
  --green: #3ccf7f; --green-soft: #15332a; --amber: #f0b44c; --amber-soft: #3a2e15; --red: #f27171; --red-soft: #3d1c22;
  --blue: #6aa8f5; --blue-soft: #18294a; --gray-soft: #232842; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Cairo", Tahoma, sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

.btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 9px 16px; font-weight: 600; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.wide { width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--muted); width: 38px; height: 38px; border-radius: 10px; font-size: 20px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--soft); color: var(--text); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center; }
.login-card h1 { margin: 4px 0 0; font-size: 22px; }
.login-card p { margin: 0; }
.login-card label { display: grid; gap: 6px; text-align: start; font-size: 13px; font-weight: 600; color: var(--muted); }
.err { color: var(--red); min-height: 1em; font-size: 13px; }
.brand-mark { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 28px; }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; margin: 0; }

/* shell: sidebar on the right (RTL), content beside it */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--card); border-inline-end: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; padding: 0 6px; }
#nav { display: grid; gap: 4px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
#nav a i { font-size: 20px; }
#nav a:hover { background: var(--soft); color: var(--text); }
#nav a.on { background: var(--primary-soft); color: var(--primary-text); }
.side-foot { margin-top: auto; font-size: 12px; padding: 0 6px; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.top h2 { margin: 0; font-size: 19px; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 0 6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
#content { padding: 24px 28px 40px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.only-mobile { display: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card h3 small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.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)); }
.hello { margin: 0 0 18px; }
.hello h1 { margin: 0; font-size: 22px; }
.hello p { margin: 2px 0 0; }

.kpi { display: flex; gap: 14px; align-items: center; }
.kpi .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; flex: none; }
.kpi .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.t-primary { background: var(--primary-soft); color: var(--primary-text); } .t-green { background: var(--green-soft); color: var(--green); }
.t-red { background: var(--red-soft); color: var(--red); } .t-amber { background: var(--amber-soft); color: var(--amber); }
.t-blue { background: var(--blue-soft); color: var(--blue); } .t-gray { background: var(--gray-soft); color: var(--muted); }
.mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini b { font-size: 20px; }

.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar-row .val { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.bar .on { background: var(--primary); } .bar .off { background: var(--red); opacity: .35; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 5px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.tablewrap { overflow-x: auto; }

.toast { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); background: var(--text); color: var(--card); padding: 10px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; } .toast.bad { background: var(--red); color: #fff; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-inline-start: 0; top: 0; width: 260px; z-index: 20; transform: translateX(100%); transition: transform .25s; box-shadow: var(--shadow); }
  .shell.menu-open .side { transform: none; }
  .only-mobile { display: inline-grid; }
  .top { padding: 10px 16px; } #content { padding: 16px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .who span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { #content, .side, .toast { animation: none; transition: none; } }

/* windows (modal) and the side drawer */
.overlay { position: fixed; inset: 0; background: rgba(15, 18, 32, .45); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s ease-out; }
.dialog { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s cubic-bezier(.2,.8,.3,1); }
.dialog h3 { margin: 0 0 14px; font-size: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.drawer-wrap { position: fixed; inset: 0; z-index: 30; background: rgba(15, 18, 32, .35); animation: fade .15s ease-out; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(560px, 100vw); background: var(--bg); border-inline-end: 1px solid var(--line); overflow-y: auto; padding: 20px; animation: slide .22s cubic-bezier(.2,.8,.3,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.form .check input { width: auto; }
textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; resize: vertical; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.btn.danger { color: var(--red); border-color: var(--red-soft); }
.btn.warning { color: #f59e0b; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06); }
.btn.warning:hover { background: rgba(245, 158, 11, .15); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.xs { padding: 3px 8px; font-size: 11.5px; border-radius: 6px; gap: 4px; display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.4; }
.btn.xs i { font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }

/* toolbars, chips, list tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; min-width: 150px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 5px 14px; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
table.list tbody tr.click { cursor: pointer; } table.list tbody tr.click:hover { background: var(--soft); }
.usage { min-width: 110px; } .usage .bar { height: 6px; margin-top: 4px; } .usage .bar span { background: var(--primary); }
.usage.full .bar span { background: var(--red); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-inline-end: 6px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.st-active { background: var(--green-soft); color: var(--green); } .st-expired { background: var(--red-soft); color: var(--red); }
.st-quota { background: var(--amber-soft); color: var(--amber); } .st-disabled { background: var(--gray-soft); color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 12px; }
.tabs button { border: 0; background: none; padding: 8px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--primary-text); border-bottom-color: var(--primary); }
.where { padding: 3px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.where.cloud { background: var(--blue-soft); color: var(--blue); } .where.staging { background: var(--amber-soft); color: var(--amber); } .where.local { background: var(--amber-soft); color: var(--amber); }

/* cafés */
.st-new { background: var(--blue-soft); color: var(--blue); }
.cf-off td { opacity: .6; }
.cf-acts { display: flex; flex-wrap: wrap; gap: 6px; min-width: 230px; }
.form .cf-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-code { font: 12.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre; overflow: auto; }
.cf-warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; font-weight: 600; font-size: 13.5px; }
@media (max-width: 760px) { .form .cf-row3, .form .row2 { grid-template-columns: 1fr; } }

/* network */
.net-status { margin-bottom: 16px; }
.net-status .card { display: grid; gap: 6px; }
.net-card { margin-bottom: 16px; }
.net-small { font-size: 12.5px; }
.net-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dialog.net-wide { max-width: 860px; }
.net-warn { margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.net-pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font: 12.5px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; text-align: left; max-height: 55vh; overflow: auto; }

/* ===== the owner's design (2026-11-01): navy + yellow brand, colored cards ===== */
:root { --brand: #0b2a6b; --brand2: #1747b8; --gold: #ffc61a; --gold2: #ffb800; }
.side { padding: 0 0 18px; overflow: hidden; box-shadow: 2px 0 18px rgba(16, 35, 74, .06); }
.side-brand { display: block; text-align: center; padding: 22px 10px 24px; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-end-end-radius: 36px; text-decoration: none; }
.side-brand b { display: block; font: italic 900 30px/1.1 "Cairo", sans-serif; color: #fff; letter-spacing: -.5px; direction: ltr; }
.side-brand b span { color: var(--gold); }
.side-brand small { display: block; color: #fff; font-size: 18px; font-weight: 700; margin-top: 2px; }
#nav { padding: 6px 12px; gap: 5px; }
#nav a { font-size: 16.5px; font-weight: 700; color: var(--text); padding: 11px 16px; border-radius: 14px; }
#nav a i { font-size: 23px; color: var(--brand2); }
#nav a.on { background: linear-gradient(90deg, var(--gold2), #ffd451); color: #10234a; box-shadow: 0 6px 14px rgba(255, 184, 0, .3); }
#nav a.on i { color: #10234a; }
.side-foot { padding: 0 18px; margin-bottom: 70px; position: relative; z-index: 1; }
.side::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(200deg, transparent 45%, var(--gold) 46%, var(--gold) 52%, var(--brand) 53%); }
.top { margin: 14px 24px 0; border: 0; border-radius: 18px; box-shadow: 0 4px 16px rgba(16, 35, 74, .07); top: 14px; }
.btn.primary { box-shadow: 0 6px 14px rgba(23, 71, 184, .25); }

/* dashboard */
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.dhead h1 { margin: 0; font-size: 28px; font-weight: 800; position: relative; padding-bottom: 6px; }
.dhead h1::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100px; height: 5px; border-radius: 4px; background: var(--gold); }
.dupd { font-size: 14px; color: var(--muted); font-weight: 700; background: var(--card); border-radius: 30px; padding: 5px 14px; box-shadow: var(--shadow); }
.dupd i { color: var(--green); vertical-align: -3px; }
.dtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.dtile, .dcard { --c: #163a8f; --cs: #eef4ff; --cb: #cfdcf7; --c1: #4f7df0; }
.dtile.t-sky, .dcard.t-sky { --c: #1263d9; --cs: #e4f0ff; --cb: #9cc3f7; --c1: #3aa0ff; }
.dtile.t-green { --c: #13813d; --cs: #e6f8ec; --cb: #a6e0b8; --c1: #3fcf72; }
.dtile.t-red { --c: #c62222; --cs: #ffe9e9; --cb: #f3a5a5; --c1: #ff5f5f; }
.dtile.t-amber { --c: #b87400; --cs: #fff4d6; --cb: #f5cf6a; --c1: #ffc83d; }
.dtile.t-orange { --c: #d4600a; --cs: #ffeedd; --cb: #f8bf8a; --c1: #ff9f45; }
.dcard.t-gray { --c: #33415e; --cs: #f1f3f8; --cb: #dfe4ee; --c1: #7d8aa6; }
.dtile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 10px; border-radius: 18px; border: 2px solid var(--cb);
  background: linear-gradient(160deg, var(--card), var(--cs)); color: var(--c); text-decoration: none; box-shadow: 0 8px 18px rgba(16, 35, 74, .06); transition: transform .15s, box-shadow .15s; }
.dtile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(16, 35, 74, .12); }
.dt-h { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.dt-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 24px;
  background: linear-gradient(135deg, var(--c1), var(--c)); box-shadow: 0 5px 12px rgba(0, 0, 0, .15); }
.dt-n { font-size: 42px; font-weight: 900; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dt-go { font-size: 13.5px; font-weight: 700; text-align: center; opacity: .85; }
.dt-go i { vertical-align: -2px; }
.dadm { position: absolute; top: -10px; inset-inline-end: 12px; background: #6d4bd8; color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 10px; border-radius: 20px; }
.dbox { position: relative; border: 0; border-radius: 20px; }
.dbox .dadm { top: 14px; inset-inline-end: 18px; }
.dbox h3 { font-size: 19px; font-weight: 800; }
.dbox h3::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--gold); }
.dbox h3 i { color: var(--brand2); font-size: 24px; }
.dcard { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--cs); color: var(--c); text-decoration: none; }
.dcard .dt-ic { width: 54px; height: 54px; font-size: 30px; }
.dcard small { display: block; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.dcard b { font-size: 32px; font-weight: 900; line-height: 1.15; }
.drouters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.drt { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 14.5px;
  background: var(--green-soft); border: 1.5px solid color-mix(in srgb, var(--green) 35%, transparent); }
.drt .dot { flex: none; width: 11px; height: 11px; margin: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.drt small { margin-inline-start: auto; font-size: 12.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.drt.down { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.drt.down .dot { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent); }
.drt.down small { color: var(--red); }
.drt.new { background: var(--gray-soft); border-color: var(--line); }
.drt.new .dot { background: var(--muted); box-shadow: none; }
.drt.new small { color: var(--muted); }
.dsysrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; gap: 16px; align-items: center; }
.dsys { display: flex; align-items: center; gap: 12px; }
.dsys > i { font-size: 30px; color: var(--brand2); }
.dsys small { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dsys b { font-size: 23px; font-weight: 900; }
.dbar { height: 8px; width: 140px; max-width: 100%; border-radius: 6px; background: var(--soft); margin-top: 4px; overflow: hidden; }
.dbar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3aa0ff, var(--brand2)); }
.dbar span.hot { background: var(--red); }
.dmini { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.9; }
.dmini i { color: var(--green); vertical-align: -2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.dtile, .dcard) { --cs: color-mix(in srgb, var(--c1) 16%, var(--card)); --cb: color-mix(in srgb, var(--c1) 45%, transparent); --c: var(--c1); } }
:root[data-theme="dark"] :is(.dtile, .dcard) { --cs: color-mix(in srgb, var(--c1) 16%, var(--card)); --cb: color-mix(in srgb, var(--c1) 45%, transparent); --c: var(--c1); }
@media (max-width: 1100px) { .dsysrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dt-n { font-size: 32px; } .top { margin: 10px 12px 0; } .dsysrow { grid-template-columns: 1fr; } }
.dtile.t-gold { --c: #8a5a00; --cs: #fff6d1; --cb: #f2d26a; --c1: #ffc61a; }
.dt-n small { font-size: .45em; font-weight: 800; }
div.dtile { cursor: default; } div.dtile:hover { transform: none; }
.dgrid { margin-top: 20px; }
@media (max-width: 760px) {
  .dhead { margin-bottom: 14px; } .dhead h1 { font-size: 21px; } .dre-t { display: none; } #dRe { padding: 8px 12px; }
  .dtiles { gap: 10px; }
  .dtile { padding: 10px 12px 8px; border-radius: 16px; gap: 2px; }
  .dt-h { font-size: 13px; gap: 7px; line-height: 1.35; }
  .dt-ic { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; }
  .dt-n { font-size: 28px; }
  .dgrid { margin-top: 14px; } .dbox { padding: 14px; } .dbox h3 { font-size: 16.5px; }
  .dcards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .dcard .dt-ic { width: 36px; height: 36px; font-size: 20px; } .dcard small { font-size: 12.5px; } .dcard b { font-size: 24px; }
  .drouters { grid-template-columns: 1fr 1fr; }
  .dsysrow { grid-template-columns: 1fr 1fr; gap: 12px; } .dsys > i { font-size: 24px; } .dsys b { font-size: 19px; } .dbar { width: 100%; }
  .dmini { grid-column: 1 / -1; font-size: 13px; }
}
/* brand drawings (web/art.js) */
.side::after { content: none; }
.side-art { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 230px; pointer-events: none; }
.side-foot { margin-bottom: 0; position: absolute; bottom: 8px; inset-inline-start: 18px; z-index: 1; }
.side-foot .muted { color: #fff; opacity: .85; }
.logo-sw { display: block; width: 170px; height: 16px; margin: 0 auto 2px; }
.dhead { position: relative; min-height: 118px; padding-top: 18px; }
.dhead > :not(.dart) { position: relative; z-index: 1; }
.dart { position: absolute; inset-inline-end: 0; top: -6px; height: 140px; width: min(520px, 55%); pointer-events: none; }
.dhead #dRe { align-self: flex-end; }
@media (max-width: 760px) {
  .top h2 { display: none; }
  .where { white-space: nowrap; font-size: 11px; padding: 2px 9px; }
  .dhead { min-height: 92px; padding-top: 30px; }
  .dart { height: 96px; width: 62%; top: -4px; opacity: .55; }
}
@media (max-height: 640px) { .side-art { display: none; } }
.dhead #dRe { align-self: center; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 12px; font-size: 19px; color: var(--brand2); }
.dtiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 760px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dtile.t-gold { grid-column: 1 / -1; } .dhead #dRe { width: 36px; height: 36px; } }

/* subscribers: tick boxes, the bar for the ticked ones, the right-click menu (owner 2026-11-01) */
.pickc { width: 34px; padding-inline-end: 0 !important; }
input.pick { width: 18px; height: 18px; padding: 0; accent-color: var(--brand2); cursor: pointer; vertical-align: middle; }
table.list tbody tr.picked { background: var(--primary-soft); }
.bulk { position: sticky; top: 92px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px;
  border-radius: 14px; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 20px rgba(16, 35, 74, .2); animation: fade .15s ease-out; }
.bulk b { margin-inline-end: 6px; }
.bulk .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.bulk .btn:hover { background: rgba(255, 255, 255, .25); }
.bulk .btn.danger { background: #e53935; border-color: #e53935; }
.ctxm { position: fixed; z-index: 60; min-width: 220px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(16, 35, 74, .22); animation: pop .12s ease-out; }
.ctxh { padding: 4px 10px 6px; font-weight: 800; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; text-align: right; }
.ctxm button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; text-align: start; }
.ctxm button i { font-size: 18px; color: var(--brand2); }
.ctxm button:hover { background: var(--soft); }
.ctxm button.danger, .ctxm button.danger i { color: var(--red); }
.ctxm { max-height: calc(100vh - 12px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 760px) { .bulk { top: 70px; } }
/* phones (owner 2026-11-02): the menu comes up from the bottom with big buttons, and a long press on a subscriber doesn't
   select text or open the iPhone's own popup */
@media (max-width: 760px) {
  .ctxm { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 72vh; border-radius: 20px 20px 0 0;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); animation: sheet .18s ease-out; }
  .ctxm::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 8px; }
  .ctxm button { padding: 12px 10px; font-size: 15px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
@media (hover: none) { table.slist tbody tr { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
/* the redrawn art (after the reference): bigger header drawing, swoosh above the name, taller menu bottom */
.dhead { min-height: 150px; }
.dart { height: auto; width: min(780px, 60%); top: -14px; }
.logo-sw { width: 176px; height: 20px; margin: -6px auto 0; }
.side-art { height: 330px; }
@media (max-width: 760px) { .dhead { min-height: 100px; } .dart { width: 78%; top: -8px; opacity: .6; } }
@media (max-height: 760px) { .side-art { height: 230px; } }
/* the header drawing reaches further to the right, as in the reference */
.dart { width: min(1000px, 74%); }
@media (max-width: 1100px) { .dart { width: 66%; } }

/* حالة النظام والشبكة (owner's reference layout) */
.sxrow3, .sxrow2 { display: grid; gap: 14px; margin-top: 12px; }
.sxrow3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sxrow2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid #d6e3f6; background: linear-gradient(160deg, var(--card), #f3f7fe); min-width: 0; }
.sx-t { flex: 1; min-width: 0; text-align: start; }
.sx-t small { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.sx-t b { display: block; font-size: 24px; font-weight: 900; line-height: 1.3; }
.sx-t .dbar { width: 100%; height: 9px; margin-top: 6px; }
.dbar span.green { background: linear-gradient(90deg, #3fcf72, #17a14d); }
.sx-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; color: var(--brand); background: #e8effb; }
.sx-ic.plain { background: none; width: 40px; }
.sx-ping .sx-t { text-align: center; }
.sx-ping .sx-t small { font-size: 14.5px; }
.sx-sep { width: 1px; align-self: stretch; background: #d6e3f6; margin: 4px 0; }
.sx-c .sx-t { text-align: center; }
.sx-c .sx-t b { font-size: 21px; }
.pdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #1fae5b; vertical-align: 0; }
.pdot.warn { background: #f0a000; } .pdot.bad { background: #e53935; }
.pdot.big { width: 16px; height: 16px; flex: none; }
:root[data-theme="dark"] .sx, :root[data-theme="dark"] .sx-sep { border-color: var(--line); background: var(--soft); }
:root[data-theme="dark"] .sx-ic { background: var(--card); color: var(--primary-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sx { border-color: var(--line); background: var(--soft); } :root:not([data-theme="light"]) .sx-ic { background: var(--card); color: var(--primary-text); } }
@media (max-width: 1100px) { .sxrow3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sxrow2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sxrow3 { grid-template-columns: 1fr; } .sx { padding: 10px 12px; gap: 10px; }
  .sx-t small { font-size: 13px; } .sx-t b { font-size: 19px; } .sx-ic { width: 40px; height: 40px; font-size: 22px; }
}

/* servers: a card each, a green / red dot in its corner (owner 2026-11-01) */
.drouters { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.drt { position: relative; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(160deg, var(--card), #f3f7fe); border: 1.5px solid #d6e3f6; }
.drt > i { font-size: 26px; color: var(--brand2); }
.drt b { display: block; font-size: 14px; line-height: 1.35; }
.drt small { display: block; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--green); white-space: normal; }
.drt .cdot { position: absolute; top: 9px; inset-inline-end: 9px; width: 13px; height: 13px; border-radius: 50%; background: #1fae5b; box-shadow: 0 0 0 4px rgba(31, 174, 91, .18); }
.drt.down { background: linear-gradient(160deg, var(--card), #fff1f1); border-color: #f6c2c2; }
.drt.down .cdot { background: #e53935; box-shadow: 0 0 0 4px rgba(229, 57, 53, .18); animation: blink 1.4s ease-in-out infinite; }
.drt.down small { color: var(--red); } .drt.down > i { color: var(--red); }
.drt.new .cdot { background: var(--muted); box-shadow: none; }
@keyframes blink { 50% { opacity: .35; } }
.demo { font-size: 11.5px; font-weight: 700; color: #8a5a00; background: #fff4d6; border: 1px solid #f5cf6a; padding: 0 9px; border-radius: 20px; }
:root[data-theme="dark"] .drt { background: var(--soft); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drt { background: var(--soft); border-color: var(--line); } }
@media (max-width: 760px) { .drouters { grid-template-columns: 1fr 1fr; } .drt { padding: 8px 10px; } .drt > i { display: none; } }
.dstack { display: grid; gap: 20px; }
.dstack .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drt div { min-width: 0; padding-inline-end: 14px; }
.drt em { display: block; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.drouters { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 760px) { .drouters { grid-template-columns: 1fr 1fr; gap: 8px; } .drt b { font-size: 13px; } .drt small, .drt em { font-size: 11.5px; } .sxrow2 .sx-ping { padding: 10px; } }

/* استهلاك الجيجات widget (owner 2026-11-01) */
.gbw { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; align-items: stretch; padding: 16px 20px; margin-top: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.gbw h3 { grid-column: 1 / -1; margin: 0; font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.gbw h3::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--gold); }
.gbw h3 i { color: var(--brand2); font-size: 24px; }
.gbk { border-radius: 16px; padding: 14px 16px; color: #fff; position: relative; overflow: hidden; }
.gbk.today { background: linear-gradient(135deg, #3aa0ff, #1747b8); }
.gbk.month { background: linear-gradient(135deg, #1747b8, #0b2a6b); }
.gbk::after { content: ""; position: absolute; inset-inline-start: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.gbk small { font-size: 15px; font-weight: 700; opacity: .9; display: flex; align-items: center; gap: 6px; }
.gbk b { display: block; font-size: 38px; font-weight: 900; line-height: 1.2; margin: 4px 0; }
.gbk b span { font-size: 17px; font-weight: 800; opacity: .9; }
.gbk .ud { display: flex; gap: 14px; font-size: 13.5px; font-weight: 700; opacity: .92; }
.gbk .ud i { color: var(--gold); vertical-align: -2px; }
.gbk .vs { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .18); padding: 2px 9px; border-radius: 20px; }
.gbc { border: 1.5px solid #d6e3f6; border-radius: 16px; padding: 10px 14px 6px; display: flex; flex-direction: column; }
.gbc small { font-size: 14px; font-weight: 800; color: var(--muted); }
.gbbars { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; min-height: 100px; }
.gbbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.gbbar span { width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #7fb0f0, #1747b8); }
.gbbar.now span { background: linear-gradient(180deg, #ffd451, #ffb000); }
.gbbar em { font-style: normal; font-size: 11px; color: var(--text); }
.gbw .gbc { background: var(--card); }
:root[data-theme="dark"] .gbc { border-color: var(--line); }
@media (max-width: 1100px) { .gbw { grid-template-columns: 1fr 1fr; } .gbc { grid-column: 1 / -1; } }
@media (max-width: 760px) { .gbw { padding: 14px; gap: 10px; margin-top: 14px; } .gbk { padding: 12px; } .gbk b { font-size: 26px; } .gbk .ud { flex-direction: column; gap: 2px; font-size: 12px; } .gbk .vs { position: static; display: inline-block; margin-bottom: 4px; } .gbbars { gap: 4px; } .gbbar { font-size: 10px; } }

/* ===== المشتركين in the dashboard's style (owner 2026-11-01) ===== */
/* state colors: --k = the strong color, --ks = its soft background (owner 2026-11-02: connected blue, renewed green, ending soon
   light green, expired yellow, GB done brown, stopped red, advance purple) */
.s-online { --k: #1263d9; --ks: #e4effc; } .s-active { --k: #2e7d32; --ks: #e6f4e7; } .s-offline { --k: #5d6680; --ks: #eceef3; }
.s-today { --k: #5f9e2f; --ks: #edf7e3; } .s-expiring { --k: #6fae3a; --ks: #f0f8e8; } .s-expired { --k: #7a6500; --ks: #fff7c2; }
.s-quota { --k: #5d4037; --ks: #ece4e1; } .s-advance { --k: #7b3fe4; --ks: #f0e9fd; } .s-disabled { --k: #c62222; --ks: #fde4e4; } .s-all { --k: #163a8f; --ks: #e6edfc; }
:root[data-theme="dark"] [class*="s-"] { --ks: color-mix(in srgb, var(--k) 22%, var(--card)); --k: color-mix(in srgb, var(--k) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [class*="s-"] { --ks: color-mix(in srgb, var(--k) 22%, var(--card)); --k: color-mix(in srgb, var(--k) 55%, #fff); } }
.shead { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.shead h1 { margin: 0; font-size: 26px; font-weight: 800; position: relative; padding-bottom: 6px; }
.shead h1::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 70px; height: 5px; border-radius: 4px; background: var(--gold); }
.sbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 0; border-radius: 18px; padding: 14px 16px; }
.sbar select { width: auto; min-width: 150px; }
.sfind { position: relative; flex: 1 1 280px; }
.sfind i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.sfind input { padding-inline-start: 38px; border-radius: 12px; }
.fcount { background: var(--gold); color: #10234a; border-radius: 20px; padding: 0 7px; font-size: 12px; margin-inline-start: 4px; }
.smore { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px dashed var(--line); }
.smore label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.smore input, .smore select { width: auto; min-width: 150px; }
.scount { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sc { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid transparent; background: var(--card); color: var(--text); border-radius: 12px; padding: 6px 12px; font-weight: 700; font-size: 13.5px; box-shadow: 0 2px 8px rgba(16, 35, 74, .05); }
.sc b { background: var(--ks); color: var(--k); border-radius: 8px; padding: 0 8px; font-size: 13px; }
.sc .sd { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.sc:hover { border-color: var(--ks); }
.sc.on { border-color: var(--k); background: var(--ks); color: var(--k); }
.sc.on b { background: var(--k); color: #fff; }
.stable { border: 0; border-radius: 18px; padding: 6px 8px; }
table.slist th { white-space: nowrap; }
table.slist th.sort { cursor: pointer; user-select: none; }
table.slist th.sort i { font-size: 14px; opacity: .35; margin-inline-start: 4px; vertical-align: -2px; }
table.slist th.sort.on { color: var(--brand2); } table.slist th.sort.on i { opacity: 1; }
table.slist th.sort.on.desc i { transform: scaleY(-1); }
/* every subscriber is its own white strip with a gap (owner 2026-11-02); only the username's small box carries the state
   color, and the thing that ran out is colored (the date yellow, the GB brown). Headers drag to reorder. */
.stable { background: var(--soft); }
table.slist { border-collapse: separate; border-spacing: 0 6px; }
table.slist th { border-bottom: 0; }
table.slist th.drag { cursor: grab; } table.slist th.dragging { opacity: .4; }
table.slist th.dropto { box-shadow: inset 3px 0 0 var(--primary); background: var(--primary-soft); }
table.slist tbody td { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.slist tbody tr td:first-child { border-inline-start: 1px solid var(--line); border-start-start-radius: 12px; border-end-start-radius: 12px; }
table.slist tbody tr td:last-child { border-inline-end: 1px solid var(--line); border-start-end-radius: 12px; border-end-end-radius: 12px; }
table.slist tbody tr.click:hover td { background: color-mix(in srgb, var(--primary-soft) 55%, var(--card)); }
table.slist tbody tr.picked td { background: var(--primary-soft); }
table.slist .clip { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uname { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 3px 11px; border-radius: 8px; white-space: nowrap; color: #fff; background: #5d6680; }
.uname.u-online { background: #1263d9; } .uname.u-active { background: #2e7d32; } .uname.u-today, .uname.u-expiring { background: #7cb342; }
.uname.u-expired { background: #fdd835; color: #3d3300; } .uname.u-quota { background: #5d4037; } .uname.u-disabled { background: #c62222; }
.uname.u-advance { background: #7b3fe4; }
.uname .live { width: 8px; height: 8px; border-radius: 50%; background: #fff; --k: #fff; animation: live 1.6s infinite; }
.who2 .uname + small { margin-top: 3px; }
.ended { display: inline-block; padding: 4px 8px; border-radius: 8px; }
.ended.e-exp { background: #fff7c2; color: #6b5800; } .ended.e-exp small.left { color: #6b5800; }
.ended.e-gb { background: #ece4e1; color: #4e342e; }
.usage .ut { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.usage .ut b { color: var(--text); }
.usage .bar span { background: #2e7d32; } .usage.low .bar span { background: #c62222; }
table.slist .sbadge { min-width: 112px; justify-content: center; }
.colpick { position: relative; }
.colbox { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 35, 74, .14); padding: 8px; display: grid; gap: 2px; min-width: 170px; }
.colbox label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.colbox label:hover { background: var(--soft); } .colbox input { width: auto; }
:root[data-theme="dark"] .uname.u-on, :root[data-theme="dark"] .ended { filter: brightness(.85); }
.who2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who2 > div { min-width: 0; } .who2 b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who2 small { display: block; color: var(--muted); font-size: 12.5px; text-align: right; }
.av2 { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--ks, var(--soft)); color: var(--k, var(--text)); }
.num { font-variant-numeric: tabular-nums; }
small.left { display: block; font-size: 12px; color: var(--k, var(--muted)); font-weight: 700; }
.sbadge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 3px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 800; background: var(--ks); color: var(--k); }
.sbadge i { font-size: 15px; }
.sbadge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 0 var(--k); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--k) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pager { flex-wrap: wrap; padding: 4px 6px; }
.psize { display: inline-flex; align-items: center; gap: 6px; } .psize select { width: auto; padding: 4px 8px; }
@media (max-width: 760px) {
  .sbar { padding: 10px; } .sbar select, .smore input, .smore select { flex: 1 1 140px; min-width: 0; }
  .scount { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 10px 0; } .sc { flex: none; }
  .stable { padding: 0; background: none; box-shadow: none; }
  table.slist thead { display: none; }
  table.slist, table.slist tbody { display: block; }
  table.slist tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 10px; padding: 12px 14px 10px; background: var(--card); border-radius: 16px;
    border-inline-start: 5px solid var(--k, var(--line)); box-shadow: 0 4px 14px rgba(16, 35, 74, .06); position: relative; }
  table.slist tbody tr.s-expired, table.slist tbody tr.s-disabled { background: var(--card); }
  table.slist tbody tr td { display: block; padding: 0; border: 0; box-shadow: none !important; font-size: 13px; background: none !important; border-radius: 0 !important; }
  table.slist tbody tr td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
  table.slist tbody tr td[data-l="المشترك"] { grid-column: 1 / -1; padding-inline-end: 34px; } table.slist tbody tr td[data-l="المشترك"]::before { display: none; }
  table.slist tbody tr td[data-l="الحالة"] { grid-column: 1 / -1; } table.slist tbody tr td[data-l="الحالة"]::before { display: none; }
  table.slist tbody tr td.pickc { position: absolute; top: 14px; inset-inline-end: 12px; width: auto; }
  table.slist tbody tr td.empty { grid-column: 1 / -1; }
  .pager { justify-content: center; text-align: center; gap: 10px; }
}
@media (max-width: 760px) { table.slist tbody tr td[data-l="الحالة"] { grid-column: auto; align-self: end; } table.slist tbody tr td[data-l="المدير"] { order: 5; } table.slist tbody tr td[data-l="الاستهلاك"] { order: 6; } table.slist tbody tr td[data-l="الحالة"] { order: 7; } table.slist tbody tr { gap: 6px 12px; } .shead h1 { font-size: 22px; } }
/* the subscriber form (owner 2026-11-01) */
.subform { gap: 10px; }
.dialog h3 i { color: var(--brand2); vertical-align: -3px; }
.fsec { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--soft); font-weight: 800; font-size: 15px; color: var(--text); }
.fsec i { color: var(--brand2); font-size: 20px; }
.fsec::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--gold); }
.form .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.req { color: var(--red); font-style: normal; }
.pwbox { display: flex; gap: 4px; align-items: center; } .pwbox input { flex: 1; }
.fadv summary { list-style: none; cursor: pointer; } .fadv summary::-webkit-details-marker { display: none; }
.fadv summary .fsec::after { content: "▾"; margin-inline-start: auto; color: var(--muted); } .fadv[open] summary .fsec::after { content: "▴"; }
.fadv > .row3 { margin: 10px 0 6px; }
@media (max-width: 760px) { .form .row3 { grid-template-columns: 1fr; } }
/* auto-renew mark under the name, radio list, settings switches (owner 2026-11-01) */
.amark { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 11.5px; font-weight: 800; padding: 0 8px; border-radius: 20px; background: #e6f8ec; color: #13813d; }
.amark.admin { background: #efe9fd; color: #6d3fd1; }
.amark i { font-size: 13px; }
.radios { display: grid; gap: 8px; }
.setcard { border: 0; border-radius: 18px; display: grid; gap: 4px; }
.setrow { display: flex; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow > div { flex: 1; } .setrow b { font-size: 16px; } .setrow b i { color: var(--brand2); vertical-align: -3px; }
.setrow p { margin: 4px 0 0; font-size: 13.5px; } .setrow select { width: auto; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--line); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: inset-inline-start .2s; }
.switch input:checked + span { background: #1fae5b; }
.switch input:checked + span::after { inset-inline-start: 25px; }
/* ===== عرض 360 + renew form + list GB (owner 2026-11-01) ===== */
.drawer.wide { width: min(880px, 100vw); }
.v360h { display: flex; align-items: center; gap: 12px; }
.v360h h2 { margin: 0; font-size: 21px; }
.av2.big { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
.v360u { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-weight: 700; }
.icon-btn.sm { width: 28px; height: 28px; font-size: 16px; }
.dmark { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 0 8px; border-radius: 20px; background: #e3f6ea; color: #13813d; border: 1px solid #a6e0b8; margin-inline-start: 4px; }
.v360a { justify-content: flex-start; margin: 14px 0; }
.v360a .btn { padding: 7px 12px; font-size: 13.5px; }
.v360k { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kc { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.kc small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.kc b { display: block; font-size: 15.5px; margin-top: 2px; }
.v360t { overflow-x: auto; white-space: nowrap; }
.v360t button i { vertical-align: -2px; }
.v360n { font-size: 12.5px; margin: 4px 2px 10px; }
/* «عرض 360» to read only (owner 2026-11-02, from his picture): a blue header with waves, six cards, data + a gauge, tabs */
.drawer.v3 { padding: 0 0 20px; }
.drawer.v3 > :not(.v3hd) { margin-inline: 18px; }
.v3hd { position: relative; overflow: hidden; color: #fff; padding: 16px 20px 18px; margin-bottom: 14px;
  background: radial-gradient(120% 90% at 0% 0%, #2f6fe0 0%, transparent 60%), linear-gradient(135deg, #0b2a6f, #163a8f 55%, #1d4fb8); }
.v3hd::after { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 120px; border-radius: 50%; border-top: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 -18px 0 -2px rgba(255, 255, 255, .07); pointer-events: none; }
.v3hl { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.v3hi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.v3hd .icon-btn { color: #fff; background: rgba(255, 255, 255, .14); border-color: transparent; }
.v3hd h2 { margin: 10px 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.v3hu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.v3id { background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 3px 10px; font-weight: 800; }
.v3hu .sbadge { background: #fff; }
.v3ks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.v3k { position: relative; background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 2px; align-content: start; }
.v3k small { color: var(--muted); font-weight: 700; font-size: 12px; } .v3k b { font-size: 16px; font-weight: 800; } .v3k em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.v3ki { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; margin-bottom: 4px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.v3k.c-blue { --c: #1263d9; } .v3k.c-amber { --c: #d48a00; } .v3k.c-violet { --c: #6d3fd1; } .v3k.c-green { --c: #2e9d4a; } .v3k.c-pink { --c: #c2387a; } .v3k.c-orange { --c: #e06a10; }
.v3ring { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; transform: rotate(-90deg); }
.v3ring circle { fill: none; stroke: var(--soft); stroke-width: 3.5; } .v3ring circle.v { stroke: #2e9d4a; stroke-linecap: round; }
.v3ring text { transform: rotate(90deg); transform-origin: 18px 18px; font-size: 8.5px; font-weight: 800; text-anchor: middle; fill: var(--text); }
.v3two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.v3two h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: 15px; } .v3two h4 i { color: var(--primary); }
.v3r { display: grid; grid-template-columns: 20px auto 1fr; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.v3r:last-child { border-bottom: 0; } .v3r i { color: var(--primary); } .v3r span { color: var(--muted); font-weight: 600; } .v3r b { text-align: end; font-weight: 700; }
.v3use { text-align: center; }
.v3g { width: 100%; max-width: 230px; display: block; margin: 6px auto 0; }
.v3g path { fill: none; stroke-width: 16; stroke-linecap: round; } .v3g .bg { stroke: var(--soft); } .v3g .fg { stroke: #2e9d4a; }
.v3gv { margin-top: -46px; margin-bottom: 14px; } .v3gv b { display: block; font-size: 22px; font-weight: 800; } .v3gv small { color: var(--muted); font-weight: 700; }
.v3leg { display: grid; gap: 6px; font-size: 13px; text-align: start; } .v3leg span { display: flex; align-items: center; gap: 6px; } .v3leg b { margin-inline-start: auto; }
.v3leg .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .v3leg .dot.u { background: #1263d9; } .v3leg .dot.r { background: #2e9d4a; }
.v3empty { display: grid; justify-items: center; gap: 4px; padding: 22px 0; } .v3empty i { font-size: 28px; color: var(--primary); } .v3empty small { color: var(--muted); }
.v3note { display: flex; gap: 10px; padding: 8px; } .v3note i { font-size: 22px; color: var(--primary); } .v3note p { margin: 4px 0 0; white-space: pre-wrap; }
.v3gen .kv { margin: 8px; }
@media (max-width: 900px) { .v3ks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .v3two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .v3ks { grid-template-columns: 1fr 1fr; } .drawer.v3 > :not(.v3hd) { margin-inline: 10px; } .v3hd h2 { font-size: 21px; } }
.ubar { height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.ubar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3aa0ff, var(--brand2)); }
.tl { display: grid; gap: 4px; padding: 6px 4px; }
.tli { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.tli:last-child { border-bottom: 0; }
.tld { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 0 4px var(--primary-soft); }
.tli > div { flex: 1; min-width: 0; }
.tlh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tlh small { color: var(--muted); font-size: 12px; }
.tlc { margin-top: 6px; font-size: 13px; border-collapse: collapse; }
.tlc th { color: var(--muted); font-size: 11.5px; text-align: start; padding: 2px 10px 2px 0; }
.tlc td { padding: 2px 10px 2px 0; border-top: 1px solid var(--line); }
.tlc td:first-child { color: var(--muted); font-weight: 700; }
.lvc { padding: 6px 4px; }
.lvr { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lvr > div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.lvr small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.lvr b { font-size: 20px; font-variant-numeric: tabular-nums; }
.lvm { font-size: 12.5px; margin-top: 8px; }
.dsc-cur { background: #e9f8ee; border-inline-start: 4px solid #1fae5b; padding: 8px 12px; border-radius: 8px; margin: 4px 0 10px; font-size: 14px; }
.dsc-cur i { color: #1fae5b; }
.dsc-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.dsc-f label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); flex: 1 1 160px; }
.dsc-f label.check { flex: 0 0 auto; display: flex; color: var(--text); }
.paysrc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paysrc label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; color: var(--text); }
.paysrc label input { width: auto; }
.paysrc label i { color: var(--brand2); font-size: 20px; }
.paysrc label.on { border-color: var(--brand2); background: var(--primary-soft); }
.rsum { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; font-size: 14px; }
.rsum > div { display: flex; justify-content: space-between; }
.rsum .dsc { color: #13813d; }
.rsum .tot { border-top: 1px solid var(--line); padding-top: 4px; font-size: 15.5px; }
.usage .uu, .usage .ul { display: block; font-size: 12.5px; white-space: nowrap; }
.usage .uu b { font-size: 14px; } .usage .ul { color: var(--muted); }
@media (max-width: 760px) { .paysrc { grid-template-columns: 1fr; } .v360k { grid-template-columns: 1fr 1fr; } }
.rdate { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); font-size: 13px; } .rdate input { width: auto; }
.rtabs { margin: 0 0 12px; }
/* the renew button: bigger and glowing (owner 2026-11-01) */
.btn.glow { font-size: 18px; font-weight: 800; padding: 11px 30px; border-radius: 14px; background: linear-gradient(135deg, #2f6cf0, #1747b8); animation: glow 1.8s ease-in-out infinite; }
.btn.glow i { font-size: 20px; vertical-align: -3px; }
.btn.glow:hover { filter: brightness(1.08); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 108, 240, .55), 0 6px 16px rgba(23, 71, 184, .35); } 50% { box-shadow: 0 0 0 7px rgba(47, 108, 240, 0), 0 6px 22px rgba(23, 71, 184, .6); } }
@media (prefers-reduced-motion: reduce) { .btn.glow { animation: none; } }
/* «تفعيل مشترك» (owner 2026-11-01, like ADV's) */
.rnh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rnh h3 { margin: 0; }
.switch.paid input:checked + span { background: var(--brand2); }
.rinfo { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rinfo th { text-align: start; color: var(--muted); font-weight: 700; padding: 7px 4px; width: 42%; }
.rinfo th.hot { color: var(--red); }
.rinfo td { padding: 7px 4px; border-bottom: 1px solid var(--soft); }
.rinfo select, .rinfo input { width: auto; min-width: 140px; padding: 5px 10px; }
/* GB top-up + transaction list (owner 2026-11-02) */
.gbpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gbpick input { width: 110px; }
.chip.on { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.cfind { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cfind .sfind { flex: 1 1 260px; }
.cres { max-height: 55vh; overflow: auto; margin-top: 10px; }
.setnum { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.setnum input { width: 100px; }
.set-tabs { display: inline-flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 12px; border: 1px solid var(--line); margin-inline-start: 14px; }
.set-tabs .tab-btn { border: 0; background: transparent; padding: 7px 15px; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease; }
.set-tabs .tab-btn:hover { color: var(--text); }
.set-tabs .tab-btn.on { background: var(--card); color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
@media (max-width: 600px) { .set-tabs { margin-inline-start: 0; width: 100%; justify-content: stretch; } .set-tabs .tab-btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 6px 10px; } }

/* ===== المدراء in the dashboard's style (owner 2026-11-02) ===== */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.mcard { background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(16, 35, 74, .07); cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; display: grid; gap: 10px; }
.mcard:hover { transform: translateY(-3px); border-color: var(--primary-soft); }
.mcard.off { opacity: .7; }
.mch { display: flex; align-items: center; gap: 10px; }
.mch b { display: block; font-size: 16px; } .mch small { color: var(--muted); font-weight: 700; }
.mbal { background: linear-gradient(135deg, #1747b8, #0b2a6b); color: #fff; border-radius: 14px; padding: 10px 14px; }
.mbal small { opacity: .85; font-weight: 700; } .mbal b { display: block; font-size: 26px; font-weight: 900; } .mbal b span { font-size: 15px; }
.mst { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.mst > div { background: var(--soft); border-radius: 10px; padding: 6px 4px; }
.mst b { display: block; font-size: 17px; } .mst small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.mst .g b { color: #13813d; } .mst .r b { color: #c62222; } .mst .b b { color: #1263d9; }
.mft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--muted); font-weight: 700; }
.mft i { vertical-align: -2px; color: var(--brand2); }
.ppre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.pgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.pgroup { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 6px; align-content: start; }
.pgh { display: flex; align-items: center; gap: 6px; font-weight: 800; padding-bottom: 4px; border-bottom: 1px solid var(--soft); }
.pgh i { color: var(--brand2); }
@media (max-width: 760px) { .mgrid { grid-template-columns: 1fr; } }
/* «عرض 360°» in every row (owner 2026-11-02) */
.v3c { width: 1%; white-space: nowrap; }
.b360 { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 11px; padding: 6px 12px; font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #2f6cf0, #1747b8); box-shadow: 0 4px 12px rgba(23, 71, 184, .28); transition: transform .12s, box-shadow .12s; }
.b360 i { font-size: 17px; }
.b360:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 71, 184, .4); }
@media (max-width: 760px) { table.slist tbody tr td.v3c { grid-column: 1 / -1; order: 8; } .b360 { width: 100%; justify-content: center; padding: 8px; } }
.newver { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: linear-gradient(90deg, var(--gold2), #ffd451); color: #10234a; font-weight: 800; box-shadow: 0 10px 30px rgba(16, 35, 74, .25); animation: pop .2s ease-out; }
.newver .btn { background: #10234a; color: #fff; border-color: #10234a; }
.nasn { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
table.slist tbody tr.click { cursor: context-menu; }
.coawarn { border: 1px solid #f3c4c4; background: color-mix(in srgb, #fde4e4 45%, var(--card)); margin: 14px 0; } .coawarn h3 { color: var(--red); display: flex; gap: 6px; align-items: center; margin: 0 0 4px; }
/* عرض 360 grows over the whole screen (owner 2026-11-02): width eases out, the cards spread with it */
.drawer.v3 { transition: width .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s; will-change: width; }
.drawer.v3.full { width: 100vw; box-shadow: 0 0 0 100vmax rgba(9, 20, 48, .25); }
.drawer.v3 .v3ks, .drawer.v3 .v3two { transition: gap .5s; }
.drawer.v3.full > :not(.v3hd) { margin-inline: clamp(18px, 4vw, 64px); }
.drawer.v3.full .v3two { grid-template-columns: 1.6fr 1fr; gap: 18px; }
.drawer.v3.full .v3hd { padding-inline: clamp(20px, 4vw, 64px); }
@media (prefers-reduced-motion: reduce) { .drawer.v3 { transition: none; } }
/* «مشاهدة الترافيك» live graph (owner 2026-11-02) */
.trf-now { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin: 6px 0 10px; }
.trf-k { background: var(--soft); border-radius: 14px; padding: 10px 12px; } .trf-k small { color: var(--muted); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.trf-k b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; } .trf-k b.trf-w { font-size: 14px; margin-top: 6px; }
.trf-k.d b, .trf-k.d small i { color: #1263d9; } .trf-k.u b, .trf-k.u small i { color: #2e9d4a; }
.trf-chart { height: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.trf-chart canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .trf-now { grid-template-columns: 1fr 1fr; } .trf-now .trf-k:last-child { grid-column: 1 / -1; } .trf-chart { height: 200px; } }
/* the subscribers list on a phone (owner 2026-11-02): the same table as the computer — every column, one small line per
   subscriber; the table slides left / right under the finger (the page itself stays put) and the subscriber column stays
   in place while it slides. A long press opens his menu. */
@media (max-width: 760px) {
  .main { overflow-x: clip; } #content { max-width: 100vw; }
  .shead { margin-bottom: 10px; } .shead .btn { padding: 7px 10px; font-size: 13px; }
  .scount { gap: 6px; } .sc { padding: 4px 9px; font-size: 12.5px; }
  .stable { padding: 4px; background: var(--soft); border-radius: 14px; }
  .stable .tablewrap { overflow-x: auto; overscroll-behavior-x: contain; }
  table.slist { display: table !important; width: max-content; min-width: 100%; border-spacing: 0 6px; }
  table.slist thead { display: table-header-group !important; }
  table.slist tbody { display: table-row-group !important; }
  table.slist th { font-size: 14px; padding: 6px 12px; }
  table.slist tbody tr { display: table-row !important; padding: 0; margin: 0; box-shadow: none; border-radius: 0; }
  table.slist tbody tr td, table.slist tbody tr td[data-c], table.slist tbody tr td.pickc { display: table-cell !important; position: static !important;
    padding: 12px 12px !important; font-size: 15px; line-height: 1.5; white-space: nowrap; vertical-align: middle;
    background: var(--card) !important; border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  table.slist tbody tr td:first-child { border-start-start-radius: 10px !important; border-end-start-radius: 10px !important; }
  table.slist tbody tr td:last-child { border-start-end-radius: 10px !important; border-end-end-radius: 10px !important; }
  table.slist tbody tr td[data-l]::before { display: none !important; }
  table.slist tbody tr td[data-c="name"], table.slist thead tr th[data-col="name"] { position: sticky !important; inset-inline-start: 0; z-index: 2; box-shadow: -6px 0 8px -6px rgba(16, 35, 74, .25); }
  table.slist th[data-col="name"] { background: var(--soft); }
  table.slist .who2 > div { display: flex; align-items: center; gap: 6px; }
  table.slist .who2 small { display: inline; font-size: 13.5px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  table.slist .uname { padding: 3px 11px; font-size: 16px; border-radius: 9px; }
  table.slist .sbadge { min-width: 0; padding: 3px 10px; font-size: 14px; } table.slist .sbadge i { font-size: 15px; }
  table.slist small.left { display: inline; font-size: 13.5px; margin-inline-start: 6px; }
  table.slist .ended { padding: 1px 6px; border-radius: 6px; }
  table.slist .usage { min-width: 230px; } table.slist .usage .ut { font-size: 14px; } table.slist .usage .bar { height: 4px; margin-top: 3px; }
  table.slist .clip { max-width: 160px; }
}
/* the run-out GB box keeps its dark text on its light color in the dark theme too */
.ended .usage .ut, .ended .usage .ut b { color: inherit; }
/* a double click on a subscriber doesn't select his text (owner 2026-11-02) — «نسخ اليوزر» is in his menu */
table.slist tbody tr { -webkit-user-select: none; user-select: none; }
/* a double tap on a subscriber ticks him instead of zooming the page */
table.slist tbody tr { touch-action: manipulation; }
.v3hd { -webkit-user-select: none; user-select: none; cursor: zoom-in; } .drawer.v3.full .v3hd { cursor: zoom-out; } .v3hd .v3id { -webkit-user-select: text; user-select: text; }
/* the menu's header: his username and an X to close it */
.ctxh { display: flex; align-items: center; gap: 8px; }
.ctxh span { flex: 1; text-align: right; }
.ctxm .ctxh .ctxx { width: 32px; height: 32px; padding: 0; justify-content: center; flex: none; border-radius: 10px; background: var(--soft); }
.ctxm .ctxh .ctxx i { color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { .ctxm .ctxh .ctxx { width: 38px; height: 38px; } .ctxm { touch-action: pan-y; } }
.ctxm button.off { opacity: .45; cursor: not-allowed; } .paidsel { margin-top: -4px; }
.debtbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #fde4e4 60%, var(--card)); color: #b42318; font-weight: 700; } .debtbar b { color: #b42318; }
/* iPhone: the sticky subscriber column was painted empty until a scroll — its own layer fixes it */
@media (max-width: 760px) {
  table.slist tbody tr td[data-c="name"], table.slist thead tr th[data-col="name"] { -webkit-transform: translateZ(0); transform: translateZ(0); will-change: transform; }
  .dialog { touch-action: pan-y; }
}
/* every window's X (owner 2026-11-02) */
.dialog { position: relative; }
.dlgx { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--soft); color: var(--muted);
  display: grid; place-items: center; z-index: 2; cursor: pointer; }
.dlgx i { font-size: 18px; } .dlgx:hover { color: var(--text); }
.dialog > h3, .dialog > .rnh { padding-inline-end: 44px; }

/* مدفوع / مش مدفوع: a switch between two words (owner 2026-11-02) */
.paidsw { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; }
.paidsw [data-v] { cursor: pointer; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.paidsw [data-v].on { color: var(--text); }
.paidsw [data-v="0"].on { color: var(--red); }
.paidsw .switch.paid input:not(:checked) + span { background: var(--red); }
.ctxm hr.ctxsep { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.gbpacks td input { width: 110px; }

/* hover a subscriber's line: his state in words (owner 2026-11-02) */
.rowtip { position: fixed; z-index: 90; pointer-events: none; background: #10234a; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; transition: opacity .12s; max-width: 340px; }
.rowtip.on { opacity: 1; }
