/* CreemHost billing — hand-written stylesheet (no framework, no CDN) */
:root {
  --ink: #14211b;
  --ink-2: #3d4b44;
  --ink-3: #6b7a72;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e3dfd6;
  --brand: #0f6b45;
  --brand-ink: #0a4a30;
  --brand-tint: #e6f2ec;
  --accent: #d98a1f;
  --danger: #b4332b;
  --danger-tint: #fbeceb;
  --ok: #1f7a4d;
  --line-soft: #f0ede6;
  --hover: #faf9f5;
  --chip: #eeece6;
  --warn-bg: #fdf1df;
  --warn-ink: #94600f;
  --warn-line: #ecc58a;
  --warn-tint: #fffaf1;
  --danger-line: #f1c9c6;
  --ok-line: #c4e0d1;
  --brand-tint-2: #d3e8dd;
  --side-bg: #ffffff;
  --side-border: #e3dfd6;
  --side-ink: #3d4b44;
  --side-mark: #14211b;
  --side-muted: #8a978f;
  --side-dim: #a9b3ad;
  --side-line: #e3dfd6;
  --side-hover: #f3f1ec;
  --side-active-bg: #fbf1e3;
  --side-active-ink: #14211b;
  --shell-bg: #0a4a30;
  --shadow: rgba(20,33,27,.12);
  --input-bg: #ffffff;
  color-scheme: light;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }

/* ---------- Auth / installer shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 38%) 1fr; }
.shell-side { background: var(--shell-bg); color: #e9f1ec; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.shell-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid rgba(255,255,255,.05); }
.shell-side .mark { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.shell-side .mark span { color: var(--accent); }
.shell-side h2 { font-size: 1.9rem; font-weight: 600; max-width: 14ch; color: #fff; }
.shell-side p { color: #b9cdc2; max-width: 36ch; }
.shell-side .version { opacity: .6; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 12px; }
.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.shell-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.panel { width: 100%; max-width: 440px; }
.panel.wide { max-width: 620px; }
.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--brand); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=datetime-local], input[type=number], input[type=time], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--input-bg);
  border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
input.code-input { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .4em; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.alert.error { background: var(--danger-tint); color: var(--danger); border: 1px solid var(--danger-line); }
.alert.ok { background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--ok-line); }
.alert ul { margin: 0; padding-left: 18px; }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.checklist li { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.checklist li:first-child { border-top: 0; }
.pill { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.pill.ok { background: var(--brand-tint); color: var(--ok); }
.pill.no { background: var(--danger-tint); color: var(--danger); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.muted { background: var(--chip); color: var(--ink-3); }

/* ---------- Admin layout ---------- */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); border-right: 1px solid var(--side-border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .mark { color: var(--side-mark); font-weight: 700; padding: 0 10px 22px; display: block; }
.side .mark span { color: var(--accent); }
.side h6 { margin: 18px 10px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted); }
.side a, .side .soon { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; color: var(--side-ink); font-size: .92rem; }
.side a:hover { background: var(--side-hover); text-decoration: none; }
.side a.active { background: var(--side-active-bg); color: var(--side-active-ink); box-shadow: inset 2px 0 0 var(--accent); }
.side .soon { color: var(--side-dim); cursor: default; }
.side .soon em { font-style: normal; font-size: .68rem; border: 1px solid var(--side-line); padding: 0 6px; border-radius: 99px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.topbar .who { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-2); }
.topbar form { margin: 0; }
.content { padding: 28px; max-width: 1200px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.7rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .85rem; color: var(--ink-3); font-weight: 500; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.list th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 18px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }

.qr-wrap { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; line-height: 0; }
.qr svg { width: 180px; height: 180px; }
.secret { font-family: var(--mono); background: var(--card); border: 1px dashed var(--line); padding: 8px 10px; border-radius: 6px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }

details.alt { margin-top: 18px; font-size: .9rem; }
details.alt summary { cursor: pointer; color: var(--ink-3); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell-side { padding: 28px 24px; }
  .shell-side h2, .shell-side p { display: none; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
}

/* ---------- Phase 2 step 2: lists, forms, badges ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-3); font-size: .9rem; margin-top: 4px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { width: auto; min-width: 160px; padding: 7px 10px; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f2620; }
.btn.light { background: var(--brand-tint); color: var(--brand-ink); }
.btn.light:hover { background: var(--brand-tint-2); }
.inline { display: inline; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.stack > * + * { margin-top: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 6px; margin: 0 0 18px; background: var(--card); min-width: 0; }
/* the legend is the card's title inside the box (not cut into the border) */
legend { float: left; width: 100%; padding: 0 0 12px; margin: 0 0 16px; border-bottom: 1px solid var(--line-soft); font-weight: 700; font-size: 1rem; color: var(--ink); }
legend + * { clear: both; }
fieldset.checks legend { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
fieldset.checks .check { display: flex; clear: both; }
.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; margin-bottom: 14px; }
.check input { width: auto; }
.field .error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
table.list tr.click:hover td { background: var(--hover); }
table.list input, table.list select { padding: 6px 8px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-transform: capitalize; background: var(--chip); color: var(--ink-2); }
.badge.active, .badge.paid, .badge.approved, .badge.online { background: var(--brand-tint); color: var(--ok); }
.badge.pending, .badge.unpaid, .badge.draft, .badge.on_hold { background: var(--warn-bg); color: var(--warn-ink); }
.badge.suspended, .badge.overdue, .badge.rejected, .badge.fraud, .badge.offline { background: var(--danger-tint); color: var(--danger); }
.badge.cancelled, .badge.terminated, .badge.closed, .badge.refunded, .badge.off, .badge.retired { background: var(--chip); color: var(--ink-3); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
.pager { flex-wrap: wrap; }
.pager-info { margin-right: auto; }
.pager-nums { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager-num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
a.pager-num:hover { border-color: var(--brand); color: var(--brand); }
.pager-num.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-gap { color: var(--ink-3); padding: 0 2px; }
.pager-card { padding: 0; margin-top: 16px; }
.pager-card .pager { border-top: 0; }
@media (max-width: 640px) { .pager { justify-content: center; gap: 8px; } .pager-info { flex-basis: 100%; text-align: center; margin: 0; } }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-3); }
.total-line { font-size: 1.3rem; font-weight: 700; }
.danger-zone { border-color: var(--danger-line); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; } }
details.inline-details { display: inline-block; position: relative; }
details.inline-details > summary { list-style: none; }
details.inline-details > summary::-webkit-details-marker { display: none; }
details.inline-details .pop { position: absolute; right: 0; top: 40px; z-index: 5; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 30px var(--shadow); }
table.list td.error { color: var(--danger); font-weight: 600; }
/* sidebar colour runs the full page height */
.admin { background: linear-gradient(to right, var(--side-bg) 235px, var(--side-border) 235px 236px, transparent 236px); }
@media (max-width: 860px) { .admin { background: none; } }
/* ---------- Phase 2 step 3 ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--ink-3); font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.row-form { display: flex; gap: 6px; margin: 0; }
.row-form input { width: 130px; padding: 6px 8px; }
.row-form input[type=text] { width: 170px; }
.actions-cell { white-space: nowrap; }
.audit-json { max-width: 380px; word-break: break-all; color: var(--ink-3); }
.stat.attention { border-color: var(--warn-line); background: var(--warn-tint); }
.side .count { font-size: .7rem; background: var(--accent); color: #12201a; font-weight: 700; padding: 0 7px; border-radius: 99px; }
a.stat { color: inherit; } a.stat:hover { text-decoration: none; border-color: var(--brand); }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }

/* ================= Dark theme ================= */
/* data-theme="dark" (chosen by the user) or "auto" + OS dark mode */
:root[data-theme="dark"] {
  --ink: #e4ebe7; --ink-2: #b6c3bc; --ink-3: #85958c;
  --paper: #0e1512; --card: #151f1a; --line: #25322b; --line-soft: #1d2822;
  --hover: #1a2620; --chip: #222e28; --input-bg: #111a16;
  --brand: #37a874; --brand-ink: #2a8a5d; --brand-tint: #15301f; --brand-tint-2: #1c3d2a;
  --danger: #ef7a70; --danger-tint: #341c1a; --danger-line: #5a2a26;
  --ok: #58c792; --ok-line: #24503a;
  --warn-bg: #36290f; --warn-ink: #f0b964; --warn-line: #6b5020; --warn-tint: #1f1a0f;
  --side-bg: #0a100d; --shell-bg: #0c2419; --shadow: rgba(0,0,0,.45); --side-border: #1b2620; --side-ink: #c9d6cf; --side-mark: #ffffff; --side-muted: #6f8479; --side-dim: #5d7167; --side-line: #34463d; --side-hover: rgba(255,255,255,.06); --side-active-bg: rgba(217,138,31,.14); --side-active-ink: #ffffff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --ink: #e4ebe7; --ink-2: #b6c3bc; --ink-3: #85958c;
    --paper: #0e1512; --card: #151f1a; --line: #25322b; --line-soft: #1d2822;
    --hover: #1a2620; --chip: #222e28; --input-bg: #111a16;
    --brand: #37a874; --brand-ink: #2a8a5d; --brand-tint: #15301f; --brand-tint-2: #1c3d2a;
    --danger: #ef7a70; --danger-tint: #341c1a; --danger-line: #5a2a26;
    --ok: #58c792; --ok-line: #24503a;
    --warn-bg: #36290f; --warn-ink: #f0b964; --warn-line: #6b5020; --warn-tint: #1f1a0f;
    --side-bg: #0a100d; --shell-bg: #0c2419; --shadow: rgba(0,0,0,.45); --side-border: #1b2620; --side-ink: #c9d6cf; --side-mark: #ffffff; --side-muted: #6f8479; --side-dim: #5d7167; --side-line: #34463d; --side-hover: rgba(255,255,255,.06); --side-active-bg: rgba(217,138,31,.14); --side-active-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn:hover { color: #fff; }
:root[data-theme="dark"] .btn.ghost { color: var(--ink-2); }
:root[data-theme="dark"] .btn.light { color: var(--ok); }

/* ================= Icons ================= */
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }

/* Sidebar items: icon + label (+ badge) */
.side a, .side .soon { justify-content: flex-start; gap: 10px; }
.side a .lbl, .side .soon .lbl { flex: 1; }
.side a .icon, .side .soon .icon { opacity: .8; }
.side a.active .icon { opacity: 1; color: var(--accent); }
.side .mark { display: block; }

/* ================= Topbar actions ================= */
.topbar .tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.icon-btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle .when-dark { display: inline; }
  :root[data-theme="auto"] .theme-toggle .when-light { display: none; }
}
.shell-theme { position: absolute; top: 18px; right: 18px; }
.shell-main { position: relative; }

/* Profile dropdown (<details>, works without JS) */
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { border-color: var(--brand); color: var(--brand); }
.menu-pop { position: absolute; right: 0; top: 46px; z-index: 20; width: 250px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px var(--shadow); padding: 6px; }
.menu-pop .who-box { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .who-box strong { display: block; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); background: none; border: 0; font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--hover); text-decoration: none; }
.menu-pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-pop .danger-item { color: var(--danger); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; }

/* ================= Settings hub cards ================= */
.hub-hero { display: flex; gap: 18px; align-items: center; padding: 22px 24px; margin-bottom: 20px; }
.hub-hero .ico { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand); flex: none; }
.hub-hero h1 { margin: 0 0 4px; }
.hub-hero p { margin: 0; color: var(--ink-3); }
.hub-group { margin: 26px 0 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.hub-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; color: inherit; position: relative; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.hub-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 8px 24px var(--shadow); }
.hub-card .ico { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.hub-card h3 { margin: 0 0 4px; font-size: 1rem; padding-right: 64px; }
.hub-card p { margin: 0; font-size: .87rem; color: var(--ink-3); line-height: 1.45; }
.hub-card .state { position: absolute; top: 14px; right: 14px; }
.hub-card.disabled { opacity: .55; }
.ico.c-green { background: var(--brand-tint); color: var(--brand); }
.ico.c-amber { background: var(--warn-bg); color: var(--warn-ink); }
.ico.c-red { background: var(--danger-tint); color: var(--danger); }
.ico.c-blue { background: #e5eefb; color: #2f62b5; }
.ico.c-violet { background: #efe8fb; color: #6b45b8; }
.ico.c-slate { background: var(--chip); color: var(--ink-2); }
:root[data-theme="dark"] .ico.c-blue { background: #172338; color: #7aa7ec; }
:root[data-theme="dark"] .ico.c-violet { background: #231a36; color: #b39ae8; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .ico.c-blue { background: #172338; color: #7aa7ec; }
  :root[data-theme="auto"] .ico.c-violet { background: #231a36; color: #b39ae8; }
}

/* ================= Profile page ================= */
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 1.2rem; }

/* ================= Mobile responsive ================= */
.side-head { display: flex; align-items: center; justify-content: space-between; }
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle, .nav-close, .nav-backdrop { display: none; }

@media (max-width: 900px) {
  .admin { display: block; background: none; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 272px; height: 100%; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px var(--shadow); }
  body.nav-open .side { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 14, 11, .45); z-index: 55; }
  body.nav-open .nav-backdrop { display: block; }
  .nav-toggle, .nav-close { display: inline-flex; }
  .side .mark { padding-bottom: 0; }
  .side-head { margin-bottom: 14px; }

  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar .tools { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .content { padding: 16px 14px 40px; }
  h1 { font-size: 1.3rem; }
  .page-head { align-items: flex-start; }
  .page-head > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 20px; }
  .stat { padding: 12px 14px; }
  .stat .value { font-size: 1.35rem; }

  /* Tables scroll sideways inside their card — the page never overflows */
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.list th, table.list td { white-space: nowrap; padding: 9px 12px; }
  table.list td.small, table.list td .small { white-space: normal; min-width: 140px; }

  .toolbar { padding: 10px 12px; }
  .toolbar input, .toolbar select { flex: 1 1 100%; min-width: 0; }
  .row-form { flex-wrap: wrap; }
  .row-form input, .row-form input[type=text] { width: 100%; }
  .kv { grid-template-columns: 110px 1fr; }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
  fieldset { padding: 14px 14px 2px; }
  .hub-hero { padding: 16px; gap: 12px; }
  .hub-hero .ico { width: 44px; height: 44px; }
  .hub-grid { grid-template-columns: 1fr; }
  .menu-pop { width: min(260px, calc(100vw - 24px)); }
  .qr-wrap { flex-direction: column; }
  .profile-head .avatar { width: 46px; height: 46px; }
  details.inline-details .pop { width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .label { font-size: .7rem; }
  .btn { padding: 9px 14px; }
}
/* Keep grid columns from stretching because of tables (mobile overflow fix) */
.split > *, .stack > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .hub-grid > * { min-width: 0; }
.tabs-in-card { padding: 0 14px; margin-bottom: 0; }
.device-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.device-actions { display: flex; gap: 6px; }
.key-reveal { border-color: var(--warn-line); background: var(--warn-tint); margin-bottom: 18px; }
ol.howto { padding-left: 18px; margin: 8px 0; }
ol.howto li { margin-bottom: 4px; }

/* ---------- Client portal (Phase 5A) ---------- */
.imp-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 18px; background: var(--accent); color: #1d1406; font-size: .9rem; }
.imp-banner .icon { width: 16px; height: 16px; vertical-align: -3px; }
.imp-banner form { margin: 0; }
.imp-banner .btn { background: #1d1406; color: #fff; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.auth-row .check { margin: 0; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--ink-3); }
.auth-alt .icon { width: 15px; height: 15px; vertical-align: -2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-card { max-width: 860px; }
.group-title { margin: 8px 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.plan-card .btn { margin-top: auto; }
.plan-flag { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #1d1406; font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.plan-price { font-size: 1.6rem; font-weight: 700; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.plan-feat { list-style: none; margin: 0 0 18px; padding: 0; font-size: .92rem; }
.plan-feat li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.plan-feat .icon { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.cycle-pick { display: grid; gap: 8px; }
.cycle-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.cycle-opt input { width: auto; }
.cycle-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.cycle-opt em { font-style: normal; margin-left: 6px; }
.pay-method { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.pay-method summary { cursor: pointer; font-weight: 600; }
.pay-method .kv { margin-top: 8px; grid-template-columns: 120px 1fr; }
.pay-method .kv dd { word-break: break-all; }
.invoice-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.invoice-top > div:last-child { text-align: right; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; max-width: 92%; }
.msg.staff { align-self: flex-end; background: var(--brand-tint); border-color: var(--ok-line); }
.msg.note { background: var(--warn-tint); border-color: var(--warn-line); }
.msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.msg-head .small { margin-left: auto; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; }
.badge.open, .badge.customer_reply, .badge.prio-high { background: var(--warn-bg); color: var(--warn-ink); }
.badge.answered { background: var(--brand-tint); color: var(--ok); }
.badge.on_hold, .badge.prio-low, .badge.prio-medium { background: var(--chip); color: var(--ink-3); }
.badge.prio-high { background: var(--danger-tint); color: var(--danger); }
@media (max-width: 900px) {
  .imp-banner { padding: 8px 12px; font-size: .85rem; }
  .msg { max-width: 100%; }
  .invoice-top > div:last-child { text-align: left; }
  .plan-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  table.list th, table.list td { padding-left: 12px; padding-right: 12px; }
  .plan-res span { display: block; white-space: nowrap; }
}
.plan-res span + span::before { content: "· "; }
.plan-dc-sm { display: none; }
@media (max-width: 900px) { .plan-dc-sm { display: block; } }
@media (max-width: 900px) { .plan-res span + span::before { content: none; } }
@media print {
  .side, .topbar, .imp-banner, .no-print, .page-head .btn, .nav-backdrop, .alert { display: none !important; }
  .admin { display: block; background: none; }
  body { background: #fff; color: #000; }
  .content { padding: 0; }
  .split { display: block; }
  .card { border-color: #ccc; }
}

/* ---------- Servers (Phase 3) ---------- */
pre.cmd { margin: 0 0 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font: .86rem/1.5 var(--mono);
  white-space: pre-wrap; word-break: break-all; user-select: all; }
pre.json { max-height: 320px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; background: var(--hover); border-radius: 6px; font: .78rem/1.45 var(--mono); white-space: pre-wrap; word-break: break-word; }
.error-text { color: var(--danger); }
.inline-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 6px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; }
meter { width: 70px; height: 8px; vertical-align: middle; }
meter::-webkit-meter-bar { background: var(--chip); border: 0; border-radius: 99px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--brand); border-radius: 99px; }
meter::-webkit-meter-suboptimum-value { background: var(--accent); border-radius: 99px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--brand); border-radius: 99px; }
.badge.sent, .badge.running, .badge.queued, .badge.maintenance { background: var(--warn-bg); color: var(--warn-ink); }
.badge.success { background: var(--brand-tint); color: var(--ok); }
.badge.failed, .badge.disabled { background: var(--danger-tint); color: var(--danger); }

/* Websites (Phase 4) */
.row-form.switch { justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-form.switch:last-child { border-bottom: 0; }
.card-head .inline-buttons { justify-content: flex-end; }
.site-list td .muted { overflow-wrap: anywhere; }
.alert .inline { margin-left: 8px; }
@media (max-width: 600px) { .card-head { flex-wrap: wrap; gap: 8px; } .row-form.switch { flex-direction: column; align-items: flex-start; } }

/* Website move: progress bar + numbered list */
progress.bar { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 6px; background: var(--line); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
progress.bar::-webkit-progress-value { background: var(--brand); border-radius: 6px; }
progress.bar::-moz-progress-bar { background: var(--brand); border-radius: 6px; }
ol.plain-list.numbered { padding-left: 20px; }
/* New migration: two ways side by side */
.mig-methods { align-items: stretch; margin-bottom: 18px; }
@media (min-width: 861px) { .mig-methods { grid-template-columns: 1fr 1fr; } }
.mig-method .card-body { display: flex; flex-direction: column; }
.mig-method .actions { margin-top: auto; }
.mig-steps { list-style: none; counter-reset: mig; margin: 0 0 6px; padding: 0; }
.mig-steps > li { counter-increment: mig; position: relative; padding: 0 0 14px 38px; }
.mig-steps > li::before { content: counter(mig); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-tint); color: var(--ok); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.mig-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.mig-steps > li > span { display: block; margin-bottom: 8px; font-size: .9rem; }
.mig-steps .field { margin-bottom: 0; }
.mig-steps textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-all; }

/* ---------- Client dashboard: websites ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.alert.warn { background: var(--warn-tint); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.warn-ink { color: var(--warn-ink); }
.due-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; }
.site-toolbar .search-box { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.site-toolbar .search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.site-toolbar .search-box .icon { color: var(--ink-3); flex: none; }
.site-toolbar .search-box input { border: 0; box-shadow: none; padding: 10px 0; background: transparent; width: 100%; font: inherit; color: inherit; outline: none; }
.site-toolbar select { width: auto; padding: 9px 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.view-toggle a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink-3); }
.view-toggle a + a { border-left: 1px solid var(--line); }
.view-toggle a.on { background: var(--brand-tint); color: var(--brand); }
.view-toggle a:hover { text-decoration: none; color: var(--brand); }
.js .no-js-only { display: none; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-bottom: 28px; }
.site-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.site-card:hover { border-color: var(--brand-tint-2); box-shadow: 0 8px 24px var(--shadow); }
.site-thumb { display: block; aspect-ratio: 16 / 10; background: var(--chip); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.site-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-body { padding: 14px 16px 6px; flex: 1; }
.site-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.site-title a { font-weight: 700; font-size: 1.05rem; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-flag { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.site-flag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.site-flag.ok { color: var(--ok); }
.site-flag.bad { background: var(--danger-tint, #fdecec); color: var(--danger); }
.site-state.down { color: var(--danger); } .site-state.down::before { background: var(--danger); }

/* Dashboard filter cards */
.stat-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.stat-card:hover { border-color: var(--ink-3); }
.stat-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stat-card .stat-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper, #f3f4f3); color: var(--ink-2); }
.stat-card .stat-ic svg { width: 20px; height: 20px; }
.stat-card .stat-num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: .84rem; color: var(--ink-2); }
.stat-card.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.stat-card.on .stat-ic { background: var(--brand-tint); color: var(--brand); }
.stat-card.warn .stat-ic { background: var(--warn-bg); color: var(--warn-ink); }
.stat-card.warn .stat-num { color: var(--warn-ink); }
.stat-card.bad .stat-ic { background: var(--danger-tint, #fdecec); color: var(--danger); }
.stat-card.bad .stat-num { color: var(--danger); }
@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { padding: 10px 12px; column-gap: 10px; }
  .stat-card .stat-ic { width: 32px; height: 32px; }
}
.site-url { display: flex; align-items: center; gap: 6px; font-size: .86rem; margin-top: 2px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-url .icon { width: 14px; height: 14px; flex: none; }
.site-url.secure { color: var(--ink-3); } .site-url.secure .icon { color: var(--ok); }
.site-url.insecure { color: var(--warn-ink); }
.site-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--chip); color: var(--ink-2); }
.tag .icon { width: 12px; height: 12px; }
.tag.wp { background: var(--brand-tint); color: var(--brand-ink); }
.tag.stage { background: var(--warn-bg); color: var(--warn-ink); }
.tag.fast { background: var(--brand-tint); color: var(--brand-ink); }
.site-note { font-size: .8rem; color: var(--warn-ink); margin-top: 8px; }
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.site-actions { display: flex; gap: 6px; flex: none; }
.site-actions .btn { white-space: nowrap; padding: 7px 11px; }
.site-actions .btn .icon { width: 15px; height: 15px; }
.site-state { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.site-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.site-state.live { color: var(--ok); } .site-state.live::before { background: var(--ok); box-shadow: 0 0 0 3px var(--brand-tint); }
.site-state.setup { color: var(--warn-ink); } .site-state.setup::before { background: var(--accent); }
.site-state.suspended, .site-state.failed { color: var(--danger); } .site-state.suspended::before, .site-state.failed::before { background: var(--danger); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.choice { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--card); }
.choice .icon { width: 26px; height: 26px; color: var(--brand); margin-bottom: 6px; }
.choice span { font-size: .86rem; color: var(--ink-3); }
.choice:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-tint); }
.first-site h2 { font-size: 1.3rem; }

.dash-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 22px; }
.mini-stat { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.mini-stat span { font-size: .78rem; color: var(--ink-3); }
.mini-stat:hover { text-decoration: none; border-color: var(--brand); }
.mini-stat.attention { border-color: var(--warn-line); background: var(--warn-tint); }
@media (max-width: 560px) {
  .site-toolbar select { flex: 1 1 140px; }
  .site-grid { grid-template-columns: 1fr; }
  .site-foot { flex-wrap: wrap; }
}

/* ---------- Pay as you go: wallet chip, wallet page, deploy wizard ---------- */
.hidden, [hidden] { display: none !important; }
.wallet-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.wallet-chip .icon { color: var(--brand); width: 17px; height: 17px; }
.wallet-chip:hover { text-decoration: none; border-color: var(--brand); }
.wallet-chip.low { border-color: var(--warn-line); background: var(--warn-tint); color: var(--warn-ink); }
.wallet-chip.low .icon { color: var(--warn-ink); }
.wallet-chip.empty { border-color: var(--danger-line); background: var(--danger-tint); color: var(--danger); }
.wallet-chip.empty .icon { color: var(--danger); }
@media (max-width: 560px) { .wallet-chip .chip-label { display: none; } }

.wallet-hero { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 16px; margin-bottom: 22px; }
.wallet-hero > div, .wallet-hero > form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.wallet-hero .label { font-size: .8rem; color: var(--ink-3); }
.wallet-balance { border-top: 3px solid var(--brand) !important; }
.wallet-balance .small { color: var(--ink-3); }
.wallet-balance strong { font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--brand); }
.wallet-balance.low { border-top-color: var(--accent) !important; }
.wallet-balance.low strong { color: var(--warn-ink); }
.wallet-fact strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.wallet-fact small { font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.topup-row { display: flex; gap: 8px; }
.topup-row input { flex: 1; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.chip-btn { font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
td.num.pos { color: var(--ok); }
@media (max-width: 900px) { .wallet-hero { grid-template-columns: 1fr; } }

.deploy { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.deploy-step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.deploy-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.step-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; }
.deploy-fields { margin-top: 16px; }
.row-2.wide { grid-template-columns: 1fr 140px; }
.option-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.option-cards.two { grid-template-columns: 1fr 1fr; }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-card .oc-body { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.option-card .oc-body .icon { color: var(--brand); width: 22px; height: 22px; margin-bottom: 4px; }
.option-card .oc-body span { font-size: .84rem; color: var(--ink-3); }
.option-card .factor { font-style: normal; font-size: .75rem; color: var(--warn-ink); font-weight: 600; }
.option-card input:checked + .oc-body { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand) inset; }
.option-card input:focus-visible + .oc-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.res-group { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.res-group:first-of-type { border-top: 0; padding-top: 0; }
.res-label { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.res-label span { font-size: .8rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: .9rem; background: var(--card); font-variant-numeric: tabular-nums; }
.chip input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--brand); }
.range-row output { min-width: 70px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.deploy-summary { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.deploy-summary h2 { font-size: 1.1rem; }
.sum-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 14px; font-size: .88rem; }
.sum-lines dt { color: var(--ink-3); }
.sum-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 10px; display: grid; gap: 6px; }
.sum-total div { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { color: var(--ink-3); font-size: .88rem; }
.sum-total strong { font-variant-numeric: tabular-nums; }
.sum-total strong.big { font-size: 1.5rem; color: var(--brand); }
.sum-wallet { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; }
.btn.block { width: 100%; justify-content: center; margin: 8px 0 10px; }
@media (max-width: 980px) {
  .deploy { grid-template-columns: 1fr; }
  .deploy-summary { position: static; }
  .option-cards.two { grid-template-columns: 1fr; }
}

/* ---------- Site manage page: header, gauges, uptime, billing ---------- */
.page-head.site-head { justify-content: flex-start; gap: 18px; align-items: center; }
.page-head.site-head .head-actions { margin-left: auto; }
.site-head-thumb { width: 120px; height: 75px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); flex: none; }
@media (max-width: 640px) { .site-head-thumb { display: none; } .page-head.site-head .head-actions { margin-left: 0; } }
.res-card { margin-bottom: 20px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.live-tag.on { color: var(--ok); }
.live-tag.on::before { background: var(--ok); animation: vp-pulse 2s ease-in-out infinite; }
@keyframes vp-pulse { 50% { box-shadow: 0 0 0 4px var(--brand-tint); } }
@media (prefers-reduced-motion: reduce) { .live-tag.on::before { animation: none; } }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 18px 10px; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge svg { width: 118px; height: 118px; }
.gauge .g-track { fill: none; stroke: var(--line-soft); stroke-width: 9; }
.gauge .g-val { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.gauge.warm .g-val { stroke: var(--accent); }
.gauge.hot .g-val { stroke: var(--danger); }
.gauge .g-center { position: absolute; top: 0; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .g-center strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.gauge .g-center span { font-size: .76rem; color: var(--ink-3); }
.gauge .g-detail { font-size: .8rem; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .gauges { grid-template-columns: repeat(2, 1fr); } }
.usage-chart { padding: 6px 18px 16px; border-top: 1px solid var(--line-soft); }
.uc-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .82rem; margin: 10px 0 6px; }
.uc-head small { color: var(--ink-3); }
.uc-head .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.uc-head .dot.cpu { background: var(--brand); } .uc-head .dot.ram { background: var(--accent); }
.usage-chart svg { width: 100%; height: 70px; display: block; }
.uc-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.uc-cpu, .uc-ram { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.uc-cpu { stroke: var(--brand); } .uc-ram { stroke: var(--accent); }
.uptime-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.uptime-stats div { display: flex; flex-direction: column; }
.uptime-stats strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.uptime-stats span { font-size: .76rem; color: var(--ink-3); }
.uptime-bars { width: 100%; height: 30px; display: block; margin-bottom: 10px; }
.uptime-bars rect.ok { fill: var(--ok); } .uptime-bars rect.warn { fill: var(--accent); } .uptime-bars rect.bad { fill: var(--danger); } .uptime-bars rect.none { fill: var(--line); }
@media (max-width: 480px) { .uptime-stats { grid-template-columns: repeat(2, 1fr); } }
.billing-card .bill-rate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.billing-card .bill-rate strong { font-size: 1.8rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.billing-card .bill-rate span { color: var(--ink-3); }
details.resize > summary { list-style: none; display: inline-flex; margin-top: 6px; cursor: pointer; }
details.resize > summary::-webkit-details-marker { display: none; }
.resize-form { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.resize-form .res-label { margin: 6px 0 0; }
.resize-form input[type=number] { max-width: 160px; }
.resize-form .chip span { padding: 6px 12px; }

/* ================= Brand theme (Bilal 2026-11-24): calm neutral surfaces, green only where it
   means something — primary buttons, the active menu item / tab, links, healthy states.
   Orange stays for small highlights (counts, warnings). ================= */
:root {
  --paper: #f6f7f6;
  --line: #e3e7e4;
  --line-soft: #eef1ef;
  --hover: #f7f9f8;
  --chip: #eef1ef;
  --brand-tint: #e8f3ed;
  --brand-tint-2: #d3eadc;
  --side-bg: #ffffff;
  --side-border: #e3e7e4;
  --side-ink: #3d4a43;
  --side-mark: #14201a;
  --side-muted: #8a968f;
  --side-dim: #a3ada7;
  --side-line: #e3e7e4;
  --side-hover: #f3f6f4;
  --side-active-bg: #e8f3ed;
  --side-active-ink: #0f6b45;
}
:root[data-theme="dark"] { --side-bg: #0f1613; --side-border: #1f2a25; --side-ink: #b9c7bf; --side-mark: #ffffff; --side-muted: #6f8479;
  --side-hover: rgba(255,255,255,.04); --side-active-bg: rgba(55,168,116,.16); --side-active-ink: #6fd3a0; --side-line: #26332c; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { --side-bg: #0f1613; --side-border: #1f2a25; --side-ink: #b9c7bf; --side-mark: #ffffff; --side-muted: #6f8479;
    --side-hover: rgba(255,255,255,.04); --side-active-bg: rgba(55,168,116,.16); --side-active-ink: #6fd3a0; --side-line: #26332c; }
}
.side .mark { color: var(--side-mark); font-size: 1.12rem; }
.side .mark span { color: var(--brand); }
.side a.active { box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.side a.active .icon { color: var(--brand); }
.side .count { background: var(--accent); color: #1d1406; }
.tabs a.on { border-bottom-color: var(--brand); color: var(--brand); }
.topbar { background: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
:root[data-theme="dark"] .topbar { background: rgba(14,21,18,.92); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .topbar { background: rgba(14,21,18,.92); } }
.kv dd { overflow-wrap: anywhere; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: var(--paper); margin-bottom: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 6px 14px; border-radius: 7px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.auto-box { border: 1px dashed var(--brand-tint-2); background: var(--brand-tint); border-radius: 10px; padding: 12px 14px; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.inline-field input { width: 130px; }

/* Website security tab */
.break { overflow-wrap: anywhere; }
.danger-ink { color: var(--danger); }
.check-cell { width: 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-row .sec-text { flex: 1 1 220px; }
.sec-row .sec-text strong { font-size: 1.05rem; }
.sec-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--ink-2); }
.sec-ic svg { width: 24px; height: 24px; }
.sec-summary.clean .sec-ic { background: var(--brand-tint); color: var(--brand); }
.sec-summary.warning .sec-ic { background: var(--warn-bg); color: var(--warn-ink); }
.sec-summary.infected { border-color: var(--danger-line); }
.sec-summary.infected .sec-ic { background: var(--danger-tint); color: var(--danger); }

/* Website firewall tab */
.waf-rules { display: grid; gap: 8px; }
.waf-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.waf-rule select, .waf-rule input { min-height: 38px; }
.waf-rule .grow { flex: 1 1 200px; }
.waf-rule .grow input { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; font: inherit; }
@media (max-width: 640px) { .waf-rule { padding-bottom: 8px; border-bottom: 1px solid var(--line); } .waf-rule > label:not(.grow) { flex: 1 1 30%; } .waf-rule > label select { width: 100%; } }
.point-actions { white-space: nowrap; }
@media (max-width: 640px) { .point-actions { white-space: normal; } .point-actions > * { margin: 2px 0; } }

/* Live chat */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 99px; background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 60, 40, .25); cursor: pointer; }
.chat-launcher svg { width: 20px; height: 20px; }
.chat-launcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
body.chat-open .chat-launcher { display: none; }
.chat-float { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 380px; max-width: calc(100vw - 24px); height: min(600px, calc(100vh - 40px)); }
.chat-float[hidden] { display: none; }
.chat-panel { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16); }
.chat-panel.full { height: calc(100vh - 240px); min-height: 420px; box-shadow: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head [data-chat-status] { color: var(--ink-2); }
.chat-head-actions { display: flex; gap: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper, #f6f7f6); }
.chat-hello { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.chat-hello p { margin: 0 0 4px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-who { font-size: .72rem; color: var(--ink-3); margin: 0 4px 2px; }
.chat-bubble { padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.chat-msg.mine .chat-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 4px; }
.chat-msg.mine .chat-bubble a { color: #fff; }
.chat-msg.staff:not(.mine) .chat-bubble { border-color: var(--accent); }
.chat-msg.system { align-self: center; max-width: 92%; align-items: center; }
.chat-msg.system .chat-bubble { background: transparent; border: 0; color: var(--ink-3); font-size: .82rem; text-align: center; padding: 2px 8px; }
.chat-typing { display: flex; gap: 4px; padding: 6px 18px; background: var(--paper, #f6f7f6); }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; }
.chat-form .btn { align-self: flex-end; }
.chat-error { padding: 6px 12px; color: var(--danger); background: var(--danger-tint); }
.chat-error[hidden] { display: none; }
@media (max-width: 640px) {
  .chat-float { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; }
  .chat-float .chat-panel { border-radius: 0; }
  .chat-launcher { right: 14px; bottom: 14px; padding: 12px; }
  .chat-launcher > span:not(.chat-badge) { display: none; }
  .chat-panel.full { height: calc(100dvh - 200px); }
}
/* Admin chat */
.chat-admin-log { max-height: 60vh; min-height: 320px; }
.chat-admin-log .chat-msg.staff { align-self: flex-end; align-items: flex-end; }
.chat-admin-log .chat-msg.staff .chat-bubble { background: var(--brand); color: #fff; border-color: var(--brand); }
.chat-admin-log .chat-msg.ai .chat-bubble { background: var(--brand-tint); }
/* "Add new" in the top bar (dashboard): same height as the wallet chip / icon buttons */
.topbar .top-add { height: 38px; min-height: 0; padding: 0 12px; gap: 6px; border-radius: 9px; font-size: .9rem; font-weight: 600; }
.topbar .top-add svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .topbar .top-add { width: 38px; padding: 0; } .topbar .top-add .chip-label { display: none; } }

/* Client area: compact icon rail (icon + name below); left drawer on phones */
.admin.client-rail { grid-template-columns: 96px 1fr; background: linear-gradient(to right, var(--side-bg) 95px, var(--side-border) 95px 96px, transparent 96px); }
.client-rail .side { padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.client-rail .rail-head { display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.client-rail .rail-mark { display: flex; gap: 0; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; box-shadow: none; padding: 0; }
.client-rail .rail-mark span { color: #ffd7a8; }
.client-rail .rail-mark:hover { background: var(--brand); text-decoration: none; }
.client-rail .side a:not(.rail-mark) { position: relative; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 12px; font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--side-ink); }
.client-rail .side a:not(.rail-mark) svg { width: 24px; height: 24px; }
.client-rail .side a .lbl { flex: none; }
.client-rail .side a.active { box-shadow: none; background: var(--side-active-bg); color: var(--side-active-ink); }
.client-rail .side a .count { position: absolute; top: 6px; right: 14px; min-width: 18px; padding: 0 5px; line-height: 18px; text-align: center; }
.client-rail .side a.m-only, .client-rail .rail-sep { display: none; }
@media (min-width: 901px) { .client-rail .nav-toggle, .client-rail .nav-close, .client-rail .nav-backdrop { display: none !important; } }
@media (max-width: 900px) {
  .admin.client-rail { display: block; background: none; }
  .client-rail .side { width: 250px; padding: 16px 12px; gap: 2px; }
  .client-rail .rail-head { justify-content: space-between; margin-bottom: 16px; }
  .client-rail .side a:not(.rail-mark), .client-rail .side a.m-only { display: flex; flex-direction: row; justify-content: flex-start; gap: 12px;
    padding: 11px 12px; font-size: .95rem; text-align: left; border-radius: 10px; }
  .client-rail .side a:not(.rail-mark) svg { width: 20px; height: 20px; }
  .client-rail .side a .lbl { flex: 1; }
  .client-rail .side a .count { position: static; }
  .client-rail .rail-sep { display: block; height: 1px; margin: 10px 6px; background: var(--side-border); }
}
@media print { .client-rail .side { display: none !important; } }

/* Client area uses the full width next to the rail */
.client-rail .content { max-width: none; }
@media (min-width: 1101px) and (max-width: 1360px) { .stat-card { padding: 12px; column-gap: 10px; } .stat-card .stat-ic { width: 34px; height: 34px; } }

/* DNS page */
.dns-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dns-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dns-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dns-list { display: grid; gap: 10px; }
.dns-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; margin: 0; }
.dns-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.dns-name a { color: var(--ink); text-decoration: none; } .dns-name a:hover { text-decoration: underline; }
.dns-ns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dns-ns > span { flex-basis: 100%; }
.ns-chip { display: inline-flex; align-items: center; gap: 6px; font: .82rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper, #f6f7f6); color: var(--ink); cursor: pointer; }
.ns-chip:hover { border-color: var(--brand); }
.ns-chip .icon { width: 13px; height: 13px; color: var(--ink-3); }
.ns-chip.copied { border-color: var(--brand); background: var(--brand-tint); }
.dns-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dns-actions form { margin: 0; }
.text-danger { color: var(--danger); }
.ns-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
@media (max-width: 900px) {
  .dns-item { grid-template-columns: 1fr; gap: 10px; }
  .dns-actions { justify-content: flex-start; }
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-between form { margin: 0; }

/* Admin settings page header */
.crumbs { margin: 0 0 12px; font-size: .9rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 15px; height: 15px; }

/* DNS zone page */
.back-link { display: flex; width: fit-content; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; font-size: .9rem; margin: 0 0 12px; }
.back-link:hover { color: var(--brand); }
.back-link .icon { width: 15px; height: 15px; }
.zone-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 20px; align-items: center; padding: 18px 20px; margin-bottom: 14px; }
.zone-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.zone-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); flex: none; }
.zone-ic .icon { width: 22px; height: 22px; }
.zone-title h1 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.zone-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .85rem; color: var(--ink-3); }
.zone-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.zone-meta .icon { width: 14px; height: 14px; }
.zone-ns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.zone-ns .ns-label { font-size: .8rem; color: var(--ink-3); }
.zone-ns .ns-box { margin: 0; justify-content: flex-end; }
.ns-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ns-foot form { margin: 0; }
.import-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.import-strip .import-ic { color: var(--ink-3); display: flex; } .import-strip .import-ic .icon { width: 18px; height: 18px; }
.import-strip > .small { flex: 1; color: var(--ink-2); }
.import-strip form { margin: 0; }

.dns-records { padding: 0; overflow: hidden; }
.rec-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rec-toolbar h2 { margin: 0; font-size: 1.05rem; flex: 1 1 auto; }
.rec-search { display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; flex: 0 1 280px; }
.rec-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.rec-search .icon { color: var(--ink-3); width: 16px; height: 16px; flex: none; }
.rec-search input { border: 0; box-shadow: none; background: transparent; padding: 8px 0; width: 100%; font: inherit; font-size: .9rem; color: inherit; outline: none; }
.type-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.type-chip { font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.type-chip b { font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.type-chip:hover { border-color: var(--ink-3); }
.type-chip.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }

.rec-add { padding: 14px 16px; background: var(--hover); border-bottom: 1px solid var(--line); }
.rec-form { display: grid; grid-template-columns: 110px minmax(150px, 1fr) minmax(200px, 2fr) 90px 110px auto; gap: 10px; align-items: end; }
.rec-form .rf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rec-form label, .rec-form .rf-label { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.rec-form input, .rec-form select { width: 100%; font-size: .9rem; padding: 8px 10px; }
.rec-form .rf-content input { font-family: var(--mono); font-size: .85rem; }
.rf-suffix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg); overflow: hidden; }
.rf-suffix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.rf-suffix input { border: 0 !important; box-shadow: none !important; min-width: 0; }
.rf-suffix span { display: flex; align-items: center; padding: 0 8px; font-size: .78rem; color: var(--ink-3); background: var(--chip); white-space: nowrap; }
.rec-form .switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--ink-2); height: 38px; }
.rec-form .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rec-form .switch .track { width: 36px; height: 20px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); position: relative; transition: background .15s; flex: none; }
.rec-form .switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px var(--shadow); transition: transform .15s; }
.rec-form .switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.rec-form .switch input:checked + .track::after { transform: translateX(16px); }
.rec-form .switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.rec-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.rec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rec-table th { text-align: left; font-size: .74rem; font-weight: 600; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.rec-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.rec-table tbody tr[data-rec]:hover { background: var(--hover); }
.rec-table .c-type { width: 84px; } .rec-table .c-name { width: 22%; } .rec-table .c-proxy { width: 120px; } .rec-table .c-ttl { width: 80px; }
.rec-table .c-act { width: 96px; text-align: right; white-space: nowrap; }
.rec-table .c-act form { display: inline; margin: 0; }
.rtype { display: inline-block; min-width: 52px; text-align: center; font: 600 .74rem var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--chip); color: var(--ink-2); }
.rtype.t-a, .rtype.t-aaaa { background: #e5eefb; color: #2f62b5; }
.rtype.t-cname { background: #efe9fb; color: #6a45b8; }
.rtype.t-mx { background: var(--warn-bg); color: var(--warn-ink); }
.rtype.t-txt { background: var(--chip); color: var(--ink-2); }
.rtype.t-srv, .rtype.t-caa { background: var(--brand-tint); color: var(--brand-ink); }
.rname { font-family: var(--mono); font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.rval { display: block; max-width: 100%; text-align: left; font: .84rem var(--mono); color: var(--ink); background: none; border: 0; padding: 0; cursor: copy; overflow-wrap: anywhere; }
.rval:hover { color: var(--brand); }
.rval.copied { color: var(--brand); }
.proxy { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.proxy .icon { width: 16px; height: 16px; }
.proxy.on { color: var(--accent); font-weight: 600; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.sm .icon { width: 16px; height: 16px; }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.rec-edit-row td { background: var(--hover); padding: 14px 16px; }
.rec-edit-row form { margin: 0; }
.show-sm { display: none; }

.dns-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.dns-lower .card { margin: 0; }
.dns-lower .login-shield { grid-column: 1 / -1; }
.login-shield .card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.login-shield .ls-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.login-shield .ls-text { min-width: 0; }
.login-shield .ls-text .pill { margin-left: 6px; }
.login-shield .ls-text .small { margin-top: 3px; }
.login-shield .ls-row form { flex: none; margin: 0; }
@media (max-width: 560px) { .login-shield .ls-row { flex-direction: column; align-items: stretch; } .login-shield .ls-row form .btn { width: 100%; } }
.preset-group { margin-bottom: 6px; font-weight: 600; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.preset { position: relative; cursor: pointer; }
.preset input { position: absolute; opacity: 0; }
.preset span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.preset span .icon { width: 16px; height: 16px; color: var(--ink-3); }
.preset input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.preset input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tips { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); line-height: 1.6; }
.danger-details summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: .88rem; }

@media (max-width: 1100px) {
  .rec-form { grid-template-columns: 110px 1fr 1fr; }
  .rec-form .rf-content { grid-column: span 3; }
}
@media (max-width: 900px) {
  .zone-head { grid-template-columns: 1fr; }
  .zone-ns { align-items: flex-start; text-align: left; }
  .zone-ns .ns-box, .ns-foot { justify-content: flex-start; }
  .dns-lower { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rec-toolbar h2 { flex-basis: 100%; }
  .rec-search { flex: 1 1 auto; }
  .rec-table .c-name { width: auto; }
  .rec-table td, .rec-table th { padding: 10px; }
  .rec-table .c-type { width: 60px; }
  .rtype { min-width: 0; }
  .show-sm { display: block; margin-top: 2px; }
  .rec-form { grid-template-columns: 1fr 1fr; }
  .rec-form .rf-name, .rec-form .rf-content { grid-column: span 2; }
  .import-strip { flex-wrap: wrap; }
  .preset-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rec-table thead { display: none; }
  .rec-table tr[data-rec] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .rec-table tr[data-rec] td { padding: 0; border: 0; width: auto; }
  .rec-table tr[data-rec] td.c-content { grid-column: 1 / -1; grid-row: 2; padding-top: 6px; }
  .rec-table tr.rec-edit-row td { display: block; padding: 12px; }
}

/* Client notifications */
.note-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .note-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.now-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.now-ok { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--ok); font-weight: 500; }
.now-ok .icon { width: 22px; height: 22px; }
.now-list { list-style: none; margin: 0; padding: 0; }
.now-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.now-item:first-child { border-top: 0; }
.now-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; background: var(--warn-bg); color: var(--warn-ink); }
.now-item.bad .now-ic { background: var(--danger-tint); color: var(--danger); }
.now-ic .icon { width: 18px; height: 18px; }
.now-text { flex: 1; min-width: 0; }
.now-text a { color: var(--ink); }
.now-kind { font-size: .8rem; color: var(--ink-3); margin-left: 6px; }
.feed-card { padding: 0; overflow: hidden; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 12px; font-size: .85rem; color: var(--ink-2); text-decoration: none; border-left: 1px solid var(--line); }
.seg a:first-child { border-left: 0; }
.seg a.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item a { display: flex; gap: 12px; align-items: flex-start; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.feed-item a:hover { background: var(--hover); }
.feed-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--chip); color: var(--ink-3); }
.feed-ic .icon { width: 16px; height: 16px; }
.feed-item.lv-bad .feed-ic { background: var(--danger-tint); color: var(--danger); }
.feed-item.lv-warn .feed-ic { background: var(--warn-bg); color: var(--warn-ink); }
.feed-item.lv-ok .feed-ic { background: var(--brand-tint); color: var(--ok); }
.feed-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-title { font-size: .93rem; color: var(--ink-2); overflow-wrap: anywhere; }
.feed-item.unread .feed-title { font-weight: 650; color: var(--ink); }
.feed-body { font-size: .85rem; color: var(--ink-3); }
.feed-meta { font-size: .78rem; color: var(--ink-3); }
.feed-meta .pill { font-size: .66rem; }
.feed-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.feed-card .pager { padding: 12px 18px; }

.note-settings .card { margin-bottom: 16px; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channel { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.channel .grow { flex: 1; min-width: 0; }
.channel .field { margin: 8px 0 0; }
.ch-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--chip); color: var(--ink-2); flex: none; }
.ch-ic.wa { background: var(--brand-tint); color: var(--brand); }
.ch-ic .icon { width: 18px; height: 18px; }
.pref-table { width: 100%; border-collapse: collapse; }
.pref-table th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--ink-3); padding: 10px 18px; border-bottom: 1px solid var(--line); }
.pref-table td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pref-table .c-ch { width: 100px; text-align: center; }
.pref-name { display: flex; gap: 12px; align-items: center; }
.pref-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--chip); color: var(--ink-2); flex: none; }
.pref-ic .icon { width: 16px; height: 16px; }
.always { color: var(--ok); display: inline-flex; } .always .icon { width: 18px; height: 18px; }
.pref-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch.sm { display: inline-flex; cursor: pointer; position: relative; }
.switch.sm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch.sm .track { width: 38px; height: 22px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); position: relative; transition: background .15s; }
.switch.sm .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px var(--shadow); transition: transform .15s; }
.switch.sm input:checked + .track { background: var(--brand); border-color: var(--brand); }
.switch.sm input:checked + .track::after { transform: translateX(16px); }
.switch.sm input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch.sm input:disabled + .track { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pref-table th, .pref-table td { padding: 10px 8px; }
  .pref-table .c-ch { width: 62px; }
  .pref-ic { display: none; }
  .now-item { padding: 12px; flex-wrap: wrap; }
  .now-kind { display: block; margin: 0; }
}

/* Subdomains tab */
.sub-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 90px auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); }
.sub-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.sub-form .strong { font-weight: 600; color: var(--ink-2); }
.sub-form select { width: 100%; }
.sub-form .rf-suffix input { padding: 9px 10px; width: 100%; }
.sub-form .sub-err { grid-column: 1 / -1; }
.sub-note { padding-top: 0; }
@media (max-width: 760px) { .sub-form { grid-template-columns: 1fr 1fr; } .sub-form .sub-name { grid-column: 1 / -1; } .sub-form .btn { grid-column: 1 / -1; } }

/* File manager */
.fm { padding: 0; overflow: hidden; position: relative; }
.fm-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fm-crumbs { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .9rem; min-width: 0; }
.fm-crumbs a { color: var(--ink-2); text-decoration: none; padding: 2px 4px; border-radius: 5px; overflow-wrap: anywhere; }
.fm-crumbs a:hover { background: var(--hover); color: var(--brand); }
.fm-crumbs a:last-child { color: var(--ink); font-weight: 600; }
.fm-crumbs .sep { color: var(--ink-3); }
.fm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-upload { cursor: pointer; }
.fm-sel { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--brand-tint); border-bottom: 1px solid var(--line); font-size: .88rem; }
.fm-sel span { flex: 1; font-weight: 600; color: var(--brand-ink); }
.danger-text { color: var(--danger) !important; }
.fm-msg { padding: 9px 16px; font-size: .88rem; border-bottom: 1px solid var(--line); }
.fm-msg.ok { background: var(--brand-tint); color: var(--brand-ink); }
.fm-msg.bad { background: var(--danger-tint); color: var(--danger); }
.fm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.fm-table th { text-align: left; font-size: .74rem; font-weight: 600; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.fm-table td { padding: 6px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.fm-table tbody tr:hover { background: var(--hover); }
.fm-table .c-chk { width: 34px; }
.fm-table .c-size { width: 90px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fm-table .c-date { width: 180px; color: var(--ink-3); font-size: .84rem; white-space: nowrap; }
.fm-table .c-perm { width: 90px; }
.fm-table .c-act { width: 170px; text-align: right; }
.fm-name { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; max-width: 100%; }
.fm-name span:last-child { overflow-wrap: anywhere; }
.fm-name:hover span:last-child { color: var(--brand); text-decoration: underline; }
.fm-name.is-dir { font-weight: 600; }
.fm-ic { display: inline-flex; flex: none; color: var(--ink-3); }
.fm-ic .icon { width: 18px; height: 18px; }
.fm-name.is-dir .fm-ic { color: var(--accent); }
.fm-row-acts { display: inline-flex; gap: 4px; opacity: .55; }
.fm-table tr:hover .fm-row-acts, .fm-row-acts:focus-within { opacity: 1; }
.fm-drop { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,107,69,.08); border: 2px dashed var(--brand); border-radius: var(--radius); font-weight: 600; color: var(--brand-ink); pointer-events: none; }
.fm-editor { position: fixed; inset: 0; z-index: 60; background: rgba(10,20,15,.45); display: flex; padding: 24px; }
.fm-editor-box { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; max-width: 1400px; margin-inline: auto; width: 100%; }
.fm-editor-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fm-editor-head strong { font-family: var(--mono); font-size: .9rem; overflow-wrap: anywhere; }
.fm-editor-head .grow { flex: 1; }
.fm-editor textarea { flex: 1; border: 0; border-radius: 0; resize: none; padding: 14px 16px; font: .86rem/1.55 var(--mono); tab-size: 4; background: var(--card); color: var(--ink); outline: none; }
@media (max-width: 640px) { .fm-editor { padding: 0; } .fm-table .c-act { width: auto; } .fm-row-acts { opacity: 1; } }

/* Dialog */
.st-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 20px 50px var(--shadow); }
.st-dialog::backdrop { background: rgba(10,20,15,.4); }
.st-dialog h3 { margin: 0 0 8px; font-size: 1.05rem; overflow-wrap: anywhere; }
.st-dialog input[type=text] { width: 100%; margin-top: 6px; font-family: var(--mono); font-size: .9rem; }
.st-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Database manager */
.db { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.db .card { margin: 0; }
.db-side { padding: 12px; position: sticky; top: 12px; }
.db-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.db-side-head strong { font-family: var(--mono); font-size: .88rem; overflow-wrap: anywhere; }
.db-filter { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--input-bg); margin-bottom: 8px; }
.db-filter .icon { width: 15px; height: 15px; color: var(--ink-3); }
.db-filter input { border: 0; box-shadow: none; padding: 7px 0; width: 100%; background: transparent; font: inherit; font-size: .86rem; outline: none; }
.db-tables { list-style: none; margin: 0 0 10px; padding: 0; max-height: 60vh; overflow: auto; }
.db-tables button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .84rem; color: var(--ink-2); cursor: pointer; text-align: left; }
.db-tables button:hover { background: var(--hover); }
.db-tables button.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.db-tables .tn { font-family: var(--mono); overflow-wrap: anywhere; }
.db-tables .tc { color: var(--ink-3); font-size: .76rem; font-variant-numeric: tabular-nums; }
.db-sql-btn { width: 100%; justify-content: center; }
.db-main { padding: 16px; min-height: 300px; }
.db-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.db-head h3 { margin: 0 0 2px; font-family: var(--mono); font-size: 1rem; }
.db-head-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.db-bar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.db-bar .search-box { flex: 1 1 240px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--input-bg); }
.db-bar .search-box .icon { width: 15px; height: 15px; color: var(--ink-3); }
.db-bar input { border: 0; box-shadow: none; padding: 8px 0; width: 100%; background: transparent; font: inherit; outline: none; }
.db-grid { border: 1px solid var(--line); border-radius: 8px; max-height: 65vh; overflow: auto; }
.db-table { border-collapse: collapse; font-size: .82rem; min-width: 100%; }
.db-table th { position: sticky; top: 0; background: var(--card); z-index: 1; text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.db-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; }
.db-sort.on, .db-sort:hover { color: var(--brand); }
.db-table td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-table td.null { color: var(--ink-3); font-style: italic; }
.db-table td.c-act, .db-table th.c-act { position: sticky; right: 0; background: var(--card); white-space: nowrap; }
.db-table .c-chk { width: 30px; }
.db-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.db-edit .f { margin-bottom: 12px; }
.db-edit label { display: block; margin-bottom: 4px; }
.db-edit input[type=text], .db-edit textarea { width: 100%; font-family: var(--mono); font-size: .86rem; }
.db-sql { width: 100%; font: .88rem/1.5 var(--mono); }
@media (max-width: 900px) { .db { grid-template-columns: minmax(0, 1fr); } .db-side { position: static; } .db-tables { max-height: 220px; } }
@media (max-width: 640px) {
  .fm-table, .fm-table tbody { display: block; width: 100%; }
  .fm-table thead { display: none; }
  .fm-table tbody tr.fm-up { display: block; padding: 6px 10px; }
  .fm-table tbody tr:not(.fm-up) { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
  .fm-table tbody tr:not(.fm-up) td { border: 0; padding: 2px 0; }
  .fm-table tbody tr:not(.fm-up) td.c-act { grid-column: 2; text-align: left; }
  .fm-table td.c-act .fm-row-acts { gap: 6px; }
}

/* ---- Server recovery ---- */
.badge.rc-done { background: var(--brand-tint); color: var(--ok); }
.badge.rc-waiting { background: var(--chip); color: var(--ink-3); }
.badge.rc-account, .badge.rc-sites, .badge.rc-create, .badge.rc-restore, .badge.rc-dns { background: var(--warn-bg); color: var(--warn-ink); }
.badge.rc-failed { background: var(--danger-tint); color: var(--danger); }
ul.rc-sites { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.rc-sites li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.rc-sites li .dom { font-weight: 600; word-break: break-all; }
.rc-sites li .note { color: var(--ink-3); flex-basis: 100%; }
.rc-sites li .note.bad { color: var(--danger); }
.rc-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.rc-progress { display: grid; gap: 6px; margin-top: 4px; }
.rc-progress .small { display: flex; justify-content: space-between; }

/* ---- Tasks with progress (tray in the top bar + per-website card) ---- */
.tasks-tray > summary { position: relative; }
.tasks-tray.active > summary svg { animation: tasks-spin 1.6s linear infinite; color: var(--brand); }
@keyframes tasks-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tasks-tray.active > summary svg { animation: none; } }
.tasks-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tasks-count:empty { display: none; }
.tasks-count.bad { background: var(--danger); }
.tasks-pop { width: min(380px, calc(100vw - 24px)); padding: 0; max-height: 70vh; overflow: auto; }
.tasks-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tasks-list { display: grid; }
.task, .menu-pop a.task { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 0; text-decoration: none; color: inherit; font-weight: 400; align-items: stretch; }
.task:last-child { border-bottom: 0; }
a.task:hover { background: var(--hover, rgba(0,0,0,.03)); }
.task-top { min-width: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.task-title { font-weight: 650; font-size: 14px; }
.task-sub { color: var(--ink-3, #6b7280); font-size: 12.5px; overflow-wrap: anywhere; }
.task-pct { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--brand); }
.task-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.task-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width .6s ease; }
.task.waiting .task-bar i { background: var(--ink-3, #9ca3af); }
.task.failed .task-bar i { background: var(--danger); }
.task.failed .task-pct, .task.failed .task-text { color: var(--danger); }
.task.done .task-pct { color: var(--ok, var(--brand)); }
.task-text { font-size: 12.5px; color: var(--ink-2, #4b5563); }
.task-when { font-size: 12px; color: var(--ink-3, #6b7280); }
.task-bar i.w-0 { width: 0%; } .task-bar i.w-5 { width: 5%; } .task-bar i.w-10 { width: 10%; } .task-bar i.w-15 { width: 15%; } .task-bar i.w-20 { width: 20%; } .task-bar i.w-25 { width: 25%; } .task-bar i.w-30 { width: 30%; } .task-bar i.w-35 { width: 35%; } .task-bar i.w-40 { width: 40%; } .task-bar i.w-45 { width: 45%; } .task-bar i.w-50 { width: 50%; } .task-bar i.w-55 { width: 55%; } .task-bar i.w-60 { width: 60%; } .task-bar i.w-65 { width: 65%; } .task-bar i.w-70 { width: 70%; } .task-bar i.w-75 { width: 75%; } .task-bar i.w-80 { width: 80%; } .task-bar i.w-85 { width: 85%; } .task-bar i.w-90 { width: 90%; } .task-bar i.w-95 { width: 95%; } .task-bar i.w-100 { width: 100%; }
a.tasks-tray { position: relative; }
.tasks-tray .when-busy, .tasks-tray.active .when-idle { display: none; }
.tasks-tray.active .when-busy { display: contents; }
.tasks-tray > span:not(.tasks-count) { line-height: 0; }
.tasks-tray.active svg { animation: tasks-spin 1.6s linear infinite; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .tasks-tray.active svg { animation: none; } }
.tasks-page { display: grid; gap: 16px; }
.tasks-page .stat-cards { margin: 0; }
.tasks-page button.stat-card { font: inherit; text-align: left; cursor: pointer; }
.tasks-page .tasks-card { padding: 0; overflow: hidden; }
.tasks-page .tasks-card .card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.tasks-page [hidden] { display: none !important; }
.tasks-empty { padding: 16px 14px; color: var(--ink-3, #6b7280); font-size: 13px; }
.tasks-card .tasks-list .task { padding: 12px 18px; }
.task-toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: 340px; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); font-size: 14px; }
.task-toast.ok { border-left: 4px solid var(--brand); } .task-toast.bad { border-left: 4px solid var(--danger); }

/* ---- Client Backups page (all websites + deleted websites) ---- */
.stat-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
div.stat-card:hover { border-color: var(--line); }
.bk-search { margin: 0; min-width: min(320px, 100%); }
.bk-list { border-top: 1px solid var(--line-soft); }
.bk-item { border-bottom: 1px solid var(--line-soft); }
.bk-item:last-child { border-bottom: 0; }
.bk-item > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.bk-item > summary::-webkit-details-marker { display: none; }
.bk-item > summary:hover { background: var(--hover); }
.bk-item > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.bk-item > summary > .icon { margin-left: auto; color: var(--ink-3); transition: transform .15s; flex: none; }
.bk-item[open] > summary > .icon { transform: rotate(180deg); }
.bk-name { display: flex; flex-direction: column; min-width: 0; }
.bk-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-body { padding: 0 0 8px; background: var(--card); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.bk-item .pill { flex: none; }
@media (max-width: 640px) {
  .stat-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-cards.three .stat-card { grid-template-columns: 1fr; grid-template-rows: auto; text-align: left; }
  .stat-cards.three .stat-ic { display: none; }
  .bk-item > summary { padding: 12px; }
  .bk-actions { padding: 0 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { .bk-item > summary > .icon { transition: none; } }
.bk-item .point-actions { white-space: normal; text-align: right; }
.bk-item .point-actions > * { margin: 2px 0; vertical-align: middle; }
.bk-item .point-actions .pop { white-space: normal; text-align: left; }
@media (max-width: 640px) {
  .bk-item table.list { display: table; }
  .bk-item table.list td, .bk-item table.list th { padding-left: 12px; padding-right: 12px; }
  .bk-item .point-actions .lbl-long { display: none; }
}

/* ---- Client Backups: summary, tabs with counts, filters, one table per location ---- */
.bk-now { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin: 0; }
.bk-now select { width: auto; min-width: 200px; max-width: 280px; margin: 0; }
.bk-now .btn { flex: none; white-space: nowrap; }
.bk-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.bk-sum { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
a.bk-sum:hover { border-color: var(--brand); text-decoration: none; }
.bk-sum.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.bk-sum > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bk-sum strong { font-size: 1.35rem; margin-right: 4px; }
.bk-sum small { color: var(--ink-3); font-size: .8rem; }
.bk-sum-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
.tabs .tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--hover); color: var(--ink-3); font-size: .75rem; font-weight: 600; text-align: center; }
.tabs a.on .tab-count { background: var(--brand-tint); color: var(--brand-ink); }
.bk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.bk-filters .search-box { flex: 1 1 240px; min-width: 0; }
.bk-filters select { flex: 0 1 200px; min-width: 0; }
.bk-note { display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); }
.bk-note > .icon { flex: none; color: var(--brand); margin-top: 2px; }
.bk-table .bk-domain { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-table .point-actions { white-space: normal; text-align: right; }
.bk-table .point-actions > * { margin: 2px 0; vertical-align: middle; }
.bk-table .point-actions .pop { white-space: normal; text-align: left; }
@media (max-width: 640px) {
  .bk-now { width: 100%; }
  .bk-now select { flex: 1 1 auto; max-width: none; min-width: 0; }
  .bk-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bk-summary > div.bk-sum { display: none; }
  .bk-sum { padding: 10px 12px; gap: 8px; }
  .bk-sum-ic { display: none; }
  .bk-sum strong { font-size: 1.1rem; }
  .bk-filters select, .bk-filters .btn { flex: 1 1 40%; }
  /* each backup = a small card: website + date on top, buttons below */
  table.list.bk-table thead { display: none; }
  table.list.bk-table, table.list.bk-table tbody { display: block; overflow: visible; }
  table.list.bk-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.list.bk-table tr:last-child { border-bottom: 0; }
  table.list.bk-table td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; }
  table.list.bk-table td.hide-sm { display: none; }
  table.list.bk-table td.point-actions { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  table.list.bk-table td.point-actions:empty { display: none; }
  .bk-table .bk-domain { max-width: none; }
  .bk-table .point-actions .pop { left: 0; right: auto; max-width: calc(100vw - 40px); }
}

/* ---- Client Emails page ---- */
.em-new .pop { width: 320px; }
.em-addr { word-break: break-all; }
.em-usage { width: 160px; }
.em-meter { width: 120px; height: 8px; }
/* Emails page: sent in the last hour + hourly sending limit (Bilal 2026-12-02) */
.em-sent { width: 150px; white-space: nowrap; }
.em-sent .em-meter { display: block; width: 110px; margin-top: 3px; }
.warn-ink { color: var(--warn-ink); }
.em-limited { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.em-limited svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 640px) {
  .em-list thead { display: none; }
  .em-list tbody tr { display: flex; flex-wrap: wrap; align-items: center; }
  .em-list tbody td { border: 0; }
  .em-list tbody td:first-child { flex: 1 1 100%; padding-bottom: 4px; }
  .em-list tbody td.actions-cell { flex: 1 1 100%; text-align: left; padding-top: 0; border-bottom: 1px solid var(--line); }
}
.em-list .point-actions { white-space: normal; text-align: right; }
.em-list .point-actions > * { margin: 2px 0; vertical-align: middle; }
.em-list .point-actions .pop { white-space: normal; text-align: left; }
@media (max-width: 640px) {
  .em-list { display: table; }
  .em-list td, .em-list th { padding-left: 12px; padding-right: 12px; }
  .em-new .pop { width: min(320px, calc(100vw - 32px)); }
}
.row-form .btn { white-space: nowrap; flex: none; }

/* DDoS protection card (Firewall tab) */
.ddos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ddos-what { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.ddos-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ddos-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.ddos-add .field { flex: 1 1 240px; margin-bottom: 0; }

/* Website page: main buttons + Tools */
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.site-nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.site-nav-btn svg { width: 17px; height: 17px; }
.site-nav-btn:hover { text-decoration: none; color: var(--ink); border-color: var(--ink-3); background: var(--hover); }
.site-nav-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-nav-btn.on:hover { background: var(--brand-ink); color: #fff; }
.site-nav-btn .pill { margin-left: 2px; }
.tool-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 16px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tool-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; color: var(--ink-2); font-size: .86rem; font-weight: 500; white-space: nowrap; }
.tool-chip svg { width: 15px; height: 15px; }
.tool-chip:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.tool-chip.on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.tool-chip.back { color: var(--ink-3); border-right: 1px solid var(--line); border-radius: 8px 0 0 8px; margin-right: 4px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.tool-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 2px 10px var(--shadow); }
.tool-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.tool-ic svg { width: 21px; height: 21px; }
.tool-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.tool-state { justify-self: start; margin-top: 6px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--chip); color: var(--ink-2); }
.tool-state.ok { background: var(--brand-tint); color: var(--ok); }
.tool-state.warn { background: var(--warn-bg); color: var(--warn-ink); }
.tool-state.bad { background: var(--danger-tint); color: var(--danger); }
.tool-go { color: var(--ink-3); align-self: center; }
.tool-card:hover .tool-go { color: var(--brand); }
@media (max-width: 640px) {
  .site-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .site-nav-btn { height: auto; min-height: 54px; padding: 6px 4px; flex-direction: column; justify-content: center; gap: 3px; font-size: .78rem; text-align: center; white-space: normal; }
  .site-nav-btn .pill { position: absolute; margin: -36px 0 0 46px; }
  .site-nav-btn { position: relative; }
  .tool-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tool-grid { grid-template-columns: 1fr; }
}
.ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ext-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-family: var(--mono); font-size: .85rem; }
.ext-item:hover { background: var(--hover); }
.ext-item input { accent-color: var(--brand); }
.ext-item.locked { cursor: default; color: var(--ink-3); background: var(--hover); }
.ext-item .pill { margin-left: auto; font-family: var(--sans); font-size: .7rem; }

/* ---------- Hosting plans (client) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.plan-price strong { font-size: 1.5rem; }
.plan-price span { color: var(--ink-3); font-size: .9rem; }
.plan-meter { margin-bottom: 12px; }
.plan-meter > div { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
.plan-meter span { color: var(--ink-3); }
.plan-card .kv { margin-top: 6px; }
.plan-form .chips, .plan-form .inline-field, .plan-form .option-cards { margin-bottom: 16px; }
.plan-form .res-label { margin-top: 6px; }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } .plan-form .option-cards.two { grid-template-columns: 1fr; } }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stat .value.small { font-size: 1.15rem; line-height: 1.4; }
/* Migration key test result (Add new) */
.key-result { margin: 4px 0 16px 38px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.key-result .kr-title { margin: 0 0 8px; font-weight: 700; }
.key-result.good { border-color: var(--brand); background: var(--brand-tint); }
.key-result.bad { border-color: var(--danger); background: var(--danger-tint); }
.key-result.bad .kr-title { color: var(--danger); margin: 0; }
.key-result .kv { margin: 0 0 10px; }
.key-result ul:empty { display: none; }
@media (max-width: 600px) { .key-result { margin-left: 0; } }
/* Speed page: optimization report */
.opt-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.opt-totals > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--paper); }
.opt-totals span { display: block; font-size: .78rem; color: var(--ink-3); }
.opt-totals strong { display: block; font-size: 1.45rem; margin: 2px 0; color: var(--ok); }
.opt-totals em { font-style: normal; font-size: .78rem; color: var(--ink-3); }
.opt-h { font-size: .95rem; margin: 0 0 8px; }
.opt-list { list-style: none; margin: 0 0 14px; padding: 0; }
.opt-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.opt-list li strong::before { content: "•"; color: var(--ink-3); margin-right: 6px; }
.opt-list li.ok strong::before { content: "✓"; color: var(--ok); }
.opt-list b { color: var(--ok); }
@media (max-width: 860px) { .opt-totals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .opt-list li { grid-template-columns: 1fr; gap: 2px; } }
pre.kb-preview { max-height: 520px; }

/* bulk move: website rows stack on phones (checkbox + name, then CPU + memory) */
@media (max-width: 640px) {
  .import-table thead { display: none; }
  .import-table tr { display: grid; grid-template-columns: 32px 1fr 1fr; grid-template-areas: "chk site site" ". cpu mem"; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.list.import-table td { border: 0; padding: 0 4px; }
  .import-table td:nth-child(1) { grid-area: chk; }
  .import-table td:nth-child(2) { grid-area: site; }
  .import-table td:nth-child(4) { grid-area: cpu; }
  .import-table td:nth-child(5) { grid-area: mem; }
  .import-table select { width: 100%; }
}

/* live visitors (website overview) */
.visitors { border-top: 1px solid var(--line); padding: 14px 18px 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: center; }
.visitors .v-now { display: flex; align-items: baseline; gap: 8px; }
.visitors .v-now strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.visitors .v-now span:last-child { color: var(--ink-3); font-size: .9rem; }
.visitors .v-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); align-self: center; }
.visitors.on .v-dot { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
@media (prefers-reduced-motion: no-preference) { .visitors.on .v-dot { animation: v-pulse 2s ease-in-out infinite; } }
@keyframes v-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 8%, transparent); } }
.visitors .v-stats { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.visitors .v-stats div { display: flex; flex-direction: column; }
.visitors .v-stats strong { font-variant-numeric: tabular-nums; }
.visitors .v-stats span { color: var(--ink-3); font-size: .78rem; }
.visitors .v-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.visitors .v-bars i { flex: 1; height: 4%; background: var(--line); border-radius: 2px 2px 0 0; transition: height .3s; }
.visitors .v-bars i.has { background: var(--brand); opacity: .75; }
.visitors .v-bars i:last-child.has { opacity: 1; }
.visitors > p { grid-column: 1 / -1; }
@media (max-width: 640px) { .visitors { grid-template-columns: 1fr; } .visitors .v-stats { justify-content: flex-start; } }

/* change data center */
progress.reloc-bar { width: 100%; height: 10px; border: 0; border-radius: 6px; background: var(--line-soft); overflow: hidden; appearance: none; }
progress.reloc-bar::-webkit-progress-bar { background: var(--line-soft); border-radius: 6px; }
progress.reloc-bar::-webkit-progress-value { background: var(--brand); border-radius: 6px; }
progress.reloc-bar::-moz-progress-bar { background: var(--brand); border-radius: 6px; }
.reloc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: .85rem; color: var(--ink-3); }
.reloc-steps li { border-top: 3px solid var(--line); padding-top: 6px; }
.reloc-steps li.done { border-color: var(--brand); color: var(--ink); }
.reloc-steps li.now { border-color: var(--accent); color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .reloc-steps { grid-template-columns: 1fr 1fr; } }

/* Shown only where .hide-sm hides its column (≤ 900px) */
.show-md { display: none; }
@media (max-width: 900px) { .show-md { display: block; margin-top: 2px; } }

/* Admin → backup job form */
.seg.seg-wrap { flex-wrap: wrap; }
.backup-summary { background: var(--brand-tint); border: 1px solid var(--ok-line); color: var(--brand-ink); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }

/* Admin → Backups: running list, run timeline, account cards */
.run-list { display: grid; }
.run-item { display: grid; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.run-item:last-child { border-bottom: 0; }
.run-item:hover { background: var(--hover); text-decoration: none; }
.run-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.run-log { list-style: none; margin: 0; padding: 6px 18px 14px; max-height: 420px; overflow-y: auto; font-size: .86rem; }
.run-log li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.run-log li:last-child { border-bottom: 0; }
.run-log time { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-log span { overflow-wrap: anywhere; }
.bk-cards .bk-item.card { margin-bottom: 14px; border: 1px solid var(--line); }
.bk-cards .bk-item.card:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .run-log li { grid-template-columns: 1fr; gap: 2px; } .run-item { padding: 12px 14px; } }

/* ---- Login pages (layouts/auth): one centred card ------------------------------------------------ */
.auth-page { min-height: 100vh; background:
    radial-gradient(1100px 520px at 50% -12%, var(--brand-tint) 0%, transparent 62%),
    var(--paper); }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 18px; }
.auth-theme { position: fixed; top: 16px; right: 16px; z-index: 2; }
.auth-card { position: relative; width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    padding: 36px 40px 22px; box-shadow: 0 1px 2px var(--shadow), 0 24px 60px -28px var(--shadow); overflow: hidden; }
.auth-card.wide { max-width: 640px; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--brand) 22%, var(--accent) 78%, transparent 100%); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 15px; background: var(--brand); color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; position: relative; box-shadow: 0 8px 18px -10px var(--brand); }
.auth-logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); }
.auth-brand { font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: .01em; }
.auth-brand span { color: var(--accent); }
.auth-head h1 { font-size: 1.45rem; margin: 16px 0 4px; letter-spacing: -.01em; }
.auth-sub { color: var(--ink-3); margin: 0 auto; max-width: 34ch; font-size: .95rem; }
.auth-card .field label { font-weight: 600; }
.auth-card .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-card .label-row a { font-weight: 600; color: var(--accent); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.auth-card .input-icon input { padding-left: 42px; }
.auth-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .auth-card select { height: 48px; border-radius: 12px; width: 100%; }
.auth-card .grid-2 { align-items: start; }
.input-icon .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--ink-3); cursor: pointer; border-radius: 8px; line-height: 0; }
.input-icon .pw-toggle:hover { color: var(--ink); background: var(--hover); }
.input-icon .pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.input-icon .pw-toggle svg { width: 18px; height: 18px; }
.input-icon .pw-toggle svg + svg, .input-icon .pw-toggle.shown svg:first-child { display: none; }
.input-icon .pw-toggle.shown svg + svg { display: inline; }
.input-icon:has(.pw-toggle) input { padding-right: 46px; }
.auth-remember { margin: 4px 0 18px; color: var(--ink-2); }
.auth-submit { height: 50px; border-radius: 12px; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-submit svg { width: 18px; height: 18px; transition: transform .15s; }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-card .auth-alt { text-align: center; margin: 16px 0 0; }
.auth-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center;
    gap: 10px 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.auth-foot b { color: var(--ink); }
.auth-ver { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--warn-line); border-radius: 999px; color: var(--accent); font-weight: 700; }
.auth-ver svg { width: 14px; height: 14px; }
@media (max-width: 520px) {
    .auth-wrap { padding: 64px 12px 24px; align-items: flex-start; }
    .auth-card { padding: 28px 20px 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .auth-submit svg { transition: none; } }

/* WordPress tab: login details */
.wp-login-kv dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.wp-login-kv dd > a.mono { overflow-wrap: anywhere; }
.wp-login-kv .wp-pw input { width: 220px; max-width: 100%; padding-right: 46px; font-family: var(--mono, ui-monospace, monospace); }
.wp-login-kv dd > .small { flex-basis: 100%; }
@media (max-width: 520px) { .wp-login-kv .wp-pw, .wp-login-kv .wp-pw input { width: 100%; } }

/* Settings hub + website tools: equal cards (Bilal 2026-11-25) */
.hub-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.hub-card { align-items: center; padding: 16px; min-height: 84px; }
.hub-card > div:not(.ico) { flex: 1; min-width: 0; }
.hub-card h3 { padding-right: 0; font-size: .98rem; }
.hub-card p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card .ico { width: 40px; height: 40px; }
.hub-card.disabled .state { position: static; flex: none; }
.hub-go { color: var(--ink-3); flex: none; line-height: 0; }
.hub-go svg { width: 18px; height: 18px; }
a.hub-card:hover .hub-go { color: var(--brand); }
.tool-grid { grid-auto-rows: 1fr; }
.tool-card { align-items: center; min-height: 92px; }
.tool-text .small { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-state { margin-top: 4px; }
@media (max-width: 640px) { .hub-grid, .tool-grid { grid-auto-rows: auto; } }
.hub-grid { grid-auto-rows: 92px; }
.hub-card { height: 100%; min-height: 0; }
.hub-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .hub-grid { grid-auto-rows: auto; } }
.tool-card { align-items: flex-start; min-height: 128px; }
.tool-text { display: flex; flex-direction: column; gap: 3px; align-self: stretch; }
.tool-state { margin-top: auto; align-self: flex-start; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tool-text .small { margin-bottom: 8px; }
.tool-go { align-self: center; }
@media (max-width: 640px) { .tool-card { min-height: 0; } .tool-state { margin-top: 4px; } }

/* ---------------------------------------------------------------- VetaFull */
.type-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 18px; }
.type-tabs a { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: inherit; text-decoration: none; }
.type-tabs a .icon { flex: none; margin-top: 2px; color: var(--brand); }
.type-tabs a strong { display: block; }
.type-tabs a small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.type-tabs a.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.type-tabs a:hover { border-color: var(--brand); }
.accounts-card { margin-bottom: 18px; }
.log-box { margin: 0; padding: 12px 14px; max-height: 420px; overflow: auto; background: #0f1512; color: #e6ede9; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; border-radius: 0 0 12px 12px; }
.env-rows .row-2 { margin-bottom: 6px; }
.env-rows input { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
.pay-online form { margin: 0 0 8px; }
.pay-redirect { display: grid; place-items: center; min-height: 100vh; background: var(--bg, #f6f7f6); padding: 16px; }
.pay-redirect-card { max-width: 460px; width: 100%; padding: 24px; text-align: center; }
.rail-logo img { max-width: 36px; max-height: 36px; object-fit: contain; display: block; }
.domain-search { display: flex; gap: 10px; margin: 0 0 16px; }
.domain-search .search-box { flex: 1; }
.search-box.big input { font-size: 18px; padding: 12px 12px 12px 40px; }
.tld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 14px; }
.tld-grid .tld { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tld-grid .tld strong { display: block; font-size: 18px; }
.tld-grid .tld span { color: var(--muted); font-size: 13px; }
.ok-ink { color: var(--brand); }
.error-ink { color: #b42318; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 10px 12px; border-radius: 8px; margin: 8px 0 14px; }
.pop.wide { min-width: min(560px, 92vw); }
.danger-zone { border-color: #f3c5c0; }
@media (max-width: 640px) {
  .domain-search { flex-direction: column; }
  .type-tabs { grid-template-columns: 1fr 1fr; }
  .type-tabs a small { display: none; }
}

/* ---------- Admin dashboard ---------- */
.dash-head h1 { letter-spacing: -.01em; }
.dash-attn { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.dash-attn-item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px; background: var(--warn-tint);
  border: 1px solid var(--warn-line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.dash-attn-item:hover { border-color: var(--warn-ink); }
.dash-attn-item > svg:last-child { width: 15px; height: 15px; color: var(--ink-3); }
.dash-attn-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); }
.dash-attn-ic svg { width: 17px; height: 17px; }
.dash-attn-item.bad { background: var(--danger-tint); border-color: var(--danger-line); }
.dash-attn-item.bad .dash-attn-ic { background: var(--danger); color: #fff; }
.dash-clear { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--brand-tint); border: 1px solid var(--ok-line);
  color: var(--ink); margin: 0 0 18px; font-size: .92rem; }
.dash-clear svg { color: var(--ok); width: 20px; height: 20px; flex: 0 0 auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 18px; }
.dash-kpi { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.dash-kpi.link:hover { border-color: var(--ink-3); }
.dash-kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: .85rem; }
.dash-kpi-top svg { width: 18px; height: 18px; color: var(--brand); }
.dash-kpi-num { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 4px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dash-kpi-foot { font-size: .83rem; color: var(--ink-3); }
.dash-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-delta.up { color: var(--ok); }
.dash-delta.down { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dash-grid > .card { margin: 0; min-width: 0; }
.dash-span2 { grid-column: span 2; }
.dash-span3 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr 1fr; } .dash-span2, .dash-span3 { grid-column: 1 / -1; } }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-legend { text-align: right; }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-bar { fill: var(--brand); opacity: .82; }
.dash-bar:hover { opacity: 1; }
.dash-bar.today { fill: var(--accent); opacity: 1; }
.dash-bar.empty { fill: var(--line); opacity: 1; }
.dash-grid-line { stroke: var(--line-soft); stroke-width: 1; }
.dash-axis { fill: var(--ink-3); font-size: 12px; font-family: var(--sans); }
.dash-chart-foot { margin-top: 8px; }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.dash-row:last-child { border-bottom: 0; }
.dash-row.link:hover { background: var(--hover); }
.dash-row-main { flex: 1; min-width: 0; }
.dash-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--brand-tint); color: var(--brand-ink); }
.dash-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 18px; color: var(--ink-3); text-align: center; }
.dash-empty svg { width: 24px; height: 24px; }
.dash-grid .table-wrap { overflow-x: auto; }
.dash-server { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.dash-server b { display: block; }
.dash-roles { display: block; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
.dash-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--brand-tint); }
.dash-dot.off { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-tint); }
.dash-meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dash-servers td { vertical-align: middle; }
.dash-act { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.dash-act:last-child { border-bottom: 0; }
.dash-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
.dash-act-dot.k-admin { background: var(--brand); }
.dash-act-dot.k-client { background: var(--accent); }
.dash-when { white-space: nowrap; }
@media (max-width: 560px) { .dash-attn-item { flex: 1 1 100%; } .dash-attn-item > svg:last-child { margin-left: auto; }
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .dash-kpi { padding: 12px 14px; } .dash-kpi-num { font-size: 1.2rem; } .dash-kpi-top svg { display: none; } }

/* What we sell (Settings → Linux, email & domains) */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
@media (max-width: 640px) { .offer-grid { grid-template-columns: 1fr; } }

/* WhatsApp agent keys (Settings → WA Hero AI → Agent keys) */
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-size: .85rem; }
.key-once { border-color: var(--brand); }
.key-form .perm-group { margin: 12px 0 0; }
.key-form .perm-group legend { font-size: .85rem; }
.key-form .check span { line-height: 1.35; }
.t-right { text-align: right; }
.nowrap { white-space: nowrap; }
.btn.ghost.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.key-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { .key-actions { flex-direction: column; align-items: flex-end; } }

/* Admin → Security updates */
.sec-alerts { display: grid; gap: 12px; padding: 14px 16px; }
.sec-alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 12px 14px; background: var(--card); display: grid; gap: 6px; }
.sec-alert.sev-critical, .sec-alert.sev-high { border-left-color: var(--danger); }
.sec-alert.sev-medium { border-left-color: var(--warn-ink); }
.sec-alert-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sec-body { margin: 0; white-space: pre-line; }
.sec-alert-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 4px; }
.sec-how p { margin: 0 0 8px; }
.sec-how .muted { margin: 2px 0 6px; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sec-actions form { margin: 0; }

/* Full-page file manager (client.sites.files.page): the left menu stays, the manager fills the rest */
.content.full { max-width: none; }
.fm-page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fm-page-head strong { font-size: 1.05rem; }
.fm-page-head .grow { flex: 1; }
.fm-page .fm { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.fm-page .fm .table-wrap { flex: 1; overflow: auto; min-height: 0; }
.fm-page .fm-table thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.fm-page .fm-drop { inset: 0; }
@media (max-width: 860px) {
  .content.full.fm-page { padding: 10px; }
  .fm-page .fm { height: calc(100vh - 120px); }
}

/* Database manager (Linux hosting) */
.dbm-top { align-items: start; }
.dbm-affix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.dbm-affix > span { display: flex; align-items: center; padding: 0 10px; background: var(--chip); color: var(--ink-2); border-right: 1px solid var(--line); white-space: nowrap; }
.dbm-affix input[type=text] { border: 0; border-radius: 0; flex: 1; min-width: 0; box-shadow: none; }
.dbm-affix:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.dbm-table td { vertical-align: top; }
.dbm-table .c-act { text-align: right; white-space: nowrap; }
.dbm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dbm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--mono, ui-monospace, monospace); font-size: .82rem; background: var(--paper); }
.dbm-chip em { font-style: normal; font-family: inherit; font-size: .72rem; color: var(--ink-3); padding-right: 6px; }
.dbm-chip.busy { opacity: .6; }
.dbm-x { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 99px; }
.dbm-x:hover { color: var(--danger); background: var(--danger-tint); }
.dbm-link { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dbm-link select { width: auto; min-width: 160px; padding-top: 4px; padding-bottom: 4px; }
.dbm-pw input { width: 210px; max-width: 100%; padding-right: 46px; font-family: var(--mono, ui-monospace, monospace); }
.dbm-del { display: inline-block; text-align: left; position: relative; }
.dbm-del > summary { list-style: none; }
.dbm-del > summary::-webkit-details-marker { display: none; }
.dbm-del[open] > form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
@media (max-width: 520px) { .dbm-pw, .dbm-pw input { width: 100%; } .dbm-link select { flex: 1; } }
@media (max-width: 640px) {
  table.list.dbm-table thead { display: none; }
  table.list.dbm-table, table.list.dbm-table tbody, table.list.dbm-table tr, table.list.dbm-table td { display: block; width: 100%; }
  table.list.dbm-table tr { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  table.list.dbm-table td { border: 0; padding: 4px 16px; }
  table.list.dbm-table td.hide-sm { display: none; }
  table.list.dbm-table .c-act { text-align: left; }
  .dbm-chip { max-width: 100%; overflow-wrap: anywhere; }
  .dbm-del[open] > form { left: 0; right: auto; width: min(260px, calc(100vw - 60px)); }
}
@media (max-width: 640px) {
  .dbm-pw { display: inline-block; width: calc(100% - 46px); }
  .dbm-pw input { width: 100%; }
}

/* Domain pricing: billing cycles table inside the extension form */
.tld-form table.cycles { margin: 6px 0 4px; max-width: 560px; }
.tld-form table.cycles input[type=number] { width: 100%; min-width: 0; }
.tld-form table.cycles td, .tld-form table.cycles th { padding: 6px 8px; }
@media (max-width: 640px) { .tld-form table.cycles td:first-child { white-space: nowrap; } }
.hub-hero .grow { flex: 1 1 auto; min-width: 0; }
.hub-hero .hero-actions { flex: none; display: flex; gap: 8px; }
@media (max-width: 640px) { .hub-hero { flex-wrap: wrap; } .hub-hero .hero-actions { width: 100%; } }
.offer-list { display: grid; gap: 10px; margin-bottom: 12px; }
.reg-grid { gap: 18px; align-items: start; }
@media (max-width: 900px) { .reg-grid { grid-template-columns: 1fr; } }
@media (min-width: 1600px) { .reg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Admin → client → Add domains */
.dom-import td { vertical-align: top; }
.dom-import select, .dom-import input[type=text], .dom-import input[type=date] { display: block; width: 100%; min-width: 150px; }
.dom-import td { white-space: normal; }
.dom-import .mt-half { margin-top: 6px; }
@media (max-width: 640px) {
  .dom-import thead { display: none; }
  .dom-import tr { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .dom-import td { border: 0; padding: 0; }
  .dom-import td:nth-child(n+3) { grid-column: 2; }
}
/* Domain pricing: registrar sync */
.inline-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sync-form .check.inline { display: inline-flex; margin-left: 12px; }
.sync-head { gap: 12px; flex-wrap: wrap; }
.sync-head input[type=search] { flex: 1 1 220px; max-width: 320px; }

/* Client dashboard: domains card + "Add to your account" */
.home-domains .alert { margin: 12px 16px 0; }
.home-domains .card-head { flex-wrap: wrap; gap: 8px; }
.choice-grid.compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice-grid.compact .choice { padding: 12px 14px; }
.choice-grid.compact .choice .icon { width: 20px; height: 20px; margin-bottom: 2px; }
.home-domains, .home-more, .accounts-card { margin-bottom: 18px; }

/* Admin → Currencies */
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: stretch; }
.cur-explain { margin-bottom: 16px; }
.cur-explain .card-body { line-height: 1.55; }
.cur-card.off .cur-facts { opacity: .6; }
.cur-card .card-head { gap: 8px; flex-wrap: wrap; }
.cur-title { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.cur-code { font-family: var(--mono, ui-monospace, monospace); font-size: .8rem; padding: 3px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand); }
.cur-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cur-facts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .6fr); gap: 10px; margin: 0 0 14px; }
.cur-facts dt { font-size: .75rem; color: var(--ink-3); margin-bottom: 2px; }
.cur-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cur-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cur-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 14px; }
.cur-checks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.cur-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cur-card .cur-fields { grid-template-columns: 1fr 1fr; }
.cur-sub { display: block; }
.cur-checks .check { align-items: flex-start; }
@media (max-width: 480px) { .cur-facts { grid-template-columns: 1fr 1fr; } .cur-fields, .cur-card .cur-fields { grid-template-columns: 1fr; } }

/* Left menu: a thin, light scroll bar (Bilal 2026-12-01: like the chat's own), a bit darker on hover */
.side { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--side-ink) 18%, transparent) transparent; overscroll-behavior: contain; }
.side:hover { scrollbar-color: color-mix(in srgb, var(--side-ink) 34%, transparent) transparent; }
.side::-webkit-scrollbar { width: 6px; height: 6px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--side-ink) 18%, transparent); border-radius: 99px; }
.side:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--side-ink) 34%, transparent); }

/* Website tools: FTP, redirects, traffic, cron, email migration (0.32) */
.input-suffix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.input-suffix input { border: 0; flex: 1; min-width: 0; border-radius: 0; }
.input-suffix span { display: flex; align-items: center; padding: 0 10px; background: var(--hover); color: var(--muted); font-size: .88rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.preset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-links { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-row .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-row .stat strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.bar-list { list-style: none; margin: 0; padding: 6px 16px 14px; }
.bar-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bar-list li:last-child { border-bottom: 0; }
.bar-list meter { grid-column: 1 / -1; width: 100%; height: 6px; }
tr.sub-row td { padding-top: 0; border-top: 0; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin client profile (like WHMCS) */
.dom-tools { display: grid; gap: 10px; padding: 6px 0 10px; }
.dom-tools .row-form .grow { flex: 1 1 240px; width: auto; }
.dom-tools select { padding: 6px 8px; }
.credit-line { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.credit-line .num { min-width: 90px; }
@media (max-width: 600px) { .dom-tools .row-form { flex-wrap: wrap; } }

/* Admin server page: busiest websites (live) */
.busy-card .card-head .seg { margin-bottom: 0; }
.busy-bulk { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.busy-bulk .row-form { flex-wrap: wrap; align-items: center; }
.busy-bulk select { padding: 6px 8px; }
.busy-wait { padding: 8px 14px; }
.busy-table td { vertical-align: top; }
.busy-table .btn.xs { padding: 3px 8px; font-size: .78rem; }
.busy-table .btn-row { gap: 4px; margin-top: 4px; }
.busy-table tr.hot td[data-k="req"] { color: var(--danger); font-weight: 700; }
.busy-note { padding: 10px 14px; margin: 0; }
.busy-card .table-scroll { overflow-x: auto; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 4px; vertical-align: middle; }
@media (max-width: 600px) { .busy-card .card-head { flex-direction: column; align-items: flex-start; } }

/* Bulk move: "Try again" for websites that failed */
.retry-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.retry-box form { margin: 0; }
.retry-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* DNS records: Cloudflare proxy for many records at once */
.rec-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.rec-bulk [data-rec-picked] { flex: 1 1 200px; }
.rec-bulk-menu { position: relative; }
.rec-bulk-menu summary { list-style: none; cursor: pointer; }
.rec-bulk-menu summary::-webkit-details-marker { display: none; }
.rec-bulk-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: grid; gap: 6px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px var(--shadow); min-width: 220px; }
.rec-bulk-pop .btn { justify-content: flex-start; text-align: left; }
.rec-table .c-pick { width: 34px; text-align: center; }
@media (max-width: 600px) { .rec-bulk-pop { left: auto; right: 0; } }

/* Bulk move: websites already here */
.warn-text { color: var(--warn-ink); }
.import-table tr.import-here td { background: var(--warn-bg, transparent); background: color-mix(in srgb, var(--warn-bg) 45%, transparent); }

/* Tasks page: tick tasks, then cancel / clear them */
.tasks-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; margin-bottom: 12px; }
.tasks-bulk .check { margin: 0; font-weight: 600; }
.tasks-bulk-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tasks-type select { height: 32px; padding: 0 30px 0 10px; font-size: 13px; min-width: 170px; }
.task-line { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); }
.task-line:last-child { border-bottom: 0; }
.task-line > .task { flex: 1; min-width: 0; border-bottom: 0; }
.task-pick { padding: 14px 0 0 14px; cursor: pointer; }
.task-pick input { width: 17px; height: 17px; margin: 0; }
@media (max-width: 600px) { .tasks-bulk-actions { margin-left: 0; width: 100%; } .tasks-bulk-actions .btn { flex: 1; } .tasks-type { flex: 1 1 100%; } .tasks-type select { width: 100%; } }
/* DNS page: "Proxy on" menu in the bulk bar opens to the left (it sits near the right edge) */
.tasks-bulk-actions .rec-bulk-pop { left: auto; right: 0; }
.tasks-bulk-actions .rec-bulk-menu summary.btn:has(+ .rec-bulk-pop .btn:disabled) { opacity: .55; }
@media (max-width: 600px) {
  .tasks-bulk-actions .rec-bulk-menu { flex: 1; }
  .tasks-bulk-actions .rec-bulk-menu summary { width: 100%; justify-content: center; }
  .tasks-bulk-actions .rec-bulk-pop { left: 0; right: auto; }
}
.bulk-confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.bulk-confirm p { flex-basis: 100%; }
.dns-name input[data-bulk-item] { width: 17px; height: 17px; margin: 0 4px 0 0; vertical-align: middle; }

/* ModSecurity tool: mode switch + log */
.ms-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line-soft); }
.ms-modes form { margin: 0; }
.ms-mode { width: 100%; height: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.ms-mode:hover:not(:disabled) { border-color: var(--brand); }
.ms-mode:disabled { cursor: default; }
.ms-mode > .icon { flex: none; margin-top: 2px; color: var(--ink-3); }
.ms-mode span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-mode strong { font-size: .95rem; }
.ms-mode em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--brand-ink); }
.ms-mode small { color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
.ms-mode.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.ms-mode.on > .icon { color: var(--brand); }
.ms-mode.detect.on { border-color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-ink); background: var(--warn-bg); }
.ms-mode.detect.on > .icon, .ms-mode.detect.on em { color: var(--warn-ink); }
.ms-mode.off.on { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background: var(--danger-tint); }
.ms-mode.off.on > .icon, .ms-mode.off.on em { color: var(--danger); }
.ms-mode:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ms-more { border-top: 1px solid var(--line-soft); }
.ms-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-list { list-style: none; margin: 0; padding: 4px 0; }
.ms-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 18px; min-width: 0; }
.ms-list li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ms-list li a.on { color: var(--brand-ink); font-weight: 600; }
.ms-table td { vertical-align: top; }
@media (max-width: 640px) {
  .ms-modes, .ms-top { grid-template-columns: 1fr; }
  .ms-table th:first-child, .ms-table td:first-child { width: 92px; }
}
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li { margin: 4px 0; }

/* Admin → DNS (every client domain) */
/* Admin DNS page (Bilal 2026-11-29): the client DNS page's look */
.dnsd-head { align-items: flex-start; }
.dnsd-sync-box { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.dnsd-cards .stat-ic.dnsd-ic-other { color: #7a8aa0; }
.dnsd-filters .search-box { flex: 1 1 260px; }
.dnsd-filters select { max-width: 210px; }
.dnsd-hint { margin: -8px 0 12px; }
.dnsd-bulk.card { margin-bottom: 12px; }
.dnsd-list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dnsd-list-head .dnsd-tip { margin-left: auto; }
.dnsd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .8rem; font-weight: 600; text-decoration: none; }
.dnsd-chip .icon { width: 14px; height: 14px; }
.dns-table a.dt-ip { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.dns-table a.dt-ip:hover { color: var(--brand); border-bottom-color: var(--brand); }
@media (min-width: 1101px) and (max-width: 1560px) { .dnsd-cards .stat-card { grid-template-columns: 1fr; } .dnsd-cards .stat-ic { display: none; } }
.dnsd-cards .stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dns-toolbar.dnsd-filters select { flex: 0 1 auto; max-width: 180px; }
.dns-toolbar.dnsd-filters .search-box { flex: 1 1 220px; }
@media (max-width: 760px) {
  table.list.dns-table.dnsd-table .dt-ssl::before { content: "SSL"; }
  table.list.dns-table.dnsd-table tr { grid-template-columns: 24px minmax(0, .6fr) minmax(0, 1.1fr) minmax(0, .4fr) minmax(0, 1.3fr); }
  table.list.dns-table.dnsd-table .dt-ip { font-size: .74rem; white-space: nowrap; }
  table.list.dns-table.dnsd-table .dt-status .pill { font-size: .62rem; letter-spacing: .02em; }
  .dns-toolbar.dnsd-filters select { max-width: none; }
  .dnsd-cards .stat-label { white-space: normal; }
  .dnsd-head { flex-direction: column; }
  .dnsd-sync-box { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dnsd-filters select { max-width: none; }
  .dnsd-list-head .dnsd-tip { display: none; }
}
.dnsd-sync { margin: -6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dnsd-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.dnsd-filters .search-box { flex: 1 1 240px; min-width: 0; }
.dnsd-filters select { flex: 0 1 210px; min-width: 0; }
.dnsd-bulk { border-bottom: 1px solid var(--line-soft); border-radius: 12px 12px 0 0; }
.pill.dnsd-plain { background: var(--chip); color: var(--ink-3); }
.dnsd-table .dnsd-tick { width: 34px; }
.dnsd-table .dnsd-domain { word-break: break-all; }
.dnsd-table .dnsd-ns, .dnsd-table .dnsd-err { max-width: 260px; word-break: break-word; }
.dnsd-table .dnsd-act { text-align: right; white-space: nowrap; }
.dnsd-table .dnsd-act .dnsd-err { white-space: normal; text-align: left; }
.dns-table a.dt-code { text-decoration: none; }
.dns-table a.dt-code:hover { background: var(--brand); color: #fff; }
.dns-table .dt-node .dt-away { margin-left: 4px; vertical-align: middle; }
.dns-table .dt-ip { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--ink-2); white-space: nowrap; cursor: help; }
.dns-table .dt-act .pill { margin-right: 4px; }
.dns-table tr.dt-note td { padding-top: 0; border-top: 0; color: var(--warn-ink); max-width: none; }
.dns-table tbody tr:has(+ tr.dt-note) td { border-bottom: 0; }
.dnsd-point.here, .dnsd-point.cloudflare { color: var(--ok); font-weight: 600; }
.dnsd-point.elsewhere { color: var(--warn-ink); font-weight: 600; }
.dnsd-point.unknown { color: var(--ink-3); }
.dnsd-assign { flex-basis: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper, transparent); }
.dnsd-assign label { display: block; font-weight: 600; margin-bottom: 6px; }
.dnsd-assign-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dnsd-assign-row input { flex: 1 1 260px; min-width: 0; }
.dnsd-free { color: var(--warn-ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .dnsd-filters select, .dnsd-filters .btn { flex: 1 1 40%; }
  table.list.dns-table.dnsd-table .pill { white-space: normal; max-width: 100%; }
}
.bk-table .bk-tick { width: 34px; }

/* Bulk move: what each website is doing right now */
.badge.imp-step { text-transform: none; }
.badge.info { background: #e8f0fe; color: #1d4ed8; }
:root[data-theme="dark"] .badge.info { background: #1e2a44; color: #9ec1ff; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .badge.info { background: #1e2a44; color: #9ec1ff; } }
.imp-bar { display: block; max-width: 220px; height: 6px; margin: 6px 0 2px; }
.imp-summary { margin: 4px 2px 10px; color: var(--ink-2); }

/* Website move: steps with names — which one is running, which are done */
.mig-track { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mig-track li { position: relative; padding-top: 12px; border-top: 4px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; }
.mig-track .t-dot { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--chip); color: var(--ink-3); }
.mig-track .t-name { font-size: .86rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.mig-track .t-state { font-size: .76rem; color: var(--ink-3); }
.mig-track li.t-done { border-top-color: var(--brand); }
.mig-track li.t-done .t-dot { background: var(--brand); color: #fff; }
.mig-track li.t-done .t-name { color: var(--ink-2); }
.mig-track li.t-now { border-top-color: var(--accent, #d98a1f); }
.mig-track li.t-now .t-dot { background: var(--accent, #d98a1f); color: #fff; box-shadow: 0 0 0 4px var(--warn-tint, #fdf3e3); }
.mig-track li.t-now .t-name { color: var(--ink); }
.mig-track li.t-now .t-state { color: var(--warn-ink); font-weight: 600; }
.mig-track li.t-fail { border-top-color: var(--danger); }
.mig-track li.t-fail .t-dot { background: var(--danger); color: #fff; }
.mig-track li.t-fail .t-state { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) {
  .mig-track { grid-template-columns: 1fr; gap: 0; }
  .mig-track li { border-top: 0; border-left: 4px solid var(--line); padding: 6px 0 6px 12px; }
  .mig-track li.t-done { border-left-color: var(--brand); }
  .mig-track li.t-now { border-left-color: var(--accent, #d98a1f); }
  .mig-track li.t-fail { border-left-color: var(--danger); }
}
@media (prefers-reduced-motion: no-preference) { .mig-track li.t-now .t-dot { transition: box-shadow .3s; } }

/* Admin → Finance */
.fin-h { font-size: 1.05rem; margin: 6px 0 2px; }
.fin-page .card { margin-bottom: 18px; }
.fin-note { margin: 0 0 12px; max-width: 80ch; }
.fin-split { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.fin-total td { font-weight: 700; border-top: 2px solid var(--line); }
.fin-periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fin-periods a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink-2); background: var(--card); }
.fin-periods a:hover { text-decoration: none; color: var(--ink); }
.fin-periods a.on { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.dash-kpi.fin-profit .dash-kpi-num { color: var(--ok); }
.dash-kpi.fin-profit.loss .dash-kpi-num { color: var(--danger); }
td.num.fin-neg { color: var(--danger); }
.fin-bar-in { fill: var(--brand); opacity: .85; }
.fin-bar-out { fill: var(--accent); opacity: .85; }
.fin-chart-table { margin-top: 12px; max-height: 260px; overflow: auto; }
@media (max-width: 860px) { .fin-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fin-periods a { padding: 5px 10px; font-size: .8rem; } }

/* Task resources (Settings → Task resources) */
.tr-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.tr-kind { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0; min-width: 0; }
.tr-kind legend { font-weight: 600; padding: 0 6px; }
.tr-kind > p { margin: 0 0 10px; }
@media (max-width: 860px) { .tr-kinds { grid-template-columns: 1fr; } }

/* DNS page: filters in one bar + the domains table */
.dns-toolbar .search-box { flex: 0 1 260px; min-width: 180px; }
.dns-toolbar select { max-width: 230px; }
.dns-table-card { padding: 0; overflow: visible; }
table.list.dns-table th { padding: 10px 14px; white-space: nowrap; }
table.list.dns-table td { padding: 11px 14px; vertical-align: middle; }
table.list.dns-table tbody tr:hover td { background: var(--hover); }
.dns-table .dt-pick { width: 34px; padding-right: 0; }
.dns-table .dt-c { text-align: center; }
.dns-table .dt-act { text-align: right; white-space: nowrap; }
.dns-table .dt-act > * { display: inline-block; margin-left: 6px; vertical-align: middle; }
.dns-table .dt-name { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.dns-table a.dt-name:hover { color: var(--brand); }
.dns-table .dt-sub { display: block; margin-top: 2px; }
.dns-table .dt-status { white-space: nowrap; }
.dns-table .dt-status .pill + .pill { margin-left: 4px; }
.dns-table .dt-ok { color: var(--ok); display: inline-flex; }
.dns-table .dt-bad { color: var(--danger); display: inline-flex; }
.dns-table .dt-away { color: var(--ink-3); display: inline-flex; cursor: help; }
.dns-table .dt-cf { display: inline-flex; flex-direction: column; align-items: center; color: #f38020; line-height: 1; }
.dns-table .dt-cf .icon { width: 20px; height: 20px; fill: currentColor; }
.dns-table .dt-cf.other { color: #7a8aa0; }
.dns-table .dt-cf.other small { color: var(--muted); }
.dns-table a.dt-cf { text-decoration: none; }
.dns-table a.dt-cf:hover small { color: var(--ink); }
.dnsd-modes { display: grid; gap: 8px; margin: 0 0 10px; }
.dnsd-cf .dnsd-mode { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; cursor: pointer; }
.dnsd-cf .dnsd-mode:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.dnsd-mode input { margin-top: 3px; }
.dnsd-mode strong { display: block; }
.dnsd-mode small { display: block; color: var(--muted); line-height: 1.4; }
.dnsd-cf .dnsd-assign-row .field { flex: 1 1 220px; }
.dnsd-cf .dnsd-assign-row .field span { display: block; margin-bottom: 6px; }
.dnsd-cf .dnsd-assign-row .field input, .dnsd-cf .dnsd-assign-row .field select { width: 100%; }
.dnsd-cf .dnsd-assign-row { align-items: flex-end; }
.dns-table .dt-cf small { font-size: .66rem; color: var(--warn-ink); margin-top: 2px; }
.dns-table .dt-sslrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; }
.dns-table .dt-sslrow > * { margin: 0; vertical-align: middle; }
.dns-table .dt-wp { display: inline-flex; align-items: center; border-radius: 6px; padding: 1px; text-decoration: none; }
.dns-table .dt-wp .icon { width: 18px; height: 18px; }
.dns-table .dt-wp.on { color: var(--ok); }
.dns-table .dt-wp.waiting { color: var(--ink-3); }
.dns-table .dt-wp.idle { color: var(--warn-ink); }
.dns-table .dt-wp.error { color: var(--danger); }
.dns-table .dt-wp.off { color: var(--ink-3); opacity: .7; }
.dns-table .dt-wp:hover { background: var(--hover); }
.dns-table .dt-wp:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dns-table .dt-regname { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.dns-table .dt-regname.ours { color: var(--brand-ink); }
.dns-table .dt-regname .icon { width: 15px; height: 15px; color: var(--brand); }
.dns-table .dt-code { display: inline-block; min-width: 34px; padding: 2px 7px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; font-size: .78rem; letter-spacing: .04em; cursor: help; }
.dt-nspop { display: inline-block; }
.dt-nspop > summary { cursor: pointer; border-radius: 6px; padding: 2px; }
.dt-nspop > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dt-pop { position: absolute; z-index: 30; top: calc(100% + 6px); right: -10px; width: 300px; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow); color: var(--ink); font-weight: 400; }
.dt-pop p { flex-basis: 100%; }
@media (max-width: 760px) {
  /* each domain = a small card: name + status on top, the checks in one line, buttons below */
  table.list.dns-table thead { display: none; }
  table.list.dns-table, table.list.dns-table tbody { display: block; }
  table.list.dns-table tr { display: grid; grid-template-columns: 24px minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, .9fr); gap: 8px 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.list.dns-table tr:last-child { border-bottom: 0; }
  table.list.dns-table td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  table.list.dns-table td.hide-sm { display: none; }
  table.list.dns-table tbody tr:hover td { background: transparent; }
  .dns-table .dt-pick { grid-area: 1 / 1; }
  .dns-table .dt-domain { grid-area: 1 / 2 / 2 / 4; }
  .dns-table .dt-status { grid-area: 1 / 4 / 2 / 6; text-align: right; white-space: normal; }
  .dns-table .dt-status .pill { white-space: nowrap; }
  .dns-table .dt-ssl { grid-area: 2 / 2; }
  .dns-table .dt-reg { grid-area: 2 / 3; }
  .dns-table .dt-ns { grid-area: 2 / 4; }
  .dns-table .dt-node { grid-area: 2 / 5; }
  .dns-table .dt-ssl, .dns-table .dt-ns { text-align: left; }
  table.list.dns-table td.dt-act, table.list.dns-table td.dt-status { text-align: right; }
  .dns-table .dt-ssl::before, .dns-table .dt-reg::before, .dns-table .dt-ns::before, .dns-table .dt-node::before { display: block; font-size: .68rem; color: var(--ink-3); margin-bottom: 2px; }
  .dns-table .dt-ssl::before { content: "SSL · WP"; }
  .dns-table .dt-ns::before { content: "NS"; }
  .dns-table .dt-reg::before { content: "Registrar"; }
  .dns-table .dt-node::before { content: "Pointed to"; }
  .dns-table .dt-regname { white-space: normal; overflow-wrap: break-word; font-size: .84rem; }
  .dns-table .dt-act { grid-area: 3 / 2 / 4 / 6; text-align: right; }
  .dns-table .dt-act:empty { display: none; }
  .dns-table .dt-act > * { margin: 0 0 0 6px; }
  .dt-pop { right: 0; width: min(300px, calc(100vw - 40px)); }
  table.list.dns-table tr.dt-note { display: block; padding: 0 14px 12px 46px; margin-top: -8px; }
  table.list.dns-table tr.dt-note td:first-child { display: none; }
  .dns-toolbar .search-box { flex: 1 1 100%; }
  .dns-toolbar select { max-width: none; }
  .dns-toolbar .select-inline { flex: 1 1 140px; display: flex; }
  .dns-toolbar .select-inline select { width: 100%; }
}

/* Backups → Accounts on servers */
.nodes-server { display: flex; gap: 8px; align-items: center; }
.nodes-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nodes-lock { display: flex; gap: 10px; align-items: flex-start; }
.nodes-lock svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.nodes-bulk { position: sticky; top: 8px; z-index: 5; }
.nodes-assign { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; min-width: 0; }
.nodes-assign input { flex: 1 1 auto; min-width: 0; }
.nodes-list { padding: 0; overflow: hidden; }
.nodes-list .card-head { padding: 14px 16px; display: flex; gap: 8px; align-items: baseline; }
.nodes-table tr.is-mine td { background: var(--brand-tint); }
.nodes-locked { display: inline-grid; place-items: center; color: var(--ink-3); }
.nodes-locked svg { width: 15px; height: 15px; }
.nodes-domains .pill { margin-left: 4px; }
@media (max-width: 1100px) { .nodes-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nodes-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nodes-assign { flex-basis: 100%; flex-wrap: wrap; }
  .nodes-assign .btn { width: 100%; }
  .nodes-bulk { position: static; }
}
.pill.info { background: #e8f0fe; color: #1d4ed8; }
:root[data-theme="dark"] .pill.info { background: #1e2a44; color: #9ec1ff; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .pill.info { background: #1e2a44; color: #9ec1ff; } }

/* Uptime: Down badge with the reason pop-up (Bilal 2026-11-28) */
.down-pop { display: inline-block; }
.down-pop > summary { cursor: pointer; border-radius: 6px; padding: 2px 4px; text-decoration: underline dotted; text-underline-offset: 3px; }
.down-pop > summary:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.down-pop .down-card { left: 0; right: auto; width: min(300px, 82vw); flex-direction: column; flex-wrap: nowrap; gap: 8px; border-left: 3px solid var(--danger); }
.site-foot .down-pop .down-card { top: auto; bottom: calc(100% + 6px); }
.site-card:has(.down-pop[open]) { overflow: visible; position: relative; z-index: 25; }

/* Website speed: websites without speed settings (admin) */
.speed-scan .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.speed-scan-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.speed-scan-stats > div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.speed-scan-stats strong { font-size: 1.3rem; }
.speed-scan .table-wrap { margin: 10px 0; }
@media (max-width: 640px) { .speed-scan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin Settings → Website speed: coverage card (0.70.30) */
.sp-cover { padding: 20px 22px; margin-bottom: 18px; }
.sp-cover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sp-cover-head h2 { margin: 0; font-size: 1.1rem; }
.sp-cover-head p { margin: 4px 0 0; }
.sp-cover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-cover-actions form { margin: 0; }
.sp-meter { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; }
.sp-meter progress { flex: 1; }
.sp-meter strong { font-size: .95rem; min-width: 3.2em; text-align: right; }
.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-stat { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-stat strong { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sp-stat span { color: var(--ink-3); font-size: .85rem; }
.sp-stat.ok strong { color: var(--ok); }
.sp-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.sp-set { background: var(--hover); border-radius: 10px; padding: 14px 16px; }
.sp-set h3 { margin: 0 0 8px; font-size: .95rem; }
.sp-set h3 .muted { font-weight: 400; }
.sp-set p { margin: 8px 0 0; }
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .82rem; white-space: nowrap; }
.sp-table .pill { white-space: nowrap; }
.sp-table td { vertical-align: middle; }
.sp-domain { font-weight: 600; word-break: break-all; }
.sp-more { margin: 8px 0 0; }
.sp-done { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.sp-auto { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-3); }
.sp-dot { margin-top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.sp-dot.on { background: var(--ok); }
.set-bool { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.set-bool .hint { margin-top: 4px; padding-left: 26px; }
.set-bool + :not(.set-bool) { margin-top: 14px; }
@media (max-width: 760px) {
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-sets { grid-template-columns: 1fr; }
  .sp-cover { padding: 16px; }
}

/* Admin client profile: header card + stat tiles (0.70.31) */
.side a .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cp-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 20px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.cp-who { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1; }
.cp-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--ok); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.cp-id { min-width: 0; }
.cp-id h1 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.45rem; }
.cp-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); font-size: .88rem; }
.cp-meta li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cp-meta li .icon { width: 15px; height: 15px; flex: none; }
.cp-meta a { color: var(--ink-2); overflow-wrap: anywhere; }
.cp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-actions form { margin: 0; }
.cp-more > summary.btn { padding-left: 12px; padding-right: 12px; }
.cp-more .menu-pop { top: 48px; width: 270px; }
.cp-more .menu-pop form { margin: 0; }
.cp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.cp-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.cp-stat:hover { text-decoration: none; border-color: var(--brand); }
.cp-stat .label { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cp-stat strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.cp-stat .note { font-size: .82rem; color: var(--ink-3); }
.cp-stat .note.warn { color: var(--warn-ink); }
.cp-stat.due strong { color: var(--warn-ink); }
@media (max-width: 900px) { .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cp-hero { padding: 16px; }
  .cp-who { align-items: flex-start; }
  .cp-avatar { width: 44px; height: 44px; font-size: 1rem; }
  .cp-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
  .cp-actions > form:first-child { grid-column: 1 / -1; }
  .cp-actions .btn { width: 100%; white-space: nowrap; }
  .cp-more .menu-pop { right: 0; }
}
/* Lists inside cards scroll sideways on phones instead of being cut off */
@media (max-width: 900px) {
  .card:has(> table.list:not(.dns-table)), .card:has(> form > table.list:not(.dns-table)) { overflow-x: auto; }
  .card > table.list:not(.dns-table) td, .card > form > table.list:not(.dns-table) td { white-space: nowrap; }
}

/* Admin Client domains list (0.70.31) */
table.list.cd-table th { padding: 10px 14px; white-space: nowrap; }
table.list.cd-table td { padding: 11px 14px; vertical-align: middle; }
table.list.cd-table tbody tr:hover td { background: var(--hover); }
.cd-table .cd-name { overflow-wrap: anywhere; }
.cd-table .cd-actions { text-align: right; white-space: nowrap; }
.cd-table .cd-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 0 6px; }
.cd-table .cd-actions input[type=date] { width: auto; padding: 5px 8px; }
@media (max-width: 760px) {
  table.list.cd-table thead { display: none; }
  table.list.cd-table, table.list.cd-table tbody { display: block; }
  table.list.cd-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.list.cd-table tr:last-child { border-bottom: 0; }
  table.list.cd-table td { display: block; padding: 0; border: 0; white-space: normal; }
  table.list.cd-table td.hide-sm { display: none; }
  .cd-table td:nth-child(1) { grid-area: 1 / 1; }
  .cd-table td:nth-child(6) { grid-area: 1 / 2; text-align: right; }
  .cd-table td.cd-exp { grid-area: 2 / 1; font-size: .88rem; }
  .cd-table td.cd-actions { grid-area: 2 / 2; align-self: center; }
  .cd-table td.cd-actions:empty { display: none; }
  .cd-table .cd-actions form { margin: 4px 0 0; }
}

/* Admin Products & Plans (0.70.31) */
.pg-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pg-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pg-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }
.pg-title strong { font-size: 1.02rem; }
.pg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-3); font-size: .84rem; margin-top: 2px; }
.pg-sub code { background: var(--chip); padding: 0 6px; border-radius: 5px; font-size: .78rem; }
.pg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pg-actions form { margin: 0; }
table.list.pg-table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.pg-name { font-weight: 700; color: var(--ink); }
.pg-name:hover { color: var(--brand); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pg-chips span { font-size: .78rem; background: var(--chip); color: var(--ink-2); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pg-price strong { font-variant-numeric: tabular-nums; }

/* Admin lists: status cards + search bar above the table (0.70.31) */
.stat-cards.ls-cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-toolbar.ls-toolbar { margin: 0 0 14px; }
.site-toolbar.ls-toolbar .search-box { max-width: 520px; }
@media (max-width: 640px) { .stat-cards.ls-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
table.list.tp-table td { vertical-align: middle; }
.tp-name { font-weight: 700; color: var(--ink); }
.tp-name:hover { color: var(--brand); }
.tp-ch { white-space: nowrap; }
.tp-ch .pill + .pill { margin-left: 4px; }

/* Admin plan page: move the whole plan to another server */
.pm-card { margin-bottom: 16px; }
.pm-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pm-progress progress { flex: 1; }
.pm-retry { margin: 0 0 12px; }
.pm-table td { vertical-align: middle; }
.pm-text { max-width: 460px; color: var(--ink-2); }
.pm-form { border-top: 1px solid var(--line); padding-top: 16px; }
.pm-card .card-body > .pm-form:first-child { border-top: 0; padding-top: 0; }
.pm-title { font-size: 1rem; margin: 0 0 8px; }
.pm-steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.pm-form select { width: 100%; }
@media (max-width: 560px) {
  .pm-progress strong { min-width: 40px; text-align: right; }
}

/* Admin client profile: move chosen pay-as-you-go websites to another server */
table.list th.dt-pick, table.list td.dt-pick { width: 34px; padding-right: 0; }
.pm-card .card-head strong { display: inline-flex; align-items: center; gap: 8px; }
.wm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 12px; }

/* Admin service page (hero + tiles like the client profile) */
.sv-avatar .icon { width: 26px; height: 26px; }
.sv-moving { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-note { margin: 10px 0 0; }
.sv-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.cp-stat strong.sv-server { font-size: 1.05rem; line-height: 1.9; overflow-wrap: anywhere; }
@media (max-width: 760px) { .cp-stat strong.sv-server { font-size: .9rem; line-height: 1.5; } }
.sv-callout { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); }
.sv-callout form { margin: 0; }
/* Client profile → Products & services: tick websites, move them */
.wm-bulk { border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.wm-panel { width: 100%; padding-top: 4px; }
.wm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.wm-grid .field { margin: 0; }
.wm-grid select { width: 100%; }
.wm-grid + p { margin-top: 10px; }
.sv-table .sv-name { font-weight: 600; }
@media (max-width: 760px) { .wm-grid { grid-template-columns: 1fr; } .wm-grid .btn { width: 100%; } }

/* Speed: gauge on the Resources card, report page, dashboard pill (Bilal 2026-11-29) */
a.speed-gauge { color: inherit; text-decoration: none; border-radius: 14px; padding: 4px 0 8px; transition: background .15s; }
a.speed-gauge:hover, a.speed-gauge:focus-visible { background: var(--hover); }
a.speed-gauge .g-detail { color: var(--brand); }
.sp-good .g-val { stroke: var(--brand); }
.sp-ok .g-val { stroke: var(--accent); }
.sp-poor .g-val { stroke: var(--danger); }
.sp-none .g-val { stroke: var(--line); }
.sp-pill { display: inline-block; min-width: 34px; text-align: center; padding: 1px 8px; border-radius: 999px; font-weight: 600; font-size: .82rem; font-variant-numeric: tabular-nums; background: var(--chip); color: var(--ink-2); }
.sp-pill.sp-good { background: var(--brand-tint); color: var(--brand-ink); }
.sp-pill.sp-ok { background: var(--warn-bg); color: var(--warn-ink); }
.sp-pill.sp-poor { background: var(--danger-tint); color: var(--danger); }
a.sp-pill { text-decoration: none; }
.tag.speed { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.tag.speed svg { width: 12px; height: 12px; }
.tag.speed.sp-good { background: var(--brand-tint); color: var(--brand-ink); }
.tag.speed.sp-ok { background: var(--warn-bg); color: var(--warn-ink); }
.tag.speed.sp-poor { background: var(--danger-tint); color: var(--danger); }
.sr-hero { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.sr-ring { position: relative; width: 150px; height: 150px; }
.sr-ring svg { width: 150px; height: 150px; }
.sr-ring .g-track { fill: none; stroke: var(--line-soft); stroke-width: 10; }
.sr-ring .g-val { fill: none; stroke-width: 10; stroke-linecap: round; }
.sr-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sr-ring-c strong { font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sr-ring-c span { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.sr-change { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 0 0 12px; }
.sr-change svg { width: 18px; height: 18px; }
.sr-change.up { color: var(--ok); }
.sr-change.down { color: var(--danger); }
.sr-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sr-facts > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.sr-facts strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.sr-running { border-top: 1px solid var(--line-soft); }
.sr-compare td strong { font-variant-numeric: tabular-nums; }
.sr-delta { margin-left: 8px; font-size: .78rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.sr-delta.up { color: var(--ok); background: var(--brand-tint); }
.sr-delta.down { color: var(--danger); background: var(--danger-tint); }
.sr-band.good { fill: var(--brand-tint); opacity: .55; }
.sr-band.ok { fill: var(--warn-bg); opacity: .45; }
.sr-band.poor { fill: var(--danger-tint); opacity: .45; }
.sr-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.sr-dot { stroke: var(--card); stroke-width: 1.5; }
.sr-line-score, .sr-line-ttfb { stroke: var(--brand); }
.sr-dot.sr-line-score, .sr-dot.sr-line-ttfb { fill: var(--brand); }
.sr-line-cached { stroke: var(--accent); }
.sr-dot.sr-line-cached { fill: var(--accent); }
.sr-line-lcp { stroke: #3b6fb6; }
.sr-dot.sr-line-lcp { fill: #3b6fb6; }
.sr-chart-wrap { overflow-x: auto; }
.sr-chart .sr-yaxis { font-size: 13px; }
.sr-chart .sr-xaxis { font-size: 14px; }
.sr-chart .sr-line { stroke-width: 2.6; }
.sr-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; background: var(--brand); }
.sr-key.sr-line-cached { background: var(--accent); }
@media (max-width: 760px) {
    .sr-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .sr-change { justify-content: center; }
    .sr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; width: 100%; }
    .sr-chart { min-width: 680px; }
    .sr-delta { display: table; margin: 2px 0 0; }
    table.list.sr-compare th, table.list.sr-compare td { white-space: normal; padding-left: 8px; padding-right: 8px; }
    table.list.sr-compare td:first-child { min-width: 0; }
}

/* One website suspended by our team (abuse): admin service page + client pages */
.pill.bad { background: var(--danger-tint); color: var(--danger); }
.site-susp-note { color: var(--danger); margin-top: 4px; }
.site-susp-cell { white-space: nowrap; }
.site-susp-cell form, .site-susp-cell details { display: inline-block; margin-left: 6px; vertical-align: middle; }
.site-susp .pop { text-align: left; white-space: normal; width: 320px; }
.site-susp .pop input[type=text] { width: 100%; margin: 4px 0 10px; }
.site-susp .pop .check { margin-bottom: 10px; }
@media (max-width: 760px) {
  table.list.sv-sites, table.list.sv-sites tbody, table.list.sv-sites tr, table.list.sv-sites td { display: block; width: 100%; }
  .card > table.list.sv-sites:not(.dns-table) td { border: 0; padding: 4px 14px; white-space: normal; }
  table.list.sv-sites tr { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
  table.list.sv-sites td.site-susp-cell { text-align: left; }
  .site-susp-cell form:first-of-type, .site-susp-cell details { margin-left: 4px; }
  .site-susp .pop { right: auto; left: -60px; width: min(300px, 82vw); }
}
.site-suspended-banner { border-color: var(--danger-line); background: var(--danger-tint); color: var(--ink); }

/* Admin node page (0.71.1): hero, live gauges, tiles, machine, disks, money, busiest */
.pill.info { background: var(--chip); color: var(--ink-2); }
.node-hero h1 .pill { font-size: .74rem; font-weight: 600; }
.node-live .gauges { padding-top: 14px; }
.cp-stats.node-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cp-stats.node-stats .cp-stat:not(a):hover { border-color: var(--line); }
.cp-stats.node-stats .note .pill { font-size: .74rem; }
.node-busy-tile strong.sv-server { font-size: 1rem; line-height: 1.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; align-items: start; }
.node-grid > .card { margin: 0; min-width: 0; }
.node-disks-list { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: .88rem; }
.node-disks-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dh-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.dh-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.dh-row.dh-warn { border-color: var(--accent); }
.dh-row.dh-bad { border-color: var(--danger); background: var(--danger-tint); }
.dh-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; min-width: 0; }
.dh-top strong { overflow-wrap: anywhere; }
.dh-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dh-bar .dh-pct { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.dh-warn progress.bar::-webkit-progress-value { background: var(--accent); }
.dh-warn progress.bar::-moz-progress-bar { background: var(--accent); }
.dh-bad progress.bar::-webkit-progress-value { background: var(--danger); }
.dh-bad progress.bar::-moz-progress-bar { background: var(--danger); }
.dh-notes { color: var(--warn-ink); margin-top: 4px; }
.dh-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-foot form { margin: 0; }
.nf-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nf-sum div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--paper); min-width: 0; }
.nf-sum span { font-size: .78rem; color: var(--ink-3); }
.nf-sum strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nf-sum .nf-profit { color: var(--ok); }
.nf-sum .nf-profit.neg { color: var(--danger); }
.nf-top { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.nf-top li { display: flex; justify-content: space-between; gap: 10px; }
.nf-top li span { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.node-top .card-head a { font-weight: 600; }
.node-top-table td { vertical-align: middle; }
.node-top-table td:first-child { overflow-wrap: anywhere; }
.node-top-table .pill { margin-left: 6px; }
/* Busiest websites page */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); margin-bottom: 4px; }
.back-link .icon { width: 14px; height: 14px; }
.busy-head { flex-wrap: wrap; gap: 10px; }
.busy-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.busy-search input { width: 240px; padding: 7px 10px; }
.busy-tools .btn .icon { width: 15px; height: 15px; }
.busy-tools [aria-pressed="true"] { border-color: var(--accent); color: var(--warn-ink); }
.busy-updated { min-width: 92px; }
.busy-bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); margin: 0; }
.busy-bulkbar select { padding: 6px 8px; width: auto; }
.busy-bulkbar .check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.busy-full th { white-space: nowrap; }
.busy-full .busy-cf { min-width: 170px; }
.busy-full tr[hidden] { display: none; }
@media (max-width: 1100px) { .cp-stats.node-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .node-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cp-stats.node-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .nf-sum { grid-template-columns: 1fr; }
  .busy-search, .busy-search input { width: 100%; }
  .busy-tools { width: 100%; }
  .node-hero .cp-actions { grid-template-columns: 1fr 1fr; }
  .node-hero .cp-actions > a:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .card > table.list.node-top-table:not(.dns-table) td, .card > table.list.node-top-table th { white-space: normal; }
}
@media (max-width: 760px) {
  .cp-stats.node-stats .node-busy-tile { grid-column: 1 / -1; }
  .cp-stats.node-stats .cp-stat strong { font-size: 1.2rem; }
  .node-top-table .pill { display: table; margin: 4px 0 0; }
}
@media (max-width: 560px) {
  .node-hero .cp-actions { grid-template-columns: 1fr; }
}
.busy-full td.num, .busy-full .pill { white-space: nowrap; }
.busy-full td:nth-child(2) { min-width: 200px; }
.busy-full .btn-row { flex-wrap: wrap; }
.page-head > div.busy-title { display: block; }

/* Admin → Website status (Bilal 2026-11-29) */
.ut-server { display: flex; align-items: center; gap: 8px; }
.ut-server select { min-width: 180px; }
.ut-cards { margin-top: 0; }
.ut-card { position: relative; min-width: 0; }
.ut-card .stat-card { height: 100%; padding-right: 34px; }
.ut-refresh { position: absolute; top: 6px; right: 6px; margin: 0; }
.ut-refresh .icon-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.ut-refresh .icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.ut-refresh .icon-btn svg { width: 15px; height: 15px; }
.ut-task { margin-bottom: 12px; border-left: 3px solid var(--brand); }
.ut-task.done { border-left-color: var(--line); }
.ut-task-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ut-task-head svg { width: 16px; height: 16px; vertical-align: -3px; }
.ut-bad { color: var(--danger); font-weight: 600; }
.ut-reason { color: var(--danger); max-width: 380px; }
.ut-table td { vertical-align: top; }
.ut-table .num form { margin: 0; }
.ut-search { margin: 0; }
.ut-search .search-box { margin: 0; min-width: 240px; }
@media (max-width: 760px) {
  .page-head .ut-server { width: 100%; }
  .ut-server select { flex: 1; min-width: 0; }
  .ut-search, .ut-search .search-box { width: 100%; min-width: 0; }
  .ut-reason { max-width: none; }
  table.list.ut-table { display: table; table-layout: fixed; width: 100%; }
  table.list.ut-table td .small { min-width: 0; }
  .ut-table th:first-child, .ut-table td:first-child { width: 46%; word-break: break-word; }
  .ut-table th:last-child, .ut-table td:last-child { width: 52px; padding-left: 4px; }
  .ut-table td, .ut-table th { padding-left: 10px; padding-right: 6px; }
}
.ut-search .search-box { display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.ut-search .search-box .icon { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.ut-search .search-box input { border: 0; box-shadow: none; padding: 8px 0; background: transparent; width: 100%; font: inherit; color: inherit; outline: none; }

/* Node page (0.75.0): 24-hour load graph + quiet hours, service cards, busy tile opens the list */
.node-load .card-head { flex-wrap: wrap; gap: 6px 12px; }
.nl-wrap { overflow-x: auto; }
.nl-chart { width: 100%; min-width: 560px; height: auto; display: block; }
.nl-grid { stroke: var(--line-soft); stroke-width: 1; }
.nl-axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.nl-quiet { fill: var(--brand-tint); }
.nl-hit { fill: transparent; }
.nl-hour:hover .nl-hit { fill: var(--chip); opacity: .6; }
.nl-bar { fill: var(--brand); opacity: .78; }
.nl-bar.warm { fill: var(--accent); }
.nl-bar.hot { fill: var(--danger); }
.nl-max { stroke: var(--ink-2); stroke-width: 2; }
.nl-load { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.nl-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; color: var(--ink-2); }
.nl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.nl-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.nl-key.bar { background: var(--brand); opacity: .78; }
.nl-key.max { height: 2px; background: var(--ink-2); }
.nl-key.load { height: 3px; background: var(--accent); border-radius: 2px; }
.nl-key.quiet { background: var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.nl-advice { margin-top: 12px; }
.nl-quiet-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--brand-tint); }
.nl-quiet-box .icon { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
button.cp-stat { font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.cp-stat[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
/* Node page: services on this server, grouped cards (Bilal 2026-12-02, 0.89.19) */
.node-svc { --svc-c: var(--brand); }
.svc-group { padding: 14px 16px 4px; }
.svc-group + .svc-group { border-top: 1px solid var(--line); }
.svc-g-web { --svc-c: #1f7a4d; } .svc-g-mail { --svc-c: #2f6fb3; } .svc-g-sys { --svc-c: #b5651d; } .svc-g-veta { --svc-c: #6b4fb3; } .svc-g-other { --svc-c: var(--ink-3); }
.svc-ghead { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .95rem; font-weight: 650; }
.svc-gicon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--svc-c); background: color-mix(in srgb, var(--svc-c) 12%, transparent); }
.svc-gicon .icon { width: 16px; height: 16px; }
.svc-gcount { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--ink-3); padding: 3px 10px; border-radius: 999px; background: var(--hover); }
.svc-gcount.ok { color: var(--ok); background: var(--brand-tint); }
.svc-gcount.bad { color: var(--danger); background: var(--danger-tint); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0 0 14px; }
.svc-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--card); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: color-mix(in srgb, var(--svc-c) 35%, var(--line)); box-shadow: 0 4px 14px rgba(16, 24, 40, .07); }
.svc-card.svc-failed { border-color: var(--danger); background: var(--danger-tint); }
.svc-card.svc-inactive { background: var(--paper); }
.svc-top { display: flex; align-items: flex-start; gap: 11px; }
.svc-icon { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--svc-c); background: color-mix(in srgb, var(--svc-c) 11%, transparent); }
.svc-icon .icon { width: 19px; height: 19px; }
.svc-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.svc-name strong { font-size: .93rem; line-height: 1.3; overflow-wrap: anywhere; }
.svc-name .mono { font-size: .74rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.svc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.svc-t-ok .svc-state { background: var(--brand-tint); color: var(--ok); }
.svc-t-ok .svc-dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.svc-t-warn .svc-state { background: var(--warn-bg, #fff3dc); color: var(--warn-ink, #8a5a00); }
.svc-t-warn .svc-dot { background: var(--warn-ink, #c98a14); }
.svc-t-no .svc-state { background: var(--danger-tint); color: var(--danger); }
.svc-t-no .svc-dot { background: var(--danger); }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-2); padding: 3px 9px; border-radius: 7px; background: var(--hover); }
.svc-chip .icon { width: 13px; height: 13px; color: var(--ink-3); }
.svc-chip-empty { color: var(--ink-3); }
.svc-err { overflow-wrap: anywhere; }
.svc-done { display: inline-flex; align-items: center; gap: 5px; }
.svc-done .icon { width: 13px; height: 13px; color: var(--ok); }
.svc-act { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.svc-act form { margin: 0; }
.svc-act .btn { padding: 5px 11px; }
.svc-act .btn .icon { width: 14px; height: 14px; }
.svc-alert { margin: 12px 16px 0; }
.svc-foot { margin: 0 16px 14px; }
@media (max-width: 560px) {
  .svc-group { padding: 12px 12px 2px; }
  .svc-grid { grid-template-columns: 1fr; gap: 10px; padding-bottom: 12px; }
  .svc-card { padding: 12px; }
  .svc-icon { width: 34px; height: 34px; }
}

/* Node page (0.76.0): Disks & storage — extra disks (block storage), imports / backups disk, accounts on a disk */
.nst-card { margin-bottom: 18px; }
.nst-intro { margin: 0 0 12px; max-width: 72ch; }
.nst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nst-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.nst-row.nst-blank { border-style: dashed; border-color: var(--brand); }
.nst-row.nst-ours { border-color: var(--ok-line); background: var(--brand-tint); }
.nst-row.nst-missing { border-color: var(--danger); background: var(--danger-tint); }
.nst-main { min-width: 0; flex: 1; display: grid; gap: 4px; }
.nst-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nst-name strong { font-variant-numeric: tabular-nums; }
.nst-uses { color: var(--ink-2); }
.nst-note { color: var(--warn-ink); overflow-wrap: anywhere; }
.nst-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nst-bar progress.bar { flex: 1 1 160px; max-width: 320px; }
.nst-act { flex: none; display: flex; gap: 6px; align-items: flex-start; }
.nst-act form { margin: 0; }
.nst-pop { position: relative; }
.nst-pop > summary { list-style: none; }
.nst-pop > summary::-webkit-details-marker { display: none; }
.nst-pop[open] > summary { box-shadow: 0 0 0 3px var(--brand-tint); }
.nst-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(340px, 86vw); padding: 14px; display: grid; gap: 8px;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.nst-form input { width: 100%; }
.nst-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.nst-id { font-size: .8rem; color: var(--ink-3); }
.nst-settings > .btn { justify-self: start; }
.nst-set { display: grid; gap: 4px; min-width: 0; }
.nst-set label { font-weight: 600; font-size: .9rem; }
.nst-moves { margin-top: 14px; display: grid; gap: 6px; }
.nst-move { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.nst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nst-chip { font-size: .82rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); text-decoration: none; }
.nst-chip:hover { border-color: var(--brand); color: var(--brand); }
.sv-disk { display: grid; gap: 10px; }
.sv-disk-form { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sv-disk-form .row2 { display: grid; gap: 8px; }
.sv-disk-form label.small { display: block; margin-bottom: 4px; }
.sv-disk-form .check { margin-bottom: 0; }
.sd-now { display: inline-flex; align-items: center; gap: 6px; }
.sd-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); }
.sd-mail-dom { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sd-mail-dom svg { width: 14px; height: 14px; color: var(--ink-3); }
@media (max-width: 700px) {
  .nst-row { flex-direction: column; }
  .nst-act { width: 100%; }
  .nst-form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .nst-settings { grid-template-columns: 1fr; }
}

/* Admin → Logs (Bilal 2026-11-29): system logs (billing) + node logs + configure */
.lg-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lg-switch a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.lg-switch a:hover { border-color: var(--ink-3); text-decoration: none; }
.lg-switch a.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lg-switch a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lg-switch .small { color: var(--ink-3); }
.lg-switch-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); }
.lg-switch a.on .lg-switch-ic { background: var(--brand-tint); color: var(--brand); }
.lg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lg-stat { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); }
a.lg-stat:hover { border-color: var(--ink-3); text-decoration: none; }
.lg-stat-num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lg-stat-label { font-size: .82rem; color: var(--ink-3); }
.lg-stat.bad .lg-stat-num { color: var(--danger); }
.lg-stat.warn .lg-stat-num { color: var(--warn-ink); }
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.lg-rail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.lg-rail a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.lg-rail a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.lg-rail a.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.lg-rail a.off { color: var(--ink-3); }
.lg-rail a .icon { flex: none; width: 17px; height: 17px; }
.lg-rail-node a { justify-content: space-between; gap: 8px; padding: 6px 12px; }
.lg-rail-node a > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-rail-group { font-size: .74rem; font-weight: 700; color: var(--ink-3); padding: 12px 12px 4px; }
.lg-rail-group:first-child { padding-top: 0; }
.lg-size { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-main { min-width: 0; overflow: hidden; }
.lg-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lg-filters select { width: auto; max-width: 100%; }
.lg-filters .search-box { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 0; }
.lg-filters .search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.lg-filters .search-box .icon { color: var(--ink-3); flex: none; }
.lg-filters .search-box input { border: 0; box-shadow: none; padding: 8px 0; background: transparent; width: 100%; outline: none; }
.lg-date { display: inline-flex; align-items: center; gap: 6px; }
.lg-date input { width: auto; }
.lg-check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.lg-title { margin-right: auto; font-size: .95rem; }
.lg-empty, .lg-wait { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.lg-empty .icon, .lg-wait .icon { width: 28px; height: 28px; }
.lg-empty p, .lg-wait p { margin: 8px 0 0; }
.lg-wait .icon { animation: tasks-spin 1.2s linear infinite; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .lg-wait .icon { animation: none; } }
.lg-note { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.lg-feed { list-style: none; margin: 0; padding: 0; }
.lg-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.lg-item:hover { background: var(--hover); }
.lg-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--chip); color: var(--ink-2); }
.lg-ava .icon { width: 16px; height: 16px; }
.lg-ava.ava-admin { background: var(--brand-tint); color: var(--brand-ink); }
.lg-ava.ava-client { background: var(--warn-bg); color: var(--warn-ink); }
.lg-ava.ava-ai, .lg-ava.ava-wa, .lg-ava.ava-wahero { background: #e8f0fe; color: #1d4ed8; }
.lg-body { min-width: 0; }
.lg-line { line-height: 1.45; overflow-wrap: anywhere; }
.lg-who { font-weight: 600; color: var(--ink); }
a.lg-who { color: var(--ink); }
.lg-what { color: var(--ink-2); }
.lg-subj { font-weight: 600; }
span.lg-subj { color: var(--ink); }
.lg-as { font-size: .85rem; color: var(--warn-ink); margin-left: 4px; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; font-size: .8rem; color: var(--ink-3); }
.lg-area { padding: 1px 8px; border-radius: 99px; background: var(--chip); color: var(--ink-2); }
.lg-code { font-size: .78rem; color: var(--ink-3); }
.lg-kv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lg-kv span { font-size: .8rem; padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-kv b { font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.lg-more { margin-top: 6px; font-size: .84rem; }
.lg-more summary { cursor: pointer; color: var(--brand); width: fit-content; }
.lg-more pre { margin: 8px 0 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font: .8rem/1.5 var(--mono); max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-err { color: var(--danger); overflow-wrap: anywhere; }
.lg-warn-ink { color: var(--warn-ink); }
.lg-table td { vertical-align: top; }
.lg-table .nowrap { white-space: nowrap; }
.lg-chan { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-3); }
.lg-chan .icon { width: 13px; height: 13px; }
.lg-ua { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-errors { list-style: none; margin: 0; padding: 0; }
.lg-errrow { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent; }
.lg-errrow.bad { border-left-color: var(--danger); }
.lg-errrow.warn { border-left-color: var(--accent); }
.lg-errhead { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.lg-lvl { font-weight: 700; color: var(--ink-2); }
.lg-errrow.bad .lg-lvl { color: var(--danger); }
.lg-errrow.warn .lg-lvl { color: var(--warn-ink); }
.lg-errmsg { margin-top: 2px; font: .86rem/1.5 var(--mono); overflow-wrap: anywhere; }
.lg-nodebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; margin-bottom: 16px; }
.lg-server { display: flex; align-items: center; gap: 8px; }
.lg-server select { min-width: 180px; }
.lg-disk { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); margin-right: auto; }
.lg-disk .icon { width: 15px; height: 15px; vertical-align: -3px; }
.lg-termhead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 14px; font-size: .8rem; color: var(--ink-2); background: var(--paper); border-bottom: 1px solid var(--line); }
.lg-termhead code { overflow-wrap: anywhere; }
.lg-term { margin: 0; padding: 10px 0; list-style: none; counter-reset: ln; background: #101814; color: #d7e2dc; font: .8rem/1.55 var(--mono); max-height: 68vh; overflow: auto; }
.lg-term li { counter-increment: ln; display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 0 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-term li::before { content: counter(ln); color: #5d6f66; text-align: right; padding-right: 14px; user-select: none; }
.lg-term li:hover { background: #18241e; }
.lg-term li.bad { color: #ff9f97; background: rgba(255, 95, 82, .07); }
.lg-term li.warn { color: #f4c77a; }
.lg-term:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.lg-cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lg-cfg .card-head { gap: 12px; flex-wrap: wrap; }
.lg-cfg .card-head strong { display: inline-flex; align-items: center; gap: 8px; }
.lg-cfg-rows { padding: 4px 18px; }
.lg-cfg-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.lg-cfg-row:last-child { border-bottom: 0; }
.lg-cfg-row select { width: 100%; }
.lg-cfg-now { color: var(--ink-2); margin-top: 2px; }
.lg-cfg-note { border-top: 1px solid var(--line-soft); }
.lg-mb { display: flex; align-items: center; gap: 8px; }
.lg-mb input { width: 100%; }
.lg-cfg-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.lg-cfg-tools { margin-top: 10px; }
@media (max-width: 980px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-rail { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: thin; }
  .lg-rail a { white-space: nowrap; border: 1px solid var(--line); background: var(--card); }
  .lg-rail-group { display: none; }
  .lg-rail-node a .lg-size { margin-left: 6px; }
  .lg-cfg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lg-switch { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lg-switch a { padding: 10px 12px; }
  .lg-switch-ic { width: 34px; height: 34px; }
  .lg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lg-filters > select, .lg-filters .lg-date, .lg-filters .lg-date input { flex: 1 1 140px; }
  .lg-title { flex: 1 0 100%; }
  .lg-server, .lg-server label, .lg-server select { width: 100%; min-width: 0; }
  .lg-cfg-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lg-term li { grid-template-columns: 38px minmax(0, 1fr); }
  .lg-term li::before { padding-right: 8px; }
}

/* Backups → Resources (Bilal 2026-11-29) */
.br-scope { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.br-scope select { width: auto; min-width: 200px; margin: 0; }
.br-prio { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.br-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.br-prio legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.br-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.br-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.br-opt-in { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 400; }
.br-opt-in strong { font-size: .95rem; }
.br-opt input:checked + .br-opt-in { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.br-opt.urgent input:checked + .br-opt-in { border-color: var(--accent, #e8772e); box-shadow: inset 0 0 0 1px var(--accent, #e8772e); background: color-mix(in srgb, var(--accent, #e8772e) 7%, var(--card)); }
.br-opt input:focus-visible + .br-opt-in { outline: 2px solid var(--brand); outline-offset: 2px; }
.br-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 900px) { .br-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .br-opts { grid-template-columns: 1fr; }
  .br-scope { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .br-scope select { flex: 1; min-width: 0; }
}

/* Admin Backups page (Bilal 2026-11-29) */
.bk-stats { margin-bottom: 14px; }
.bk-res { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.bk-res:hover { text-decoration: none; border-color: var(--brand); }
.bk-res-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
.bk-res-icon .icon { width: 18px; height: 18px; }
.bk-res-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-res-text .pill { margin-right: 4px; }
.bk-res-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--brand); white-space: nowrap; }
.bk-res-go .icon { width: 15px; height: 15px; }
.bk-jobs td { vertical-align: top; }
.bk-jobs tr.off td { opacity: .65; }
.bk-job { min-width: 280px; }
.bk-job-in { display: flex; gap: 12px; align-items: flex-start; }
.bk-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
.bk-ico.local { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.bk-ico .icon { width: 17px; height: 17px; }
.bk-job-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-job-name .pill { align-self: flex-start; }
.bk-res-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bk-fails { list-style: none; margin: 0; padding: 0; }
.bk-fails li { padding: 11px 16px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.bk-fails li:first-child { border-top: 0; }
.bk-fails li .break { flex-basis: 100%; }
.bk-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.bk-ok .icon { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .bk-jobs thead { display: none; }
  .bk-jobs, .bk-jobs tbody { display: block; width: 100%; }
  .bk-jobs td { display: block; }
  .bk-jobs tr { padding: 12px 16px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .bk-jobs tr:first-child { border-top: 0; }
  table.list.bk-jobs td, .card > table.list.bk-jobs td { padding: 0; border: 0; width: auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  table.list.bk-jobs td .small { min-width: 0; }
  .card > table.list.bk-jobs { min-width: 0; }
  .bk-jobs td.bk-job { min-width: 0; }
  .bk-jobs td.bk-job, .bk-jobs td.actions-cell { grid-column: 1 / -1; }
  .bk-jobs td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 2px; }
  .bk-jobs td.actions-cell { text-align: left; }
}
@media (max-width: 560px) {
  .bk-res { flex-wrap: wrap; }
  .bk-res-go { margin-left: 50px; }
}

/* Backups: live network speed (Bilal 2026-11-29) */
.bk-speed{font-variant-numeric:tabular-nums;font-weight:600;color:var(--brand);white-space:nowrap}
.bk-speed:empty{display:none}

/* Website → Data center: move wizard (Bilal 2026-11-29) */
.dcw-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.dcw-now { display: flex; align-items: center; gap: 12px; }
.dcw-now > div { display: flex; flex-direction: column; line-height: 1.3; }
.dcw-now strong { font-size: 1.05rem; }
.dcw-pin { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.dcw-pin svg { width: 20px; height: 20px; }
.dcw-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-size: .85rem; color: var(--ink-3); }
.dcw-steps li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.dcw-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line-soft); font-weight: 600; font-size: .78rem; }
.dcw-steps li.now { color: var(--ink); border-color: var(--brand); }
.dcw-steps li.now span { background: var(--brand); color: #fff; }
.dcw-steps li.done { color: var(--ink-2); }
.dcw-steps li.done span { background: var(--brand-tint-2); color: var(--brand); }
.dcw-title { margin: 4px 0 4px; font-size: 1.1rem; }
.dcw-back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; margin-bottom: 6px; }
.dcw-back svg { width: 14px; height: 14px; }
.dcw-back:hover { color: var(--brand); }
.dcw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.dcw-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.dcw-card:hover, a.dcw-card:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
.dcw-card.off { opacity: .6; cursor: not-allowed; background: var(--line-soft); }
.dcw-code { width: 44px; height: 44px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .04em; background: var(--line-soft); color: var(--ink-2); }
a.dcw-card .dcw-code { background: var(--brand-tint); color: var(--brand); }
.dcw-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dcw-body strong { font-size: 1rem; }
.dcw-price { font-weight: 600; margin-top: 2px; }
.dcw-go { color: var(--ink-3); flex: none; display: inline-flex; }
.dcw-go svg { width: 18px; height: 18px; }
a.dcw-card:hover .dcw-go { color: var(--brand); }
.dcw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); margin-right: 6px; vertical-align: 1px; }
.dcw-dot.ok { background: var(--brand); }
.dcw-dot.here { background: var(--accent); }
.dcw-diff { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .78rem; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.dcw-diff.down { background: var(--brand-tint); color: var(--brand); }
.dcw-diff.up { background: var(--warn-bg); color: var(--warn-ink); }
.dcw-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 14px 0; }
.dcw-route > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.dcw-route > div.to { border-color: var(--brand); background: var(--brand-tint); }
.dcw-route strong { font-size: 1.05rem; }
.dcw-arrow { color: var(--brand); display: inline-flex; }
.dcw-arrow svg { width: 22px; height: 22px; }
.dcw-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 4px 0 16px; }
.dcw-facts > div { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--line); }
.dcw-confirm { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.dcw-confirm .check { align-items: flex-start; }
.dcw-confirm .check span { line-height: 1.4; }
.dcw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .dcw-head { padding: 14px; }
    .dcw-steps li { padding-right: 8px; font-size: .78rem; }
    .dcw-route { grid-template-columns: 1fr; }
    .dcw-arrow { transform: rotate(90deg); justify-self: center; }
    .dcw-facts { grid-template-columns: 1fr; }
    .dcw-grid { grid-template-columns: 1fr; }
}
.dcw + .card { margin-top: 16px; }
.dcw-body .small { line-height: 1.45; }

/* Top bar: + / notifications / account menu, website Advanced tiles (Bilal 2026-11-29) */
.topbar .icon-btn.top-plus { background: var(--brand); border-color: var(--brand); color: #fff; }
.topbar .icon-btn.top-plus:hover { background: var(--brand-ink); color: #fff; }
.topbar .icon-btn.top-plus svg { width: 19px; height: 19px; stroke-width: 2.4; }
.notes-btn, .acct-btn { position: relative; }
.acct-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.menu-pop .menu-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adv-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 124px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: center; transition: border-color .15s, transform .15s; }
.adv-tile:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.adv-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.adv-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.adv-ic svg { width: 22px; height: 22px; }
.adv-tile:hover .adv-ic { background: var(--brand); color: #fff; }
.adv-tile strong { font-size: .92rem; font-weight: 600; line-height: 1.25; }
.adv-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.adv-dot.ok { background: var(--brand); } .adv-dot.warn { background: var(--accent); } .adv-dot.bad { background: var(--danger); }
@media (max-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .adv-tile { min-height: 108px; padding: 14px 8px; } .adv-ic { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .adv-tile { transition: none; } .adv-tile:hover { transform: none; } }

/* Backups: button tabs + Accounts page with bulk restore (Bilal 2026-11-29) */
.bk-tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 5px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; }
.bk-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab .icon { width: 16px; height: 16px; color: var(--ink-3); }
.bk-tab:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.bk-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bk-tab.on { background: var(--brand); color: #fff; }
.bk-tab.on .icon { color: #fff; }
.bk-tab-n { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #1d1406; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 760px) {
  .bk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bk-tabs::-webkit-scrollbar { display: none; }
  .bk-tab { padding: 8px 11px; font-size: .84rem; }
}
.stat-cards.bka-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stat-cards.bka-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stat-cards.bka-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bka-toolbar .bka-total { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bka-toolbar .bka-total .icon { width: 15px; height: 15px; }
.bka-bulk { display: block; padding: 12px 16px; }
.bka-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bka-bar .btn { margin-left: auto; }
.bka-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 14px; }
.bka-panel-head p { margin-top: 4px; }
.bka-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bka-grid .field select { width: 100%; }
.bka-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bka-switch { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.bka-switch:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.bka-switch input { margin-top: 3px; accent-color: var(--brand); }
.bka-switch strong { display: block; font-size: .92rem; }
.bka-switch small { display: block; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.bka-confirm { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bka-confirm .field { width: 220px; }
.bka-node { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.bka-node .icon { width: 15px; height: 15px; color: var(--ink-3); }
.bka-node.down, .bka-node.down .icon { color: var(--danger); }
.bka-unit { display: none; }
.bka-busy { display: inline-flex; color: var(--brand); }
.bka-busy .icon { width: 18px; height: 18px; animation: tasks-spin 1.2s linear infinite; }
@media (max-width: 900px) { .bka-grid, .bka-switches { grid-template-columns: 1fr; } .bka-toolbar .bka-total { margin-left: 0; } }
@media (max-width: 760px) {
  table.list.dns-table.bka-table tr { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .bka-table .dt-domain { grid-area: 1 / 2 / 2 / 3; }
  .bka-table .bka-pts { grid-area: 1 / 3; text-align: right; }
  .bka-unit { display: inline; }
  .bka-table .bka-srv { grid-area: 2 / 2; }
  .bka-table .dt-act { grid-area: 2 / 3; }
  .bka-confirm .field { width: 100%; }
  .bka-confirm .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  table.list.rc-table thead { display: none; }
  table.list.rc-table, table.list.rc-table tbody, table.list.rc-table tr, table.list.rc-table td { display: block; }
  table.list.rc-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.list.rc-table td { padding: 0; border: 0; }
  table.list.rc-table td + td { margin-top: 8px; }
  table.list.rc-table td.actions-cell { text-align: left; }
  .dash-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Backups → Deleted accounts: bulk restore into a plan (Bilal 2026-11-29) */
.bkd-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; border-bottom: 1px solid var(--line-soft); }
.bkd-date { padding: 10px 14px 0 8px; }
.bkd-date select { font-size: 13px; padding: 6px 28px 6px 8px; min-width: 230px; }
@media (max-width: 640px) { .bkd-row { grid-template-columns: 40px minmax(0, 1fr); } .bkd-date { grid-column: 2; padding: 0 12px 10px 4px; } .bkd-date select { min-width: 0; width: 100%; } }
.bkd-row:last-child { border-bottom: 0; }
.bkd-row > .bk-item { border-bottom: 0; }
.bkd-row > .bk-item > summary { padding-left: 4px; }
.bkd-pick { display: flex; justify-content: center; padding-top: 15px; }
.bkd-task { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; color: inherit; text-decoration: none; }
.bkd-task:hover { border-color: var(--brand); }
.bkd-task-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft, rgba(22,163,74,.12)); color: var(--brand); flex: none; }
.bkd-task.running .bkd-task-icon .icon { animation: tasks-spin 1.6s linear infinite; }
.bkd-task-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bkd-task-bar { display: flex; align-items: center; gap: 8px; width: 200px; flex: none; }
.bkd-task-bar progress { flex: 1; }
.br-items td .bar { width: 100%; max-width: 160px; }
.br-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.br-head .bar { flex: 1; min-width: 160px; }
@media (max-width: 640px) {
  .bkd-task { flex-wrap: wrap; }
  .bkd-task-bar { width: 100%; }
}
@media (max-width: 640px) {
  table.br-items thead { display: none; }
  table.br-items, table.br-items tbody, table.br-items tr, table.br-items td { display: block; width: 100%; }
  table.br-items tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  table.br-items td { padding: 0; border: 0; }
  table.br-items td.br-state { grid-column: 2; grid-row: 1; text-align: right; }
  table.br-items td.dt-domain { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
  table.br-items td.actions-cell, table.br-items td.hide-sm { grid-column: 1 / -1; }
  table.br-items td.br-from { display: none; }
  table.br-items td.actions-cell:empty { display: none; }
}

/* Domain page + domain cards on the dashboard (Bilal 2026-11-30) */
.dm-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dm-hosted { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dm-hosted svg { width: 18px; height: 18px; flex: none; }
.dm-hosted span { flex: 1 1 260px; }
.dm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dm-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 60px; min-height: 88px;
    background: var(--panel, #fff); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
a.dm-tile:hover { text-decoration: none; border-color: var(--ink-3); }
.dm-tile .dm-ic { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: var(--chip); color: var(--ink-2); }
.dm-tile .dm-ic svg { width: 17px; height: 17px; }
.dm-tile .dm-label { font-size: 12px; color: var(--ink-3); }
.dm-tile strong { font-size: 18px; line-height: 1.25; }
.dm-tile strong small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.dm-tile .dm-note { font-size: 12.5px; color: var(--ink-2); }
.dm-tile.ok .dm-ic { background: var(--brand-tint); color: var(--ok); }
.dm-tile.warn .dm-ic { background: var(--warn-bg); color: var(--warn-ink); }
.dm-tile.warn { border-color: var(--warn-line); }
.dm-tile.bad .dm-ic { background: var(--danger-tint); color: var(--danger); }
.dm-tile.bad { border-color: var(--danger-line); }
.dm-tile.bad strong { color: var(--danger); }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dm-grid > .card { margin: 0; }
.dm-facts { margin: 0; padding: 6px 18px 12px; }
.dm-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.dm-facts > div:last-child { border-bottom: 0; }
.dm-facts dt { color: var(--ink-3); font-size: 13px; }
.dm-facts dd { margin: 0; text-align: right; font-weight: 500; }
.dm-strip { display: flex; gap: 3px; align-items: flex-end; height: 28px; margin: 12px 0 6px; }
.dm-bar { flex: 1 1 0; max-width: 14px; height: 100%; border-radius: 3px; background: var(--chip); }
.dm-bar.ok { background: #5fb58a; }
.dm-bar.bad { background: var(--danger); }
.dm-adv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dm-adv > .card { margin: 0; }
.dm-adv .row-form select { min-width: 0; flex: 1 1 auto; }
.site-card .tag.dom { background: var(--brand-tint); color: var(--brand-ink); }
.site-state.expired, .site-state.down { color: var(--danger); } .site-state.expired::before { background: var(--danger); }
@media (max-width: 900px) { .dm-grid, .dm-adv { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dm-tiles { grid-template-columns: 1fr 1fr; } .dm-tile { padding: 12px 12px 12px 12px; padding-top: 52px; min-height: 0; }
    .dm-tile .dm-ic { left: 12px; top: 12px; } .dm-tile strong { font-size: 16px; } }

/* Domain page tabs + DNS records on phones (Bilal 2026-11-30) */
@media (max-width: 640px) {
  .site-nav.dm-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .site-nav.dm-nav .site-nav-btn { min-height: 52px; padding: 6px 2px; font-size: .72rem; line-height: 1.15; }
  .rec-table tr[data-rec] { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; padding: 12px; }
  .rec-table tr[data-rec]:has(> td.c-pick) { grid-template-columns: 22px auto minmax(0, 1fr) auto; }
  .rec-table tr[data-rec] td.c-pick { width: auto; text-align: left; grid-row: 1; }
  .rec-table tr[data-rec] td.c-pick input { margin: 0; }
  .rec-table tr[data-rec] td.c-type { grid-row: 1; }
  .rec-table tr[data-rec] td.c-name { grid-row: 1; text-align: left; justify-self: start; min-width: 0; max-width: 100%; }
  .rec-table tr[data-rec] td.c-name .rname { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rec-table tr[data-rec] td.c-act { grid-row: 1; display: flex; gap: 6px; justify-content: flex-end; }
  .rec-table tr[data-rec] td.c-content { grid-column: 1 / -1; grid-row: 2; padding-top: 2px; }
  .rec-table tr[data-rec]:has(> td.c-pick) td.c-content { grid-column: 2 / -1; }
  .rec-table tr[data-rec] td.c-content .show-sm { font-size: .76rem; }
  .rec-table tr[data-rec] td.c-content .show-sm .proxy { font-size: .76rem; gap: 4px; } .rec-table tr[data-rec] td.c-content .show-sm .proxy .icon { width: 14px; height: 14px; }
  .rec-bulk { flex-wrap: nowrap; gap: 6px; padding: 8px 12px; }
  .rec-bulk [data-rec-picked] { flex: 1 1 0; min-width: 0; font-size: .76rem; line-height: 1.25; }
  .rec-bulk .btn { white-space: nowrap; padding: 0 10px; }
  .rec-toolbar { gap: 8px; padding: 12px; }
  .rec-toolbar .btn { flex: 1 1 0; justify-content: center; }
  .type-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; }
  .type-chips::-webkit-scrollbar { display: none; }
  .type-chip { flex: none; }
}
/* Domain → Advanced → Transfer to another account */
.dm-adv .dm-owner { grid-column: 1 / -1; }
.dm-owner-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.dm-owner-form .field { flex: 1 1 260px; }
.dm-owner-to { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--hover); }
.dm-owner-to > div { display: flex; flex-direction: column; min-width: 0; }
.dm-owner-to b { overflow-wrap: anywhere; }
.dm-owner-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; }
.dm-code-form { display: flex; gap: 10px; flex-wrap: wrap; }
.dm-code-form input { flex: 0 1 200px; font: 600 1.25rem var(--mono); letter-spacing: .3em; text-align: center; padding: 8px 10px; }
.dm-owner-foot { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dm-owner-foot form { margin: 0; }
@media (max-width: 640px) {
  .dm-owner-form .btn, .dm-code-form .btn { width: 100%; justify-content: center; }
  .dm-code-form input { flex: 1 1 100%; }
}

/* DirectAdmin hosting: admin page + client hosting page (Bilal 2026-11-30) */
.da-server { padding: 18px 20px; }
.da-server-main { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.da-server-main h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; }
.da-server-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.da-server-actions form { margin: 0; }
.da-servers { margin-bottom: 12px; }
.da-server { margin-bottom: 14px; }
.da-toolbar { margin: 0 0 14px; max-width: 560px; }
.da-toolbar input[type=search] { flex: 1 1 auto; }
details.inline-details.da-add .pop, details.inline-details.da-link .pop, .da-server-actions details.inline-details .pop { width: 380px; text-align: left; white-space: normal; }
.da-form input:not([type=checkbox]):not([type=hidden]), .da-form select, .da-link input:not([type=checkbox]):not([type=hidden]), .da-link select { width: 100%; margin: 3px 0 10px; }
.da-pick td.c-pick, .da-pick th.c-pick { width: 36px; }
table.list.da-pick { display: table; }
.da-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.da-remove { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.da-remove input { width: 100%; margin: 3px 0 8px; }
.da-table td:first-child strong { font-size: .95rem; }
.da-head .sub a { font-weight: 600; }
.da-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.da-use { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.da-use-head { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .82rem; }
.da-use-head svg { width: 15px; height: 15px; }
.da-use strong { font-size: 1.25rem; line-height: 1.2; }
.da-use progress { width: 100%; margin-top: 4px; }
.da-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.da-row { display: flex; gap: 8px; align-items: center; }
.da-row.wrap { flex-wrap: wrap; }
.da-row input:not([type=hidden]), .da-row select { flex: 1 1 140px; min-width: 0; }
.da-row input[type=number] { flex: 0 0 110px; }
.da-row .btn { flex: none; }
.da-cron { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.da-cron input { width: 100%; }
#cr-cmd { width: 100%; }
.da-cmd { word-break: break-all; max-width: 520px; }
.da-site-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.da-site-head .head-actions { margin-left: auto; display: flex; gap: 8px; }
.da-secret code { font-size: .95rem; padding: 2px 6px; }
.da-plan-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.da-plan-note .btn { margin-left: auto; }
.site-card .tag.da { background: var(--warn-bg); color: var(--warn-ink); }
.pt-0 { padding-top: 0 !important; }
@media (max-width: 900px) {
  .da-usage { grid-template-columns: 1fr 1fr; }
  .da-forms { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav.da-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .site-nav.da-nav .site-nav-btn { min-height: 52px; padding: 6px 2px; font-size: .72rem; line-height: 1.15; }
  .da-usage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .da-use { padding: 10px; gap: 2px; }
  .da-use strong { font-size: 1rem; }
  .da-use .muted.small { font-size: .72rem; }
  .da-use-head { font-size: .72rem; }
  .da-use-head svg { display: none; }
  .da-use > .muted.small:last-child:not(:first-child) { display: none; }
  table.da-table thead { display: none; }
  table.da-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.da-table td { padding: 0; border: 0; }
  table.da-table td:nth-child(1) { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
  table.da-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  table.da-table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  table.da-table td.actions-cell { grid-column: 1 / -1; grid-row: 3; white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; }
  table.da-table td.actions-cell .inline-form, table.da-table td.actions-cell details { margin: 0; }
  table.da-cards thead { display: none; }
  table.da-cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.da-cards td { padding: 0; border: 0; }
  table.da-cards td:first-child { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
  table.da-cards td:nth-child(2):not(.actions-cell) { grid-column: 1; grid-row: 2; }
  table.da-cards td.actions-cell { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
  .da-cron { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .da-row:not(.wrap) { flex-wrap: wrap; }
  details.inline-details.da-add .pop, details.inline-details.da-link .pop, .da-server-actions details.inline-details .pop { width: min(380px, calc(100vw - 32px)); }
  .da-link .pop { right: auto; left: 0; }
  .da-site-head .head-actions { margin-left: 0; }
  /* add / edit a DirectAdmin server: the form opens over the page, never cut off the left edge */
  details.inline-details.da-add .pop, .da-server-actions details.inline-details .pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
}
/* cPanel → DirectAdmin moves */
.da-move-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.da-move-note .btn { margin-left: auto; }
.da-move-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.da-move-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .da-move-form select { width: 100%; margin: 3px 0 10px; }
.da-move-form label:not(.check) { font-size: .85rem; font-weight: 600; }
.da-sub-head { border-top: 1px solid var(--line); }
.da-seg { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.da-seg legend { margin-bottom: 6px; font-weight: 600; }
.da-seg label { flex: 1 1 220px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500 !important; cursor: pointer; }
.da-seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.da-srv-name { padding: 9px 0 12px; }
.da-steps { margin: 0; padding: 14px 18px 4px 36px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.da-move-how > p { padding: 0 18px 14px; }
.da-move-sum { padding: 16px 18px; }
.da-move-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.da-move-sum progress { width: 100%; }
.da-move-items td:first-child .mono.small { overflow-wrap: anywhere; }
.da-ftp { margin: 4px 0 10px; }
.da-place { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 6px; margin: 4px 0 12px; }
.da-place legend { font-weight: 600; padding: 0 6px; }
.da-form textarea { width: 100%; margin: 3px 0 6px; }
.da-ftp summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 900px) { .da-move-grid { grid-template-columns: 1fr; } }

/* DirectAdmin free SSL + DNS reset (Bilal 2026-11-30) */
.da-le { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .82rem; padding: 2px 8px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.da-le svg { width: 13px; height: 13px; }
.da-le.ok { color: var(--ok); background: var(--brand-tint); }
.da-le.warn { color: var(--warn-ink); background: var(--warn-bg); }
.da-le.info { color: var(--brand-ink); background: var(--brand-tint-2); }
.da-le.bad { color: var(--danger); background: var(--danger-tint); }
.da-le-why { color: var(--ink-3); font-size: .78rem; margin-top: 3px; max-width: 32ch; }
.da-le-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.da-ssl-all { margin-left: auto; }
.da-fix .pop { min-width: 250px; display: flex; flex-direction: column; gap: 8px; }
.da-fix .pop form { margin: 0; }
.da-fix .pop .btn { width: 100%; justify-content: center; }
.da-finish { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 640px) { .da-ssl-all { margin-left: 0; width: 100%; } .da-ssl-all .btn { width: 100%; justify-content: center; } .da-le-why { max-width: none; } }
.card-head:has(.da-ssl-all) > span.muted { margin-left: 8px; }

/* Settings hub: cards like Bilal's sample (2026-11-30) — tinted icon tile, bold title, full description, "Ready" pill */
.hub-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: auto; gap: 18px; }
.hub-card { align-items: flex-start; gap: 16px; padding: 20px 20px 22px; min-height: 112px; border-radius: 14px;
  border-color: color-mix(in srgb, var(--brand) 14%, var(--line)); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04); }
a.hub-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 10px 26px var(--shadow); }
.hub-card .ico { width: 50px; height: 50px; border-radius: 13px; margin-top: 2px; }
.hub-card .ico svg { width: 22px; height: 22px; }
.hub-card .hub-txt { flex: 1; min-width: 0; }
.hub-card .hub-txt h3 { padding-right: 70px; }
.hub-card h3 { margin: 6px 0 6px; font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hub-card p { font-size: .9rem; line-height: 1.55; color: var(--ink-2, var(--ink-3)); display: block; -webkit-line-clamp: unset; overflow: visible; }
.hub-state { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px;
  border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: .72rem; font-weight: 600; line-height: 1.4; }
.hub-state svg { width: 13px; height: 13px; color: #fff; background: var(--ok); border-radius: 50%; padding: 1px; }
.hub-state.soon { background: var(--chip); color: var(--ink-3); padding-left: 9px; }
.hub-card.disabled { opacity: .6; box-shadow: none; }
.ico.c-pink { background: #fbe8f3; color: #c0368a; }
.ico.c-orange { background: #fdece3; color: #c4541a; }
.ico.c-teal { background: #e0f4f1; color: #13806f; }
:root[data-theme="dark"] .ico.c-pink { background: #351a2a; color: #ec8fc4; }
:root[data-theme="dark"] .ico.c-orange { background: #36221a; color: #f0a07a; }
:root[data-theme="dark"] .ico.c-teal { background: #13302c; color: #6fd1c1; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .ico.c-pink { background: #351a2a; color: #ec8fc4; }
  :root[data-theme="auto"] .ico.c-orange { background: #36221a; color: #f0a07a; }
  :root[data-theme="auto"] .ico.c-teal { background: #13302c; color: #6fd1c1; }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; gap: 12px; }
  .hub-card { padding: 16px; gap: 13px; min-height: 0; }
  .hub-card .ico { width: 44px; height: 44px; }
  .hub-card .hub-txt h3 { padding-right: 62px; }
  .hub-card h3 { margin-top: 3px; font-size: 1rem; }
  .hub-card p { font-size: .86rem; }
}

/* Admin client profile, redesigned (Bilal 2026-11-30): tiles with icons, button tabs, overview, tab toolbars */
.cpx-hero { border-top: 3px solid var(--brand); }
.cpx-avatar { position: relative; }
.cpx-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card); background: var(--ok); }
.cpx-avatar.suspended::after { background: var(--warn-ink); }
.cpx-avatar.closed::after { background: var(--ink-3); }
.cp-more .menu-pop form { border-top: 0; margin-top: 0; padding-top: 0; }
.cpx-stats .cp-stat { position: relative; padding-left: 64px; min-height: 86px; justify-content: center; }
.cpx-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.cpx-ic .icon, .cpx-ic svg { width: 19px; height: 19px; }
.cpx-stats .cp-stat.due .cpx-ic { background: var(--warn-bg); color: var(--warn-ink); }
.cpx-tabs { margin-bottom: 16px; }
.cpx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.cpx-grid > * { min-width: 0; }
.cpx-grid > .stack { display: flex; flex-direction: column; gap: 16px; }
.cpx-grid > .stack > .card { margin: 0; }
@media (max-width: 980px) { .cpx-grid { grid-template-columns: 1fr; } }

.cpx-attn .card-head strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-ink); margin-right: 8px; vertical-align: 2px; }
.cpx-attn.ok .card-head strong::before { background: var(--ok); }
.cpx-attn-list { list-style: none; margin: 0; padding: 4px 8px 8px; }
.cpx-attn-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: .92rem; }
.cpx-attn-list a:hover { background: var(--hover); text-decoration: none; }
.cpx-attn-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.cpx-attn-list a > .icon:last-child, .cpx-attn-list a > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); }
.cpx-attn-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--warn-bg); color: var(--warn-ink); }
.cpx-attn-ic svg { width: 16px; height: 16px; }
.cpx-attn-list li.bad .cpx-attn-ic { background: var(--danger-tint, #fdecec); color: var(--danger); }

.cpx-plan { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.cpx-plan:hover { background: var(--hover); text-decoration: none; }
.cpx-plan-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cpx-plan-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpx-plan-use { display: flex; flex-direction: column; gap: 4px; }
.cpx-plan-use progress.bar, .cpx-bar { height: 6px; }
.cpx-bar { display: block; max-width: 120px; margin-top: 4px; }
@media (max-width: 560px) { .cpx-plan { grid-template-columns: 1fr auto; } .cpx-plan-use { grid-column: 1 / -1; grid-row: 2; } }
.cpx-mini td { padding-top: 9px; padding-bottom: 9px; }
.cpx-more { padding: 10px 16px; border-top: 1px solid var(--line); font-size: .86rem; }

.cpx-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 9px 12px; margin: 0; padding: 4px 16px 16px; font-size: .9rem; }
.cpx-kv dt { color: var(--ink-3); }
.cpx-kv dd { margin: 0; overflow-wrap: anywhere; }
.cpx-note { margin: 0 16px 16px; padding: 10px 12px; border-radius: 9px; background: var(--warn-bg); font-size: .88rem; }
.cpx-note p { margin: 4px 0 0; white-space: pre-line; }
.cpx-disc { list-style: none; margin: 0; padding: 4px 16px 14px; }
.cpx-disc li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cpx-disc li:last-child { border-bottom: 0; }
.cpx-disc strong { color: var(--ok); }
.cpx-status .seg { margin-bottom: 8px; }

/* activity timeline */
.cpx-tl { list-style: none; margin: 0; padding: 6px 16px 14px; }
.cpx-tl li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 9px 0; position: relative; }
.cpx-tl li + li { border-top: 1px dashed var(--line); }
.cpx-tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ink-3); }
.cpx-tl-dot.billing { background: var(--accent); }
.cpx-tl-dot.hosting { background: var(--brand); }
.cpx-tl-dot.dns { background: #3b82c4; }
.cpx-tl-dot.clients { background: #8b5cf6; }
.cpx-tl-dot.servers { background: #64748b; }
.cpx-tl-line { font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.cpx-tl-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; font-size: .78rem; color: var(--ink-3); }
.cpx-tl.compact li { padding: 7px 0; }

/* chips + tab toolbars */
.cpx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: var(--chip); color: var(--ink-2); font-size: .74rem; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.cpx-chip svg { width: 12px; height: 12px; }
a.cpx-chip.ok, .cpx-chip.ok { background: var(--brand-tint); color: var(--ok); }
a.cpx-chip:hover { text-decoration: none; filter: brightness(.97); }
.cpx-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.cpx-dom { font-size: .95rem; }
.cpx-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.cpx-toolbar-end { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cpx-toolbar-end > a.small { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; }
.cpx-toolbar-end > a.small svg { width: 14px; height: 14px; }
.cpx-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cpx-filter a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.cpx-filter a span { min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--chip); color: var(--ink-3); font-size: .74rem; text-align: center; line-height: 18px; }
.cpx-filter a:hover { border-color: var(--ink-3); text-decoration: none; }
.cpx-filter a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cpx-filter a.on span { background: rgba(255, 255, 255, .25); color: #fff; }
.cpx-filter a.warn:not(.on) span { background: var(--warn-bg); color: var(--warn-ink); }
.cpx-filter-in { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cpx-head-end { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cpx-table tr.cpx-ended td { background: var(--paper); }
.cpx-table tr.cpx-ended .sv-name, .cpx-table tr.cpx-ended strong { color: var(--ink-3); }
.cpx-table .dt-pick { width: 34px; }
.cpx-tools-row > td { background: var(--paper); }
.cpx-dom-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 6px 0; }
.cpx-tool { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cpx-tool form { margin: 0; }
.cpx-tool-h { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.cpx-tool-end { justify-content: center; align-items: flex-start; border-style: dashed; }
.cpx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cpx-inline { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) { .cpx-inline { flex-direction: column; align-items: flex-start; } }

/* billing */
.cpx-due { border-color: var(--warn-ink); }
.cpx-due .card-head { background: var(--warn-bg); }
.cpx-balance { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--brand-tint); }
.cpx-balance strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.cpx-ledger { list-style: none; margin: 0; padding: 0 16px 12px; border-top: 1px solid var(--line); }
.cpx-ledger li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; align-items: baseline; }
.cpx-ledger li:last-child { border-bottom: 0; }
.cpx-ledger-d { color: var(--ink-3); font-size: .78rem; }
.cpx-ledger-t { overflow-wrap: anywhere; }
.cpx-ledger-a { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ok); white-space: nowrap; }
.cpx-ledger-a.neg { color: var(--danger); }

@media (max-width: 760px) {
  .cpx-stats .cp-stat { padding-left: 14px; padding-top: 52px; min-height: 0; }
  .cpx-ic { top: 14px; transform: none; left: 14px; width: 30px; height: 30px; }
  .cpx-toolbar { align-items: stretch; }
  .cpx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cpx-filter::-webkit-scrollbar { display: none; }
  .cpx-filter a { flex: none; }
  .cpx-toolbar-end { width: 100%; }
  .cpx-kv { grid-template-columns: 96px minmax(0, 1fr); }
}
.cpx-chip.show-md { display: none; }
.cpx-table .btn.danger-ink { color: var(--danger); }
@media (max-width: 760px) {
  .cpx-chip.show-md { display: inline-flex; }
  .cpx-table td, .cpx-table th { padding-left: 10px; padding-right: 10px; }
  .cpx-table td:first-child, .cpx-table th:first-child { padding-left: 14px; }
  .cpx-table td:last-child { padding-right: 12px; padding-left: 4px; }
  .cpx-table .btn.sm { padding-left: 9px; padding-right: 9px; }
  .cpx-dom { overflow-wrap: anywhere; }
}

/* Dashboard: data center chip + pop-up (Bilal 2026-11-30, replaces the "Fast" tag) */
.dc-pop { display: inline-block; position: relative; }
.dc-pop > summary { list-style: none; cursor: pointer; }
.dc-pop > summary::-webkit-details-marker { display: none; }
.tag.dc { background: #e8f0fb; color: #1f5a9e; letter-spacing: .04em; }
.tag.dc:hover { filter: brightness(.96); }
.dc-pop > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dc-pop .dc-card { left: 0; right: auto; width: min(290px, 82vw); flex-direction: column; flex-wrap: nowrap; gap: 10px; border-left: 3px solid #3b82c4; }
.dc-head { display: flex; gap: 12px; align-items: center; }
.dc-code { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #e8f0fb; color: #1f5a9e; font-weight: 800; font-size: .95rem; letter-spacing: .05em; }
.dc-kv { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: .86rem; }
.dc-kv dt { color: var(--ink-3); }
.dc-kv dd { margin: 0; overflow-wrap: anywhere; }
.dc-pop .dc-card .btn { align-self: flex-start; }
.site-card:has(.dc-pop[open]) { overflow: visible; position: relative; z-index: 25; }
.site-tags.dc-row { margin-top: 4px; }
[data-theme="dark"] .tag.dc, [data-theme="dark"] .dc-code { background: rgba(59, 130, 196, .18); color: #9cc3ee; }
/* in a website card the pop-up spans the card under the tags, so it never leaves the screen */
.site-card .site-tags { position: relative; }
.site-card .dc-pop { position: static; }
.site-card .dc-pop .dc-card { left: 0; right: 0; width: auto; max-width: 340px; }
/* list view: own Data center column (Bilal 2026-11-30) */
td.dc-col, th.dc-col { white-space: nowrap; }
td.dc-col .dc-pop { vertical-align: middle; }
.dc-city { margin-left: 8px; font-size: .86rem; color: var(--ink-2); vertical-align: middle; }
td.dc-col .dc-card { white-space: normal; }
.dc-row .dc-pop { position: static; }
.dc-row { position: relative; }
.card:has(.dc-pop[open]) { overflow: visible; position: relative; z-index: 25; }
table.list:has(.dc-pop[open]), .card:has(.dc-pop[open]) { overflow: visible !important; } /* an open pop-up must not be cut by a scrolling table */

/* DirectAdmin ↔ node moves (Bilal 2026-11-30) */
.dtn-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.dtn-grid .card-body > label:not(.check) { display: block; margin-top: 10px; }
.dtn-sites td strong { overflow-wrap: anywhere; }
.dtn-finish { border-left: 3px solid var(--brand); }
.dtn-finish .da-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dtn-finish .da-row input { max-width: 180px; }
@media (max-width: 900px) { .dtn-grid { grid-template-columns: minmax(0, 1fr); } }
.dtn-plan .da-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dtn-grid .da-grid > div { min-width: 0; }
.dtn-grid .da-grid input, .dtn-grid .da-grid select { width: 100%; max-width: 100%; box-sizing: border-box; }
.dtn-sites { width: 100%; }
.dtn-plan { margin-bottom: 14px; }

/* Settings → Automation (Bilal 2026-11-30): life of an unpaid invoice + sentence rules */
.au-life { margin-bottom: 16px; }
.au-life .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.au-rail { list-style: none; margin: 0; padding: 8px 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); position: relative; overflow-x: auto; }
.au-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-tint-2) 0%, var(--brand) 42%, var(--accent) 70%, var(--danger) 100%); }
.au-stop { position: relative; padding: 26px 10px 2px 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.au-dot { position: absolute; top: 8px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.au-stop.k-remind .au-dot { border-color: #2f62b5; }
.au-stop.k-due .au-dot { border-color: var(--ink); background: var(--ink); }
.au-stop.k-late .au-dot, .au-stop.k-fee .au-dot { border-color: var(--warn-ink); }
.au-stop.k-suspend .au-dot { border-color: var(--accent); background: var(--accent); }
.au-stop.k-end .au-dot { border-color: var(--danger); background: var(--danger); }
.au-when { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.au-stop.is-due .au-when { color: var(--ink); }
.au-what { font-size: .86rem; line-height: 1.3; color: var(--ink-2); }
.au-what.k-suspend { color: var(--accent); font-weight: 600; }
.au-what.k-end { color: var(--danger); font-weight: 600; }
.au-what.k-due { color: var(--ink); font-weight: 600; }
.au-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.au-main { display: grid; gap: 16px; min-width: 0; }
.au-side { display: grid; gap: 16px; position: sticky; top: 76px; }
.au-sec .card-head { display: flex; align-items: center; gap: 10px; }
.au-sec .card-head .small { margin-left: auto; }
.ico.au-ico { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; }
.ico.au-ico .icon { width: 16px; height: 16px; }
.au-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.au-rule:first-child { padding-top: 2px; }
.au-rule.sub { grid-template-columns: 1fr; padding: 9px 0; }
.au-rule .error, .au-rule .hint { grid-column: 1 / -1; }
.au-sec .card-body > :last-child.au-rule, .au-sec [data-show-if] > .au-rule:last-child { border-bottom: 0; }
.au-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-txt strong { font-size: .93rem; }
.au-txt span { font-size: .84rem; color: var(--ink-3); line-height: 1.45; }
.au-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: .88rem; color: var(--ink-2); }
.au-ctl.two span:nth-child(4) { margin-left: 6px; }
.au-num { width: 72px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg); color: var(--ink); font: inherit; font-weight: 600; text-align: center; }
.au-num.wide { width: 110px; }
.au-num:focus, .au-sel:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.au-sel { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg); color: var(--ink); font: inherit; }
.au-switch { display: inline-flex; align-items: center; cursor: pointer; margin-right: 4px; }
.au-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-switch .track { width: 40px; height: 22px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); position: relative; transition: background .15s; }
.au-switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px var(--shadow); transition: transform .15s; }
.au-switch input:checked + .track { background: var(--brand); border-color: var(--brand); }
.au-switch.danger input:checked + .track { background: var(--danger); border-color: var(--danger); }
.au-switch input:checked + .track::after { transform: translateX(18px); }
.au-switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.au-rule:has(.au-switch input:not(:checked)) .au-num { opacity: .45; }
.au-save .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.au-next { margin: 0 0 10px; }
.au-counts { margin: 0 0 8px; display: grid; gap: 4px; }
.au-counts div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.au-counts dt { color: var(--ink-2); }
.au-counts dd { margin: 0; font-weight: 700; }
.au-runnow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 1100px) { .au-layout { grid-template-columns: 1fr; } .au-side { position: static; order: -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .au-side { grid-template-columns: 1fr; }
  .au-rail { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 0 0 4px; overflow: visible; }
  .au-rail::before { left: 11px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; background: linear-gradient(180deg, var(--brand-tint-2) 0%, var(--brand) 42%, var(--accent) 70%, var(--danger) 100%); }
  .au-stop { padding: 6px 0 10px 32px; }
  .au-dot { top: 8px; left: 4px; }
  .au-rule { grid-template-columns: 1fr; }
  .au-ctl { justify-content: flex-start; }
}
.au-form .au-ctl input.au-num { width: 72px; flex: none; margin: 0; }
.au-form .au-ctl input.au-num.wide { width: 110px; }
.au-form .au-ctl input.au-num.time { width: 128px; }
.au-form .au-ctl select.au-sel { width: auto; flex: none; margin: 0; }
.au-sec .card-head { justify-content: flex-start; }

/* DirectAdmin: Sync now as a task (Bilal 2026-12-01) */
.da-sync-task { margin-top: 10px; max-width: 520px; }
.da-sync-task p { margin-top: 6px; }

/* DirectAdmin: server tiles / list + server page (Bilal 2026-12-01) */
.das-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.das-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.das-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.das-top { display: flex; align-items: center; gap: 12px; }
.das-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.das-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.das-id strong { font-size: 1.05rem; }
.das-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.das-meters { display: grid; gap: 10px; }
.das-m-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
progress.bar.das-bar { height: 8px; }
progress.bar.das-bar.warm::-webkit-progress-value { background: var(--accent, #f59e0b); }
progress.bar.das-bar.warm::-moz-progress-bar { background: var(--accent, #f59e0b); }
progress.bar.das-bar.hot::-webkit-progress-value { background: var(--danger, #dc2626); }
progress.bar.das-bar.hot::-moz-progress-bar { background: var(--danger, #dc2626); }
.das-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.das-facts dt { font-size: .75rem; color: var(--muted); }
.das-facts dd { margin: 2px 0 0; font-weight: 600; }
.das-facts dd .muted { font-weight: 400; }
.das-foot { margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.das-table td progress.bar.das-bar { width: 90px; display: block; margin-bottom: 2px; }
.das-name { color: inherit; }
.das-hero .cp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.das-hero .cp-actions form { margin: 0; }
.das-stats { margin-bottom: 16px; }
.das-machine { padding: 14px 18px; margin-bottom: 16px; }
.das-machine .kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; margin: 0; }
.das-machine dt { font-size: .75rem; color: var(--muted); }
.das-machine dd { margin: 3px 0 0; }
.das-machine .chip { margin: 0 4px 4px 0; }
.das-tabs { margin-bottom: 14px; }
.da-sync-task.card { padding: 12px 16px; margin-bottom: 16px; }
@media (max-width: 640px) {
    .das-grid { grid-template-columns: minmax(0, 1fr); }
    .das-grid > .das-card { min-width: 0; }
    .das-table td progress.bar.das-bar { width: 60px; }
}

/* Client dashboard: DirectAdmin reseller accounts (Bilal 2026-12-01) */
.rs-section { margin-bottom: 22px; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rs-head h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.rs-head .count { font-size: .8rem; background: var(--brand-tint); color: var(--brand); border-radius: 999px; padding: 1px 9px; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rs-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.rs-top { display: flex; align-items: center; gap: 12px; }
.rs-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.rs-id { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rs-id a { color: inherit; }
.rs-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.rs-facts dt { font-size: .75rem; color: var(--muted); }
.rs-facts dd { margin: 2px 0 0; font-weight: 600; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.rs-actions form { margin: 0; }
.rs-act { white-space: nowrap; }
@media (max-width: 640px) { .rs-grid { grid-template-columns: 1fr; } .rs-actions .btn { flex: 1; } }
@media (max-width: 640px) { .rs-table .rs-act { white-space: normal; } .rs-table .rs-act .btn { margin: 2px 0; } }

/* DirectAdmin server page: services row */
.das-svc{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.das-svc-item{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:12.5px;background:var(--card)}
.das-svc-item small{color:var(--ink-3);font-size:11.5px}
.das-svc-item .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);display:inline-block}
.das-svc-item.bad{border-color:var(--danger)}
.das-svc-item.bad .dot{background:var(--danger)}

/* DirectAdmin: WordPress tab + plan page resources and feature cards (Bilal 2026-12-01) */
.da-site-tabs { display: flex; gap: 6px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); }
.da-site-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; position: relative; }
.da-site-tabs a .icon { width: 16px; height: 16px; }
.da-site-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.da-site-tabs a:hover { color: var(--ink); }
.da-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.da-spin .icon { width: 18px; height: 18px; animation: tasks-spin 1.2s linear infinite; color: var(--brand); }
.da-wp-empty { display: flex; gap: 14px; align-items: flex-start; }
.da-wp-empty > .icon, .da-wp-empty > .da-spin { flex: none; width: 34px; height: 34px; color: var(--brand); margin-top: 2px; }
.da-wp-empty .da-spin .icon { width: 30px; height: 30px; }
.da-wp-empty p { margin: 6px 0 10px; max-width: 62ch; }
.alert.da-wp-run { background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--ok-line); display: flex; align-items: center; gap: 8px; }
.da-wp .btn.xs { padding: 3px 7px; font-size: .78rem; min-height: 0; }
.da-wp .btn.xs .icon { width: 14px; height: 14px; }
.da-wp-admins { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.da-wp-admin { display: inline-flex; align-items: center; gap: 2px; }
.da-wp-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.da-wp-switch:last-child { border-bottom: 0; }
.site-card .tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.site-card .tag .icon { width: 12px; height: 12px; }

.da-res .card-head { flex-wrap: wrap; gap: 6px 12px; }
.da-res .card-head > .muted { flex: 1; }
.da-feat { margin-bottom: 20px; }
.da-feat-group { padding: 14px 18px 6px; }
.da-feat-group + .da-feat-group { border-top: 1px solid var(--line); }
.da-feat-head { margin: 0 0 8px; font-size: .78rem; font-weight: 650; color: var(--ink-3); letter-spacing: .01em; }
.da-feat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 6px; padding-bottom: 8px; margin: 0 -10px; }
.da-feat-form { margin: 0; display: flex; }
.da-feat-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; background: transparent; border: 0; border-radius: 10px; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: background .15s; }
.da-feat-card:hover { background: var(--brand-tint); }
.da-feat-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.da-feat-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--chip); color: var(--ink-2); }
.da-feat-group.c-green .da-feat-ic { background: var(--brand-tint); color: var(--brand); }
.da-feat-group.c-blue .da-feat-ic { background: #e5eefb; color: #2f62b5; }
.da-feat-group.c-orange .da-feat-ic { background: #fdece3; color: #c4541a; }
.da-feat-group.c-violet .da-feat-ic { background: #efe8fb; color: #6b45b8; }
:root[data-theme="dark"] .da-feat-group.c-blue .da-feat-ic { background: #172338; color: #7aa7ec; }
:root[data-theme="dark"] .da-feat-group.c-orange .da-feat-ic { background: #36221a; color: #f0a07a; }
:root[data-theme="dark"] .da-feat-group.c-violet .da-feat-ic { background: #231a36; color: #b39ae8; }
.da-feat-ic .icon { width: 19px; height: 19px; }
.da-feat-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.da-feat-t { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.da-feat-n { font-size: .76rem; color: var(--ink-3); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-feat-go { display: none; }
.da-feat-card.warn .da-feat-ic { background: var(--warn-bg); color: var(--warn-ink); }
.da-feat-card.warn .da-feat-n { color: var(--warn-ink); }
@media (max-width: 1300px) { .da-feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .da-feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .da-feat-group { padding: 12px 14px 4px; } .da-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; } .da-feat-card { gap: 9px; padding: 8px; } .da-feat-ic { width: 34px; height: 34px; } }
@media (max-width: 640px) {
  .da-site-tabs a { flex: 1; justify-content: center; }
  .da-wp-switch { align-items: flex-start; }
}
/* DirectAdmin plan page: 24-hour CPU / memory lines (Bilal 2026-12-01) */
.da-hist { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.da-hist-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.da-hist-chart { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; }
.da-hist-y { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; text-align: right; padding: 0 0 0 2px; }
.da-hist-svg { width: 100%; height: 130px; display: block; background: var(--paper-2, rgba(0,0,0,.02)); border-radius: 8px; }
.da-hist-line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; transition: opacity .15s; }
.da-hist-line.l-cpu { stroke: var(--brand); }
.da-hist-line.l-mem { stroke: #d9822b; }
.da-hist-lim { stroke: var(--ink-3); stroke-opacity: .5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.da-hist-grid-l { stroke: var(--line); vector-effect: non-scaling-stroke; }
.da-hist-axis { display: flex; justify-content: space-between; margin: 4px 0 0 34px; }
.da-hist-keys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dh-key { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; cursor: pointer; user-select: none; background: var(--card); transition: opacity .15s, border-color .15s; }
.dh-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.dh-key-mem i { background: #d9822b; }
.dh-key:hover { border-color: var(--ink-3); }
.da-hist:has(.dh-on-cpu:not(:checked)) .l-cpu, .da-hist:has(.dh-on-mem:not(:checked)) .l-mem { opacity: 0; }
.da-hist:has(.dh-on-cpu:not(:checked)) .dh-key-cpu, .da-hist:has(.dh-on-mem:not(:checked)) .dh-key-mem { opacity: .45; }
.da-hist:has(.dh-on-cpu:not(:checked)) .dh-key-cpu i, .da-hist:has(.dh-on-mem:not(:checked)) .dh-key-mem i { background: var(--line); }
@media (max-width: 640px) { .da-hist { padding: 12px; } .da-hist-svg { height: 110px; } }
/* DirectAdmin hosting: every tool inside our panel (Bilal 2026-12-01) */
.split.split-full { grid-template-columns: 1fr; }
.da-part-nav { margin-bottom: 14px; }
.da-wide { flex: 1 1 260px; min-width: 0; }
.da-num { width: 64px; display: inline-block; padding: 2px 6px; }
.da-resp + .da-resp { border-top: 1px solid var(--line); }
.da-resp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.da-resp-head form { margin-left: auto; }
.da-resp textarea, .card-body > textarea { width: 100%; }
.da-spam + .da-spam { border-top: 1px solid var(--line); }
.da-spam-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.da-spam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 12px; align-items: end; }
.da-spam-grid label.small { display: flex; flex-direction: column; gap: 4px; }
.da-spam-grid .check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-fm-head { flex-wrap: wrap; gap: 10px; }
.da-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; min-width: 0; }
.da-crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.da-crumbs a.on { color: var(--ink); font-weight: 650; }
.da-crumbs .icon { width: 15px; height: 15px; }
.da-fm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.da-upload { display: flex; gap: 6px; align-items: center; margin: 0; }
.da-upload input[type=file] { max-width: 220px; font-size: .82rem; }
.da-fm-pick { width: 34px; }
.da-fm-name a { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.da-fm-name .icon { width: 16px; height: 16px; color: var(--ink-3); vertical-align: -3px; }
.da-fm-name a .icon { color: #c4541a; }
.da-fm-list td { word-break: break-all; }
.da-fm-bulk { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.da-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; padding: 14px 16px 16px; }
.da-stat { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.da-stat-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.da-stat-ic .icon { width: 18px; height: 18px; }
.da-stat-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.da-stat-tx progress { width: 100%; margin-top: 4px; }
@media (max-width: 640px) {
  .da-spam-grid { grid-template-columns: 1fr; }
  .da-fm-tools { margin-left: 0; width: 100%; }
  .da-upload { flex: 1; }
  .da-upload input[type=file] { max-width: none; flex: 1; min-width: 0; }
  .da-part-nav { overflow-x: auto; flex-wrap: nowrap; }
}
.da-part-nav a { white-space: nowrap; }
@media (max-width: 640px) { .da-site-tabs.da-part-nav a { flex: 0 0 auto; } }
.da-spam { padding-top: 12px; padding-bottom: 12px; }
.da-spam-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) auto minmax(140px, 1fr) minmax(170px, 1.2fr) auto auto; gap: 8px 16px; align-items: end; }
.da-spam-row .da-spam-head { margin: 0; align-self: end; padding-bottom: 9px; flex-wrap: wrap; gap: 6px; }
.da-spam-row label.small:not(.check) { display: flex; flex-direction: column; gap: 4px; }
.da-spam-row .check.small { font-size: .86rem; }
.da-spam-row .check { display: flex; align-items: center; gap: 6px; padding-bottom: 9px; white-space: nowrap; }
.da-num { width: 60px !important; }
.da-fm-list .actions-cell { text-align: right; white-space: nowrap; }
@media (max-width: 1100px) { .da-spam-row { grid-template-columns: 1fr 1fr; } .da-spam-row .da-spam-head { grid-column: 1 / -1; } }
@media (max-width: 640px) { .da-spam-row { grid-template-columns: 1fr; } }
.da-spam-row .check { min-height: 40px; padding-bottom: 0; }
.da-spam-row .da-spam-head { padding-bottom: 0; min-height: 40px; display: flex; align-items: center; }
.da-spam-row .da-num { padding: 6px 8px; }
.da-spam-row > .check { margin: 0 0 0 0; align-self: end; height: 40px; }

/* Admin dashboard v2 (Bilal 2026-12-01, like WHMCS): waiting cards, at a glance, business overview */
.dash-sec { margin: 0 0 22px; }
.dash-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.dash-sec-head h2, .dash-ov-head h2 { font-size: 1.02rem; margin: 0; font-weight: 700; letter-spacing: -.005em; }
.dash-todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-todo-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic num" "label label" "note note"; column-gap: 12px; row-gap: 2px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 13px; color: var(--ink); text-decoration: none; overflow: hidden;
  transition: border-color .15s, box-shadow .15s; }
.dash-todo-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.dash-todo-card:hover { border-color: var(--ink-3); box-shadow: 0 4px 14px var(--shadow); }
.dash-todo-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dash-todo-ic { grid-area: ic; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--ink-3); }
.dash-todo-ic svg { width: 19px; height: 19px; }
.dash-todo-num { grid-area: num; font-size: 1.75rem; font-weight: 750; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.dash-todo-label { grid-area: label; font-weight: 650; margin-top: 10px; font-size: .93rem; }
.dash-todo-note { grid-area: note; font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-todo-card.is-warn::before { background: var(--accent); }
.dash-todo-card.is-warn .dash-todo-ic { background: var(--warn-bg); color: var(--warn-ink); }
.dash-todo-card.is-warn .dash-todo-num { color: var(--warn-ink); }
.dash-todo-card.is-bad::before { background: var(--danger); }
.dash-todo-card.is-bad .dash-todo-ic { background: var(--danger-tint); color: var(--danger); }
.dash-todo-card.is-bad .dash-todo-num { color: var(--danger); }
.dash-todo-card.is-zero .dash-todo-num { color: var(--ink-3); opacity: .55; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-stat { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; min-width: 0; }
a.dash-stat:hover { border-color: var(--ink-3); }
.dash-stat-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.dash-stat-ic svg { width: 18px; height: 18px; }
.dash-stat.hot-bad .dash-stat-ic { background: var(--danger-tint); color: var(--danger); }
.dash-stat.hot-bad .dash-stat-num { color: var(--danger); }
.dash-stat.hot-warn .dash-stat-ic { background: var(--warn-bg); color: var(--warn-ink); }
.dash-stat-tx { display: flex; flex-direction: column; min-width: 0; }
.dash-stat-label { font-size: .82rem; color: var(--ink-3); }
.dash-stat-num { font-size: 1.4rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-stat-note { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ov { margin: 0 0 22px; }
.dash-ov-head { align-items: center; flex-wrap: wrap; gap: 10px; }
.dash-period { display: inline-flex; background: var(--chip); border-radius: 9px; padding: 3px; gap: 2px; }
.dash-period a { padding: 5px 11px; border-radius: 7px; font-size: .82rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.dash-period a.on { background: var(--card); color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px var(--shadow); }
.dash-ov-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dash-ov-figs { display: grid; grid-template-columns: 1fr 1fr; border-right: 1px solid var(--line); }
.dash-fig { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.dash-fig:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.dash-fig:nth-last-child(-n+2) { border-bottom: 0; }
.dash-fig-label { font-size: .8rem; color: var(--ink-3); }
.dash-fig b { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-fig-note { font-size: .78rem; color: var(--ink-3); }
.dash-ov-chart { padding: 16px 18px 12px; min-width: 0; }
.dash-ov-total { margin: 0 0 8px; }
.dash-ov-total b { font-size: 1.1rem; margin: 0 2px; }
@media (max-width: 1200px) { .dash-ov-body { grid-template-columns: 1fr; } .dash-ov-figs { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .dash-fig:nth-child(odd) { border-right: 0; } .dash-fig { border-right: 1px solid var(--line-soft); } .dash-fig:nth-child(3n) { border-right: 0; } .dash-fig:nth-last-child(-n+3) { border-bottom: 0; } }
@media (max-width: 1100px) { .dash-todo, .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dash-todo, .dash-stats { gap: 10px; }
  .dash-todo-card { padding: 12px 12px 11px; column-gap: 8px; }
  .dash-todo-ic { width: 32px; height: 32px; } .dash-todo-num { font-size: 1.45rem; }
  .dash-todo-label { font-size: .85rem; margin-top: 8px; }
  .dash-stat { padding: 12px; gap: 9px; } .dash-stat-ic { width: 30px; height: 30px; } .dash-stat-num { font-size: 1.15rem; }
  .dash-ov-figs { grid-template-columns: 1fr 1fr; } .dash-fig { padding: 12px 14px; border-right: 0; }
  .dash-fig:nth-child(odd) { border-right: 1px solid var(--line-soft); } .dash-fig:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); } .dash-fig:nth-last-child(-n+2) { border-bottom: 0; }
  .dash-fig b { font-size: 1.05rem; }
  .dash-period { width: 100%; } .dash-period a { flex: 1; text-align: center; padding: 6px 4px; }
}
/* cancellation requests + failed module actions */
.cx-reason { max-width: 340px; white-space: normal; }
.cx-act { white-space: nowrap; text-align: right; }
.cx-act form.inline, .cx-act details { display: inline-block; vertical-align: middle; }
.fa-bar { gap: 14px; justify-content: flex-start; align-items: center; }
.fa-pick { width: 32px; }
.fa-err { max-width: 380px; white-space: normal; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 760px) {
  table.cx-table thead, table.fa-table thead { display: none; }
  table.cx-table tr, table.fa-table tr { display: grid; grid-template-columns: 1fr; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 4px; }
  table.cx-table td, table.fa-table td { border: 0; padding: 0; max-width: none; }
  table.cx-table td[data-label]::before, table.fa-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--ink-3); }
  .cx-act { text-align: left; white-space: normal; margin-top: 6px; }
  table.fa-table tr { grid-template-columns: 28px 1fr; } table.fa-table td:not(.fa-pick) { grid-column: 2; } table.fa-table td.fa-pick { grid-row: 1 / span 2; }
}
/* client: cancellation request card */
.cxr-card .cxr-types { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 12px; }
.cxr-card .cxr-type { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.cxr-card .cxr-type:has(input:checked) { border-color: var(--danger); background: var(--danger-tint); }
.cxr-card .cxr-type input { margin-top: 3px; }
@media (max-width: 640px) { .cxr-card .cxr-types { grid-template-columns: 1fr; } }
.cxr-sub { display: block; margin-top: 2px; }
.badge.cx-b { text-transform: none; }
.fa-search { display: flex; gap: 8px; margin: 0 0 14px; }
.fa-search input { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  table.fa-table tr { grid-template-columns: 28px minmax(0, 1fr); }
  table.cx-table td, table.fa-table td { min-width: 0; overflow-wrap: anywhere; }
}

/* cPanel → DirectAdmin bulk move: client per account (Bilal 2026-12-01) */
.mv-help { padding-top: 0; }
.mv-bar .check { margin: 0; }
.mv-bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--chip); }
.mv-table td { vertical-align: middle; }
.mv-table .mv-client { width: 100%; min-width: 240px; }
.mv-table .mv-price { width: 110px; text-align: right; }
.mv-table th:nth-child(6) { min-width: 240px; }
.mv-table .mv-pkg { width: 100%; min-width: 150px; }
.mv-opts { border-top: 1px solid var(--line); }
.mv-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 0 14px; margin-bottom: 8px; }
.mv-grid input, .mv-grid select { width: 100%; margin: 3px 0 4px; }
.mv-opts .btn { margin-top: 10px; }
@media (max-width: 900px) {
  table.list.mv-table { display: block; }
  .mv-table thead { display: none; }
  .mv-table tbody { display: block; }
  .mv-table tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.list.mv-table td { display: block; padding: 0; border: 0; }
  .mv-table td.c-pick { grid-row: 1; grid-column: 1; width: auto; }
  .mv-table td.mv-acct { grid-row: 1; grid-column: 2; }
  .mv-table td[data-label="Disk"] { grid-row: 1; grid-column: 3; }
  .mv-table td[data-label="On DirectAdmin"] { grid-column: 2 / -1; }
  .mv-table td[data-label="Client"], .mv-table td[data-label="Price"], .mv-table td[data-label="Package"] { grid-column: 2 / -1; text-align: left; }
  .mv-table .mv-client { min-width: 0; }
  .mv-table td[data-label="Price"]::before { content: "Price "; font-size: .78rem; color: var(--ink-3); margin-right: 6px; }
  .mv-grid { grid-template-columns: 1fr; }
}

/* Domain registrars: Cosmotown card (Bilal 2026-12-01) */
.ct-adopt { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--warn-line); background: var(--warn-tint); border-radius: 10px; display: grid; gap: 10px; justify-items: start; }
.reg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Servers: remove an old node (Bilal 2026-12-01) */
th.srv-act, td.srv-act { width: 1%; white-space: nowrap; text-align: right; }
.srv-rm > summary.btn { padding: 4px 8px; }
.srv-rm .menu-pop.srv-rm-pop { top: 38px; width: 300px; padding: 12px; white-space: normal; text-align: left; }
.srv-rm-pop p { margin: 0 0 8px; }
.srv-rm .menu-pop form.srv-rm-form { display: block; border-top: 0; margin: 0; padding: 0; }
.srv-rm-form label { display: block; margin-bottom: 8px; text-align: left; white-space: normal; }
.srv-rm-form input { display: block; width: 100%; margin-top: 4px; }
.srv-rm .menu-pop .srv-rm-form button { justify-content: center; color: #fff; }
.srv-rm-why { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.srv-rm-why svg { flex: none; color: var(--accent); margin-top: 2px; }
.srv-rm-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.srv-rm-box > strong { display: block; margin-bottom: 6px; }
/* phones: the list scrolls inside its card, so the box sits over the page instead of being cut off */
@media (max-width: 900px) { .srv-rm[open] .menu-pop.srv-rm-pop { position: fixed; left: 16px; right: 16px; top: 140px; width: auto; z-index: 40; } }

/* Website page: "point your domain to us" name server card with copy buttons (Bilal 2026-12-02, 0.89.20) */
.ns-step { border: 1px solid var(--ok-line); border-radius: 12px; background: var(--card); margin: 0 0 16px; overflow: hidden; }
.ns-step-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--brand-tint); }
.ns-step-icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); color: var(--brand); }
.ns-step-icon .icon { width: 20px; height: 20px; }
.ns-step-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ns-step-tx strong { font-size: 1rem; overflow-wrap: anywhere; }
.ns-step-tx span { color: var(--ink-2); font-size: .9rem; }
.ns-step-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); }
.ns-step-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: vp-pulse 1.6s ease-in-out infinite; }
.ns-step-list { display: grid; gap: 8px; padding: 14px 18px 4px; }
.ns-step-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ns-step-no { flex: none; font-size: .72rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-tint); padding: 3px 7px; border-radius: 6px; }
.ns-step-row code { flex: 1; min-width: 0; font: .92rem var(--mono, ui-monospace, monospace); overflow-wrap: anywhere; background: none; padding: 0; user-select: all; }
.ns-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.ns-copy:hover { border-color: var(--brand); color: var(--brand-ink); }
.ns-copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ns-copy .icon, .ns-copy-all .icon { width: 14px; height: 14px; }
.ns-copy .c-done, .ns-copy-all .c-done { display: none; }
.ns-copy.copied, .ns-copy-all.copied { border-color: var(--brand); background: var(--brand-tint); color: var(--ok); }
.ns-copy.copied .c-idle, .ns-copy-all.copied .c-idle { display: none; }
.ns-copy.copied .c-done, .ns-copy-all.copied .c-done { display: inline; }
.ns-step-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 18px 16px; }
.ns-step-foot form { margin: 0; }
.ns-step-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ns-step-note .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .ns-step-head { flex-wrap: wrap; padding: 14px; }
  .ns-step-tx { flex: 1 1 calc(100% - 52px); }
  .ns-step-state { order: 3; margin-left: 52px; }
  .ns-step-list { padding: 12px 14px 2px; }
  .ns-step-row { padding: 7px 7px 7px 10px; gap: 8px; }
  .ns-step-row code { font-size: .84rem; }
  .ns-copy .c-idle, .ns-copy .c-done { display: none !important; }
  .ns-step-foot { padding: 12px 14px 14px; }
  .ns-step-note { margin-left: 0; width: 100%; }
}

/* Find a domain: search card, live results, extensions (Bilal 2026-12-02, 0.89.21) */
.dsx-hero { padding: 22px 24px 20px; margin-bottom: 16px; background: linear-gradient(180deg, var(--brand-tint), var(--card) 70%); }
.dsx-label { display: block; font-size: 1.05rem; font-weight: 650; margin: 0 0 10px; }
.dsx-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--input-bg, var(--card)); box-shadow: 0 2px 10px rgba(16, 24, 40, .06); transition: border-color .15s, box-shadow .15s; }
.dsx-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.dsx-ico { flex: none; display: inline-flex; color: var(--ink-3); }
.dsx-ico .icon { width: 20px; height: 20px; }
.dsx-bar input { flex: 1; min-width: 0; border: 0; box-shadow: none; outline: none; background: transparent; color: inherit; font: inherit; font-size: 1.15rem; padding: 10px 0; }
.dsx-bar input::-webkit-search-cancel-button { cursor: pointer; }
.dsx-spin { flex: none; display: none; color: var(--brand); }
.dsx-spin .icon { width: 18px; height: 18px; animation: dsx-rot .9s linear infinite; }
.dsx-form.is-busy .dsx-spin { display: inline-flex; }
@keyframes dsx-rot { to { transform: rotate(360deg); } }
.dsx-go { flex: none; padding: 11px 24px; border-radius: 10px; font-size: .98rem; }
.dsx-help { margin: 10px 2px 0; font-size: .86rem; color: var(--ink-2); }
.dsx-pop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dsx-chip { font-size: .82rem; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.dsx-chip b { color: var(--ink); margin-right: 2px; }
.dsx-results { margin-bottom: 16px; }
.dsx-list { list-style: none; margin: 0; padding: 0; }
.dsx-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dsx-list .dsx-row:first-child { border-top: 0; }
.dsx-row.dsx-first { background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); }
.dsx-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dsx-domain { font-size: 1.08rem; font-weight: 650; overflow-wrap: anywhere; }
.dsx-domain em { font-style: normal; color: var(--brand-ink); }
.dsx-taken .dsx-domain, .dsx-unknown .dsx-domain { color: var(--ink-2); }
.dsx-taken .dsx-domain em, .dsx-unknown .dsx-domain em { color: var(--ink-3); }
.dsx-state { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); }
.dsx-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.dsx-free .dsx-state { color: var(--ok); font-weight: 600; }
.dsx-free .dsx-state i { background: var(--ok); }
.dsx-taken .dsx-state i { background: var(--danger); }
.dsx-price { display: flex; flex-direction: column; gap: 2px; }
.dsx-price strong { font-size: 1.05rem; }
.dsx-price span { font-size: .78rem; color: var(--ink-3); }
.dsx-act { justify-self: end; }
.dsx-buy { display: flex; align-items: center; gap: 8px; margin: 0; }
.dsx-buy select { width: auto; padding: 7px 10px; font-size: .84rem; }
.dsx-act .btn .icon { width: 14px; height: 14px; }
.dsx-tlds .card-head { gap: 12px; flex-wrap: wrap; }
.dsx-find { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg, var(--card)); }
.dsx-find .icon { width: 14px; height: 14px; color: var(--ink-3); }
.dsx-find input { border: 0; box-shadow: none; outline: none; background: transparent; color: inherit; font: inherit; font-size: .86rem; padding: 7px 0; width: 170px; }
.dsx-grid .tld { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; transition: border-color .15s; }
.dsx-grid .tld:hover { border-color: var(--brand); }
.dsx-grid .tld[hidden] { display: none; }
.dsx-grid .tld strong { font-size: 1.12rem; }
.dsx-grid .dsx-from { color: var(--ink); font-size: .9rem; font-weight: 600; }
.dsx-grid .dsx-from small { color: var(--ink-3); font-weight: 400; }
.dsx-grid .dsx-renew { font-size: .75rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .dsx-hero { padding: 16px; }
  .dsx-bar { padding: 5px 5px 5px 12px; gap: 8px; }
  .dsx-bar input { font-size: 1rem; }
  .dsx-go { padding: 10px 16px; }
  .dsx-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 14px; }
  .dsx-name { grid-column: 1 / -1; }
  .dsx-act { justify-self: end; }
  .dsx-buy select { max-width: 150px; }
  .dsx-find { width: 100%; }
  .dsx-find input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dsx-spin .icon { animation: none; } }

/* Moves: "Domains and DNS" ticks (Bilal 2026-12-02) */
.imp-dns { margin-top: 16px; }
.imp-dns .check { align-items: flex-start; gap: 10px; }
.imp-dns .check input { margin-top: 3px; flex: none; }
.imp-dns .check > span > .small { display: block; margin-top: 2px; line-height: 1.45; }

/* Override auto-suspend box (service + plan edit forms, Bilal 2026-12-02) */
.so-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--chip); }
.so-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.so-box .grid-2 { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.so-box .hint { margin: 4px 0 8px; }
.so-owed { font-size: .86rem; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); }
.so-owed.warn { color: var(--warn-ink, #9a5b00); }

/* Website move: databases that came with it (Bilal 2026-12-02) */
.mig-dbs-note { padding: 12px 18px 0; margin: 0; }
.mig-dbs table.list { margin-top: 8px; }
.mig-pw { margin-top: 4px; }
.mig-pw summary { cursor: pointer; color: var(--brand); }
.mig-pw code { word-break: break-all; margin-right: 6px; }
@media (max-width: 640px) {
    .mig-dbs table.list thead { display: none; }
    .mig-dbs table.list, .mig-dbs table.list tbody, .mig-dbs table.list tr, .mig-dbs table.list td { display: block; width: 100%; }
    .mig-dbs table.list tr { padding: 10px 14px; border-top: 1px solid var(--line); }
    .mig-dbs table.list td { padding: 3px 0; border: 0; }
    .mig-dbs table.list td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
}

/* Admin bulk move: messages to the client, per channel (Bilal 2026-12-02) */
.imp-notify .card-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.imp-notify-table th.c, .imp-notify-table td.c { text-align: center; width: 120px; }
.imp-notify-table th.c .ico, .imp-notify-table th.c svg { vertical-align: -3px; }
.imp-tick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px; }
.imp-tick input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.imp-tick-lbl { display: none; font-size: 13px; }
.imp-notify-note { padding: 10px 18px 14px; margin: 0; }
@media (max-width: 640px) {
    .imp-notify-table thead { display: none; }
    .imp-notify-table, .imp-notify-table tbody, .imp-notify-table tr { display: block; width: 100%; }
    .imp-notify-table tr { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
    .imp-notify table.list.imp-notify-table td { border: 0; padding: 0; }
    .imp-notify-table td:first-child { flex-basis: 100%; }
    .imp-notify-table td.c { width: auto; text-align: left; }
    .imp-tick { padding: 4px 0; }
    .imp-tick-lbl { display: inline; }
}

/* Admin client profile → Migrations (Bilal 2026-12-02) */
.mg-toolbar .mg-intro { display: flex; flex-direction: column; gap: 2px; }
.mg-list { display: flex; flex-direction: column; }
.mg-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.mg-row:first-child { border-top: 0; }
.mg-row:hover { background: var(--hover); }
.mg-ic { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.mg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mg-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-bar { max-width: 420px; height: 6px; margin-top: 4px; }
.mg-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
    .mg-row { flex-wrap: wrap; padding: 12px 14px; }
    .mg-ic { flex-basis: 34px; height: 34px; }
    .mg-main { flex-basis: calc(100% - 48px); }
    .mg-side { flex-basis: 100%; padding-left: 48px; justify-content: space-between; }
}

/* Admin plan page: actions in the hero, panels on demand (Bilal 2026-12-02) */
.pl-head-end { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-stat strong.pl-small { font-size: 15px; line-height: 1.35; }
.pl-notes { white-space: pre-line; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.pl-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.pl-danger .card-head strong { color: var(--danger); }
.pm-wrap:empty { display: none; }
.pm-wrap > [hidden] { display: none; }
@media (max-width: 640px) {
  .pl-hero .cp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-hero .cp-actions > * { width: 100%; }
  .pl-hero .cp-actions form.inline .btn, .pl-hero .cp-actions > .btn { width: 100%; justify-content: center; }
  .pl-hero .cp-actions .cp-more > summary { width: 100%; justify-content: center; }
  .pl-hero .cp-actions .cp-more .menu-pop { left: 0; right: auto; max-width: calc(100vw - 40px); }
}
.res-card .pl-cpu { margin: 14px 18px 0; }

/* Admin invoices: bulk delete (Bilal 2026-12-02) */
.inv-bar { gap: 14px; justify-content: flex-start; align-items: center; }
.inv-pick { width: 32px; }
.inv-pick input[disabled] { opacity: .35; cursor: not-allowed; }
.inv-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.inv-del { color: var(--danger); }
.btn.inv-del .icon { color: var(--danger); }

/* Bulk move: every database of the old account and where it goes (Bilal 2026-12-02) */
.imp-dbs-acc { padding: 10px 16px 0; color: var(--muted); }
.imp-dbs-list { list-style: none; margin: 0; padding: 4px 0; }
.imp-dbs-list li { display: grid; grid-template-columns: 28px minmax(160px, 260px) 1fr; gap: 10px; align-items: start; padding: 10px 16px; border-top: 1px solid var(--line); }
.imp-dbs-list li:first-child { border-top: 0; }
.imp-dbs-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.imp-dbs-ico svg { width: 15px; height: 15px; }
.imp-dbs-name { padding-top: 4px; word-break: break-all; }
.imp-dbs-where { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 2px; }
.imp-dbs-where .pill svg { width: 12px; height: 12px; vertical-align: -1px; }
@media (max-width: 640px) {
    .imp-dbs-list li { grid-template-columns: 28px 1fr; }
    .imp-dbs-where { grid-column: 2; }
}
.imp-dbs-note { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--warn-bg); color: var(--warn-ink); }
.imp-dbs-site { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ok); }
.imp-dbs-site svg { width: 14px; height: 14px; }

/* Admin Migrate: where do the websites go (Bilal 2026-12-02) */
.mv-plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 6px; }
.mv-plan legend { font-weight: 700; padding: 0 6px; }
.mv-plan-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mv-plan-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.mv-plan-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.mv-plan-opt input { width: auto; margin-top: 3px; }
.mv-plan-opt span { display: flex; flex-direction: column; gap: 3px; }
.mv-plan-opt small { color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) { .mv-plan .grid-2 { grid-template-columns: 1fr; } }
.imp-dbs-same { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--brand-tint); color: var(--ok); }
.imp-dbs-same svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Migrate page: hosting plan source (ready-made / own size) (Bilal 2026-12-02) */
.mv-src { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 2px 0 12px; }
.mv-src-opt { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
.mv-src-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.mv-src-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.mv-src-opt input { width: auto; margin: 0; }
.mv-own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .mv-own { grid-template-columns: 1fr 1fr; } .mv-plan .grid-2 { grid-template-columns: 1fr; } }

/* Migrate page: move to one of our servers or a DirectAdmin server (Bilal 2026-12-02) */
.mv-dest .mv-plan-opt strong { display: inline-flex; gap: 6px; align-items: center; }
.mv-dest .mv-plan-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.mv-da { border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 10px; }
.mv-da-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 4px 0 8px; }
.mv-da-ticks .check { align-items: flex-start; }
@media (max-width: 640px) { .mv-da .grid-2, .mv-da-ticks { grid-template-columns: 1fr; } }

/* Website → Settings & SSL → Logs: read inline */
pre.json.log-view { max-height: 460px; }
[data-site-logs] .btn.light.active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-site-logs] .card-head { flex-wrap: wrap; gap: 8px; }

/* Move forms: "Test connection" (Bilal 2026-12-03) */
.pt-box { margin: 12px 0 4px; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pt-out { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--card); }
.pt-out.busy { border-style: dashed; }
.pt-out.good { border-color: var(--ok-line, var(--ok)); background: var(--brand-tint); }
.pt-out.bad { border-color: var(--danger-line, var(--danger)); background: var(--danger-tint); }
.pt-head { font-weight: 600; margin-bottom: 6px; }
.pt-out.good .pt-head { color: var(--ok); }
.pt-out.bad .pt-head { color: var(--danger); }
.pt-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.pt-list li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.pt-list li strong { font-weight: 600; white-space: nowrap; }
.pt-list .pt-ok strong { color: var(--ok); }
.pt-list .pt-warn strong { color: var(--warn-ink); }
.pt-list .pt-fail strong { color: var(--danger); }
.pt-list .pt-fail span { color: var(--danger); }
@media (max-width: 640px) {
  .pt-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Admin → cPanel servers (Bilal 2026-12-03) */
.cps-ic, .cps-avatar { background: #fff1e6; color: #c2570c; }
.cps-err { color: var(--bad); margin-top: 8px; }
.cps-edit .card-body { display: grid; gap: 18px; }
.cps-remove { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 6px; }
.cps-panel .da-grid { margin-bottom: 10px; }
.cps-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 18px; margin: 6px 0 12px; }
.cps-table tr.cps-gone td { opacity: .6; }
.cps-table td .badge { margin-left: 6px; }
@media (max-width: 640px) {
  .cps-ticks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  table.list.dns-table.cps-table tr { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .cps-table .cps-acct { grid-area: 1 / 2 / 2 / 5; }
  .cps-table .cps-plan { grid-area: 2 / 2; }
  .cps-table .cps-disk { grid-area: 2 / 3; }
  .cps-table .cps-client { grid-area: 3 / 2 / 4 / 5; min-width: 0; }
  .cps-table .cps-bk { grid-area: 2 / 4; min-width: 0; }
  .cps-table .cps-move { grid-area: 4 / 2 / 5 / 5; }
  .cps-table .cps-plan::before, .cps-table .cps-disk::before, .cps-table .cps-client::before, .cps-table .cps-bk::before { content: attr(data-label); display: block; font-size: .68rem; color: var(--ink-3); margin-bottom: 2px; }
}
@media (max-width: 640px) {
  .cps-hero .cp-actions { grid-template-columns: 1fr 1fr; }
  .cps-hero .cp-id h1 { font-size: 1.2rem; }
  .cps-hero .cp-meta li { overflow-wrap: anywhere; }
  .cps-panel .da-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) { details.inline-details.cps-add .pop { left: 0; right: auto; width: 440px; } }
.cps-card .das-id { min-width: 0; }
.cps-card .das-id .mono { overflow-wrap: anywhere; }

/* Admin → WHMCS import (Bilal 2026-12-03) */
.wh-avatar { background: #e8f0fe; color: #1d4ed8; }
.wh-edit .card-body, .wh-connect .card-body { display: grid; gap: 18px; }
.wh-form { display: grid; gap: 10px; }
.wh-form .da-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wh-sync { display: flex; gap: 8px; align-items: center; }
.wh-task { display: grid; gap: 8px; padding: 12px 16px; margin-bottom: 12px; color: var(--ink); }
.wh-task:hover { text-decoration: none; border-color: var(--brand); }
.wh-task-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wh-task progress, .wh-progress progress { width: 100%; }
.wh-progress { display: grid; gap: 12px; padding: 16px; }
.wh-progress .cp-stats { margin-bottom: 0; }
.wh-toolbar select { max-width: 180px; }
.wh-panel { display: grid; gap: 12px; }
.wh-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.wh-panel legend { margin-bottom: 4px; padding: 0; }
.wh-table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.wh-who { min-width: 200px; }
.wh-result th:nth-child(1) { width: 36%; }
.wh-result th:nth-child(2) { width: 26%; }
.wh-who .badge { margin-left: 4px; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wh-chips .chip { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--chip); color: var(--ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-svc { margin-bottom: 6px; }
.wh-svc:last-child { margin-bottom: 0; }
.wh-svc-name { font-weight: 600; margin-right: 4px; overflow-wrap: anywhere; }
.wh-bad { color: var(--bad); }
@media (max-width: 760px) {
  .wh-table thead { display: none; }
  .wh-table, .wh-table tbody, .wh-table tr, .wh-table td { display: block; width: auto; }
  .wh-table tr { position: relative; padding: 12px 14px 12px 44px; border-bottom: 1px solid var(--line); }
  .wh-table.wh-result tr { padding-left: 14px; }
  .wh-table td { border: 0; padding: 3px 0; min-width: 0; }
  .wh-table td.dt-pick { position: absolute; left: 14px; top: 14px; padding: 0; }
  .wh-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
  .wh-progress .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-hero .cp-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wh-hero .cp-actions form, .wh-hero .cp-actions .btn { width: 100%; }
}

/* Move: connecting to the old panel, step by step (Bilal 2026-12-03) */
.imc .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.imc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.imc-head strong { overflow-wrap: anywhere; }
.imc-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.imc-ico.bad { background: color-mix(in srgb, var(--danger, #c0392b) 12%, transparent); color: var(--danger, #c0392b); }
.imc-ico svg { width: 22px; height: 22px; }
.imc-live svg, .imc-step.s-now .imc-dot svg { animation: tasks-spin 1s linear infinite; }
.imc-steps { list-style: none; margin: 0; padding: 6px 18px 4px; }
.imc-step { display: flex; gap: 14px; position: relative; padding: 10px 0 14px; }
.imc-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 40px; bottom: -6px; width: 2px; background: var(--line); }
.imc-step.s-ok:not(:last-child)::before { background: var(--brand); }
.imc-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  border: 2px solid var(--line); color: var(--muted); background: var(--paper, #fff); }
.imc-dot svg { width: 15px; height: 15px; }
.imc-step.s-ok .imc-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.imc-step.s-now .imc-dot { border-color: var(--accent, #f08a24); color: var(--accent, #f08a24); }
.imc-step.s-fail .imc-dot { background: var(--danger, #c0392b); border-color: var(--danger, #c0392b); color: #fff; }
.imc-step.s-todo .imc-tx strong { color: var(--muted); font-weight: 500; }
.imc-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 4px; }
.imc-tx span { overflow-wrap: anywhere; white-space: normal; }
.imc-err { color: var(--danger, #c0392b); }
.imc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .imc-steps { padding: 4px 12px; } .imc-foot .btn { width: 100%; justify-content: center; } }

/* DirectAdmin server → Admin backups available (Bilal 2026-12-03) */
.dab-settings .card-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.dab-grid { margin-bottom: 10px; }
.dab-bulk { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius, 12px) var(--radius, 12px); margin: 0; box-shadow: none; }
.dab-table .dab-name { overflow-wrap: anywhere; margin-top: 2px; }
.dab-table .dab-file .chip { margin-left: 6px; }
.dab-table input[type=text] { min-width: 200px; }
.dab-table input[type=number] { width: 110px; }
.dab-table select { min-width: 150px; }
.dab-table tr.dab-off td { opacity: .7; }
@media (max-width: 760px) {
  .dab-settings .da-grid { grid-template-columns: 1fr; }
  table.list.dns-table.dab-table tr { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); }
  .dab-table .dab-file { grid-area: 1 / 2 / 2 / 4; }
  .dab-table .dab-size { grid-area: 2 / 2; }
  .dab-table .dab-state { grid-area: 2 / 3; }
  .dab-table .dab-client { grid-area: 3 / 2 / 4 / 4; }
  .dab-table .dab-pkg { grid-area: 4 / 2; }
  .dab-table .dab-price { grid-area: 4 / 3; }
  .dab-table input[type=text], .dab-table select, .dab-table input[type=number] { min-width: 0; width: 100%; }
  .dab-table td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; color: var(--ink-3); margin-bottom: 2px; }
}

/* cPanel servers: link accounts to clients (Bilal 2026-12-03) */
.cps-link-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.cps-link-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cps-client .badge { vertical-align: middle; }
.cps-table .cps-disk { white-space: nowrap; }
.cps-link-acts > details, .cps-link-acts > form { display: inline-block; flex: 0 0 auto; margin: 0; }
@media (min-width: 901px) { .cps-table .cps-client { min-width: 210px; } }
@media (max-width: 760px) {
  details.inline-details.cps-link { display: block; width: 100%; }
  details.inline-details.cps-link .pop { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* Settings → Change billing server */
.sc-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 12px; }
.sc-steps li { line-height: 1.5; }
.sc-steps li .cmd { margin: 8px 0; white-space: pre-wrap; word-break: break-all; }

/* Website → Advanced → App repair (Bilal 2026-12-03) */
.ar .spin-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: tasks-spin 0.8s linear infinite; vertical-align: -1px; }
.ar-sum { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); }
.ar-sum svg { flex: none; width: 22px; height: 22px; }
.ar-sum.ok { background: color-mix(in srgb, var(--brand) 8%, transparent); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.ar-sum.ok svg { color: var(--brand); }
.ar-sum.warn { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ar-sum.warn svg { color: var(--accent); }
.ar-list { list-style: none; margin: 0; padding: 0; }
.ar-list > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); }
.ar-list > li:first-child { border-top: 0; }
.ar-list.compact > li { padding: 10px 18px; }
.ar-list > li > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.ar-list > li.ok > svg { color: var(--brand); }
.ar-list > li.bad > svg { color: #d64545; }
.ar-list > li.warn > svg { color: var(--accent); }
.ar-list > li > div { min-width: 0; flex: 1; }
.ar-path { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--line-soft); }
@media (max-width: 640px) { .ar-list > li { padding: 10px 14px; } }

/* Website → Database: all tables + import (Bilal 2026-12-03) */
.db-side-acts { display: grid; gap: 6px; }
.db-side-acts .btn { justify-content: flex-start; width: 100%; }
.db-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper, var(--card)); min-height: 44px; }
.db-bulk .check { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.db-bulk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.db-bulk-acts[hidden] { display: none; }
.db-overview .num, .db-overview th.num { text-align: right; font-variant-numeric: tabular-nums; }
.db-overview td.db-tname { max-width: none; }
.db-overview .db-sort { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.db-imp { display: grid; gap: 12px; max-width: 640px; }
.db-imp-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--hover); cursor: pointer; }
.db-imp-drop .icon { width: 22px; height: 22px; color: var(--brand); }
.db-imp-drop span { font-weight: 600; }
.db-imp-drop input[type=file] { flex: 1 1 220px; min-width: 0; font-size: .86rem; }
.db-imp-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.db-imp-opt input { margin-top: 3px; flex: none; }
.db-imp-opt > span { display: block; }
.db-imp-warn { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.db-imp-warn .icon { width: 16px; height: 16px; color: var(--accent, #e8833a); flex: none; margin-top: 2px; }
.db-imp-out { display: grid; gap: 10px; max-width: 720px; }
.db-imp-progress { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.db-imp-line { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.db-imp-progress progress.bar { width: 100%; }
.db-imp-out .fm-msg { border: 0; border-radius: 8px; }
.db-imp-err { padding: 10px 12px; border-radius: 8px; background: var(--danger-tint); color: var(--danger); display: grid; gap: 4px; font-size: .86rem; }
.db-imp-err code { font: .78rem/1.4 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .db-bulk-acts { margin-left: 0; width: 100%; } .db-side-acts { grid-template-columns: repeat(3, 1fr); } .db-side-acts .btn { justify-content: center; } }
.db-head-plain h3 { font-family: inherit; font-size: 1.05rem; }

/* Admin → Firewall (Bilal 2026-12-04) */
.fw-head { align-items: flex-end; }
.fw-pick select { min-width: 240px; }
.fw-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 18px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.fw-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.fw-shield { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--chip); color: var(--ink-3); }
.fw-shield .icon { width: 28px; height: 28px; }
.fw-shield.on { background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--ok-line); }
.fw-shield.off { background: var(--danger-tint); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.fw-hero-id { min-width: 0; }
.fw-hero-id h2 { margin: 0 0 6px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fw-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--ink-2); }
.fw-hero-meta b { text-transform: none; }
.fw-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fw-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fw-hero-actions form { margin: 0; }
.fw-sync { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--chip); color: var(--ink-2); }
.fw-sync .icon { width: 15px; height: 15px; }
.fw-sync.ok { background: var(--brand-tint); color: var(--ok); }
.fw-sync.warn { background: var(--warn-bg); color: var(--warn-ink); }
.fw-sync.bad { background: var(--danger-tint); color: var(--danger); }
.fw-sync.busy .icon { animation: tasks-spin 1.2s linear infinite; }
.cp-stats.fw-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* the judging order: one connection goes down the list, the first match decides */
.fw-path { margin-bottom: 16px; }
.fw-steps { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 0; counter-reset: fw; }
.fw-step { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 10px 0 10px 0; }
.fw-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.fw-step-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: var(--card); border: 2px solid var(--line); color: var(--ink-3); }
.fw-step-ic .icon { width: 18px; height: 18px; }
.fw-step.drop .fw-step-ic { border-color: var(--danger-line); color: var(--danger); background: var(--danger-tint); }
.fw-step.pass .fw-step-ic { border-color: var(--ok-line); color: var(--brand); background: var(--brand-tint); }
.fw-step.ban .fw-step-ic { border-color: var(--warn-line); color: var(--warn-ink); background: var(--warn-bg); }
.fw-step.warn .fw-step-ic { border-color: var(--warn-line); color: var(--warn-ink); background: var(--warn-bg); }
.fw-step-t { display: flex; flex-direction: column; min-width: 0; }
.fw-step-t b { font-size: .95rem; }
.fw-step-t span { font-size: .84rem; color: var(--ink-3); }
.fw-step-n { text-align: right; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; text-decoration: none; }
.fw-step-n small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.fw-step-n:hover { color: var(--brand); text-decoration: none; }

.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fw-checks { list-style: none; margin: 0; padding: 8px 18px; }
.fw-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.fw-checks li:last-child { border-bottom: 0; }
.fw-checks .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.fw-checks .ok .icon { color: var(--brand); }
.fw-checks .warn .icon { color: var(--warn-ink); }
.fw-checks .bad .icon { color: var(--danger); }
.fw-note { padding: 10px 18px 16px; }
.fw-recent { list-style: none; margin: 0; padding: 6px 18px 12px; }
.fw-recent li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fw-recent li:last-child { border-bottom: 0; }
.fw-recent-w { font-weight: 600; font-size: .9rem; }
.fw-recent li > .small:nth-child(2) { grid-column: 1; overflow-wrap: anywhere; }
.fw-recent time { grid-column: 2; grid-row: 1; text-align: right; }

.fw-add { margin-bottom: 16px; }
.fw-add-form { display: grid; grid-template-columns: auto 160px 1fr 200px auto; gap: 0 14px; align-items: start; padding: 14px 18px 4px; }
.fw-add-form .seg { margin-bottom: 0; }
.fw-add-form textarea { resize: vertical; min-height: 40px; }
.fw-f-go { padding-top: 26px; }
.fw-add-block { grid-template-columns: 1fr 260px; }
.fw-add-side { display: flex; flex-direction: column; gap: 0; }
.fw-add-side .btn { justify-content: center; margin-bottom: 14px; }
.fw-list-head { gap: 12px; flex-wrap: wrap; }
.fw-search { display: flex; gap: 6px; margin: 0; }
.fw-search input { width: 220px; }
.fw-bulk { border-bottom: 1px solid var(--line); margin: 0; border-radius: 0; }
.fw-table td { vertical-align: middle; }
.fw-table tr.fw-ours td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.fw-table .fw-act { text-align: right; white-space: nowrap; }
.fw-table .fw-act form { margin: 0; display: inline; }
.fw-port { display: inline-flex; align-items: baseline; gap: 6px; }
.fw-port b { font-size: 1rem; }
.fw-proto { font-size: .68rem; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; background: var(--chip); color: var(--ink-2); }
.fw-who { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.fw-who .icon { width: 15px; height: 15px; }
.fw-who.all { color: var(--warn-ink); }
.fw-who.some { color: var(--brand); }
.fw-who.closed { color: var(--ink-3); }
.fw-who.warn { color: var(--danger); font-weight: 600; }
.fw-sys { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: .84rem; }
.fw-sys .icon { width: 14px; height: 14px; }
.fw-trust-warn { display: flex; gap: 8px; align-items: flex-start; }
.fw-trust-warn .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.fw-jails { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.fw-jail .card-head strong { display: inline-flex; align-items: center; gap: 8px; }
.fw-jail .card-head .icon { width: 17px; height: 17px; color: var(--warn-ink); }
.fw-jail-nums { display: flex; gap: 22px; padding: 12px 18px 4px; font-size: .86rem; color: var(--ink-3); }
.fw-jail-nums b { font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fw-ips { list-style: none; margin: 0; padding: 4px 18px 12px; max-height: 420px; overflow-y: auto; }
.fw-ips li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.fw-ips li:last-child { border-bottom: 0; }
.fw-ip-act { display: flex; gap: 6px; }
.fw-ip-act form { margin: 0; }
.fw-inline { display: flex; gap: 8px; padding: 14px 18px; }
.fw-inline input { max-width: 280px; }

@media (max-width: 1100px) {
  .fw-add-form { grid-template-columns: auto 160px 1fr; }
  .fw-f-note { grid-column: 1 / 3; }
  .fw-f-go { grid-column: 3; }
}
@media (max-width: 900px) {
  .cp-stats.fw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fw-head { align-items: stretch; }
  .fw-pick, .fw-pick label, .fw-pick select { width: 100%; min-width: 0; }
  .fw-hero { padding: 16px; }
  .fw-hero-side { align-items: stretch; width: 100%; }
  .fw-hero-actions { justify-content: stretch; }
  .fw-hero-actions form, .fw-hero-actions .btn { flex: 1; justify-content: center; }
  .fw-sync { align-self: flex-start; }
  .fw-add-form, .fw-add-block { grid-template-columns: 1fr; padding: 14px 14px 0; }
  .fw-f-note, .fw-f-go { grid-column: auto; }
  .fw-f-go { padding-top: 0; margin-bottom: 14px; }
  .fw-f-go .btn { width: 100%; justify-content: center; }
  .fw-step { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .fw-step-ic { width: 36px; height: 36px; }
  .fw-step:not(:last-child)::after { left: 17px; top: 42px; }
  .fw-steps { padding: 10px 14px 14px; }
  .fw-search, .fw-search input { width: 100%; }
  .fw-jails { grid-template-columns: 1fr; }
  .fw-inline { flex-direction: column; }
  .fw-inline input { max-width: none; }
  /* tables become one small card per row: tick | details | action */
  table.list.fw-table thead { display: none; }
  table.list.fw-table, table.list.fw-table tbody { display: block; }
  table.list.fw-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
  table.list.fw-table td { display: block; padding: 0; border: 0; grid-column: 2; }
  table.list.fw-table td.hide-sm, table.list.fw-table td:empty { display: none; }
  table.list.fw-table td.dt-pick { grid-column: 1; grid-row: 1 / span 3; padding-top: 2px; }
  table.list.fw-table td.fw-act { grid-column: 3; grid-row: 1; }
  table.list.fw-table tr.fw-ours td:first-child { box-shadow: none; }
  .fw-table tr.fw-ours { box-shadow: inset 3px 0 0 var(--brand); }
}

/* DirectAdmin server page: one action + "…" menu per user row (Bilal 2026-12-05) */
.da-table td.actions-cell { text-align: right; width: 1%; }
.da-table td.actions-cell > * { vertical-align: middle; }
.da-table td.actions-cell .inline-form, .da-table td.actions-cell details { display: inline-block; margin: 0 0 0 4px; }
.da-more > summary.btn { padding-left: 9px; padding-right: 9px; }
.da-more .menu-pop { top: 36px; width: 260px; text-align: left; white-space: normal; padding: 6px; }
.da-more .menu-pop form { border-top: 0; margin: 0; padding: 0; }
.da-more .menu-pop .menu-label { padding: 8px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-2); font-weight: 600; }
.da-more .menu-pop .menu-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.da-more .menu-pop a.menu-sep { border-radius: 0 0 8px 8px; }
.da-more .menu-pop button svg, .da-more .menu-pop a svg { width: 16px; height: 16px; flex: none; }
.da-table td.c-usage { max-width: 220px; }
@media (max-width: 760px) {
  table.da-table td.actions-cell { width: auto; text-align: left; justify-content: flex-start; }
  table.da-table td.actions-cell .inline-form, table.da-table td.actions-cell details { margin: 0; }
  .da-more .menu-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; z-index: 60; box-shadow: 0 -6px 30px var(--shadow); }
}

/* cPanel servers → Move to DirectAdmin: only the chosen DirectAdmin server's owner + package fields */
.cps-srvblk:not([hidden]) { display: contents; }

/* cPanel servers → Back up now (Bilal 2026-12-05) */
.cpb-status .card-body, .cpb-sum .card-body { display: grid; gap: 10px; }
.cpb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cpb-line .btn { margin-left: auto; }
.cpb-bad { color: var(--danger); }
.cpb-tiles { margin: 4px 0 0; }
.cpb-reasons ul { margin: 6px 0 0; padding-left: 18px; }
.cpb-reasons li { margin: 2px 0; }
.cpb-mini { height: 6px; max-width: 180px; margin-top: 4px; }
.cpb-acts { white-space: nowrap; }
.cpb-acts .inline-form { display: inline-block; margin: 0 2px 0 0; }
.cps-bk .inline-form { margin: 4px 0 0; }
@media (max-width: 760px) {
    .cpb-acts { white-space: normal; }
    .cpb-line .btn { margin-left: 0; }
}
.cps-hero .cp-who { flex: 1 1 380px; }
.cps-hero .cp-actions { flex: 0 1 auto; justify-content: flex-end; }
#cps-backup, #cps-backup-all, .cpb-status { margin-bottom: 16px; }
@media (min-width: 761px) { .cps-bk { min-width: 130px; } }
@media (max-width: 760px) {
    table.list.cpb-table thead { display: none; }
    table.list.cpb-table, table.list.cpb-table tbody, table.list.cpb-table tr, table.list.cpb-table td { display: block; width: auto; }
    table.list.cpb-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    table.list.cpb-table td { padding: 3px 0; border: 0; text-align: left; }
    table.list.cpb-table td.t-right { text-align: left; }
    table.list.cpb-table td[data-label]::before { content: none; }
    .cpb-acts { margin-top: 6px; }
}

/* Backups page: backup servers + Sync (Bilal 2026-12-05) */
.bk-dest { margin-bottom: 18px; }
.bk-dest .card-head { align-items: flex-start; gap: 12px; }
.bk-dest .card-head .small.muted { font-weight: 400; max-width: 62ch; margin-top: 2px; }
.bk-dest-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(170px, .8fr) minmax(220px, 1.6fr) 250px; gap: 10px 18px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.bk-dest-who strong { margin-right: 6px; }
.bk-dest-who .badge { vertical-align: 1px; }
.bk-dest-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bk-dest-state .icon { width: 15px; height: 15px; }
.bk-dest-state.ok { color: var(--ok); }
.bk-dest-state.warn { color: var(--warn-ink); }
.bk-dest-state.run { color: var(--brand); }
.bk-dest-state.run .icon { animation: tasks-spin 1.2s linear infinite; }
.bk-dest-act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bk-dest-act form { margin: 0; }
.bk-forget .menu-pop { right: 0; left: auto; top: 38px; width: 300px; padding: 12px; white-space: normal; text-align: left; }
.bk-forget .menu-pop form.bk-forget-form { display: block; border-top: 0; margin: 0; padding: 0; }
.bk-forget-form p { margin: 0 0 8px; }
.bk-forget-form label { display: block; margin-bottom: 8px; white-space: normal; }
.bk-forget-form input { display: block; width: 100%; margin-top: 4px; }
.bk-forget .menu-pop .bk-forget-form button { justify-content: center; color: #fff; width: 100%; }
.bk-dest-confirm { grid-column: 1 / -1; }
.bk-dest-confirm .alert { margin: 0 0 10px; }
.bk-dest-confirm-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bk-dest-confirm-act form { margin: 0; }
.bk-dest-yes { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-dest-yes input { min-width: 200px; }
@media (max-width: 900px) {
    .bk-dest-row { grid-template-columns: 1fr; gap: 8px; }
    .bk-dest-act { justify-content: flex-start; }
    .bk-forget .menu-pop { left: 0; right: auto; width: min(300px, calc(100vw - 48px)); }
    .bk-dest-yes input { min-width: 0; flex: 1 1 160px; }
}
/* cPanel backup panel: folder field (Bilal 2026-12-05) */
.da-grid > .span-2 { grid-column: 1 / -1; }
.da-grid > .span-2 input[type=text] { width: 100%; max-width: 320px; box-sizing: border-box; }
.da-grid > .span-2 label { display: block; }

/* Admin: green sidebar + top bar with search, status and profile (Bilal 2026-12-05, his sample picture) */
.admin.admin-green { background: linear-gradient(to right, #0c432d 236px, transparent 236px); }
@media (max-width: 860px) { .admin.admin-green { background: none; } }
.admin-green .side { background: linear-gradient(180deg, #0f5638 0%, #0b432c 50%, #083322 100%); border-right: 0; color: #e3efe8; display: flex; flex-direction: column; scrollbar-color: rgba(255,255,255,.25) transparent; }
.admin-green .side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); }
.admin-green .side a { color: rgba(236,246,240,.88); padding: 9px 12px; border-radius: 10px; font-size: .93rem; margin: 1px 0; transition: background .15s, color .15s; }
.admin-green .side a .icon { opacity: .92; color: rgba(236,246,240,.92); }
.admin-green .side a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-green .side a.active { background: linear-gradient(135deg, #25b770, #17a05d); color: #fff; box-shadow: 0 8px 18px rgba(4,40,24,.38); font-weight: 600; }
.admin-green .side a.active .icon { color: #fff; opacity: 1; }
.admin-green .side h6 { color: rgba(214,238,224,.55); margin: 20px 12px 6px; }
.admin-green .side .count { background: #f5a524; color: #231503; }
.admin-green .side .nav-close { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.admin-green .side a.side-brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 22px; margin: 0; color: #fff; border-radius: 0; }
.admin-green .side a.side-brand:hover { background: none; }
.side-logo { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.side-logo svg { width: 30px; height: 25px; }
.side-brand-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side-brand-name { font-size: 1.22rem; font-weight: 800; color: #fff; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-green .side .mark .side-brand-name span { color: #5ee39a; }
.side-brand-sub { font-size: .74rem; color: rgba(220,240,228,.72); font-weight: 500; margin-top: 2px; }
.admin-green .side a.side-help { margin: 24px 0 0; padding: 12px; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); border-radius: 14px; }
.side-help-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(94,227,154,.16); flex: none; }
.side-help-ic .icon { color: #5ee39a !important; }
.side-help-tx { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; line-height: 1.3; }
.side-help-tx b { color: #fff; }
.side-help-tx span { color: #5ee39a; font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.side-help-tx span .icon { width: 13px; height: 13px; color: #5ee39a !important; }

.admin-green .topbar { padding: 12px 28px; gap: 16px; }
.admin-green .topbar-title { flex: 1; }
@media (min-width: 861px) { .admin-green .topbar-title:has(.top-search) > strong { display: none; } }
.top-search { flex: 1; max-width: 460px; margin: 0; }
.top-search-box { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 13px; color: var(--ink-3); cursor: text; }
.top-search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.top-search-box input { border: 0; background: transparent; padding: 0; height: 100%; width: 100%; min-width: 0; font-size: .9rem; color: var(--ink); }
.top-search-box input:focus { box-shadow: none; outline: none; }
.top-status { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .87rem; white-space: nowrap; }
.top-status:hover { text-decoration: none; border-color: var(--brand); }
.top-status i { width: 9px; height: 9px; border-radius: 50%; background: #22b26b; box-shadow: 0 0 0 4px color-mix(in srgb, #22b26b 22%, transparent); }
.top-status.bad { color: var(--danger); }
.top-status.bad i { background: #e5484d; box-shadow: 0 0 0 4px color-mix(in srgb, #e5484d 22%, transparent); }
details.menu > summary.top-who { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; color: var(--ink); }
.top-who-av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #25b770, #0f6b45); color: #fff; font-weight: 800; }
.top-who-tx { display: flex; flex-direction: column; line-height: 1.15; }
.top-who-tx b { font-size: .88rem; }
.top-who-tx span { font-size: .72rem; color: var(--ink-3); }
.top-who > .icon { width: 15px; height: 15px; color: var(--ink-3); }
@media (max-width: 860px) {
  .admin-green .topbar { padding: 10px 14px; gap: 8px; }
  .top-search, .top-who-tx, .top-who > .icon { display: none; }
  details.menu > summary.top-who { padding: 3px; border-radius: 12px; }
  .top-status { height: 38px; padding: 0 11px; }
}
@media (max-width: 420px) { .top-status span { display: none; } .top-status { padding: 0 13px; } }

/* Admin dashboard v3 (Bilal 2026-12-05): money cards, counts, revenue vs expenses, clients, activity, quick actions */
.dsh-head { display: flex; align-items: center; gap: 16px; margin: 2px 0 20px; flex-wrap: wrap; }
.dsh-head-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, #22b26b 14%, var(--card)); flex: none; }
.dsh-head-ic svg { width: 34px; height: 34px; fill: #17a05d; }
.dsh-head-tx { min-width: 0; flex: 1; }
.dsh-head-tx h1 { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.dsh-head-tx p { margin: 2px 0 0; color: var(--ink-2); }
.dsh-period { margin-left: auto; }
details.menu > summary.dsh-period-btn { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 0 2px 8px var(--shadow); }
.dsh-period-btn .icon { color: var(--ink-2); }
.dsh-period .menu-pop { top: 52px; width: 290px; }
.dsh-period .menu-pop a.on { color: var(--brand); font-weight: 700; }

.dsh-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dsh-money-card { --c: #17a05d; position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px 20px 22px; min-height: 120px; border-radius: 18px; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 11%, var(--card)), color-mix(in srgb, var(--c) 4%, var(--card))); }
.dsh-money-card:hover { text-decoration: none; box-shadow: 0 10px 24px var(--shadow); }
.dsh-money-card.k-expenses { --c: #e5484d; }
.dsh-money-ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--card)); flex: none; position: relative; z-index: 1; }
.dsh-money-ic .icon { width: 30px; height: 30px; color: var(--c); }
.dsh-money-tx { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
.dsh-money-label { font-weight: 600; color: var(--ink-2); }
.dsh-money-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; }
.dsh-money-d { font-size: .84rem; display: flex; gap: 6px; flex-wrap: wrap; }
.dsh-d { font-weight: 700; }
.dsh-d.good { color: #17a05d; }
.dsh-d.bad { color: #e5484d; }
.dsh-spark { position: absolute; right: 0; bottom: 0; width: 42%; height: 58px; }
.dsh-spark .l { fill: none; stroke: var(--c); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.dsh-spark .a { fill: var(--c); opacity: .12; }

.dsh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.dsh-tile { --c: #3b82f6; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
a.dsh-tile:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 8px 20px var(--shadow); }
.dsh-tile.k-domains { --c: #17a05d; }
.dsh-tile.k-tickets { --c: #8b5cf6; }
.dsh-tile.k-orders { --c: #f59e0b; }
.dsh-tile-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--card)); flex: none; }
.dsh-tile-ic .icon { width: 26px; height: 26px; color: var(--c); }
.dsh-tile-tx { display: flex; flex-direction: column; min-width: 0; }
.dsh-tile-label { color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.dsh-tile-num { font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.dsh-tile-note { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.dsh-tile-note.up { color: #17a05d; }
.dsh-tile-note.down { color: #e5484d; }

.dsh-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dsh-card-head h2 { margin: 0; font-size: 1.08rem; font-weight: 700; display: flex; align-items: center; gap: 9px; letter-spacing: -.005em; }
.dsh-card-head h2 .icon { width: 22px; height: 22px; color: #17a05d; }
.dsh-card-head > .btn { margin-left: auto; border-radius: 99px; }
.dsh-row2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; margin: 0 0 16px; }
.dsh-row2 > .card, .dsh-row3 > .card { margin: 0; padding: 18px 20px; border-radius: 16px; min-width: 0; }
.dsh-legend { display: flex; gap: 16px; margin-left: auto; font-size: .86rem; color: var(--ink-2); }
.dsh-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dsh-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #17a05d; }
.dsh-legend .exp::before { background: #e5484d; }
.dsh-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--chip); }
.dsh-seg a { padding: 5px 12px; border-radius: 9px; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.dsh-seg a:hover { text-decoration: none; color: var(--ink); }
.dsh-seg a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px var(--shadow); }
.dsh-chart { width: 100%; height: auto; display: block; overflow: visible; }
.dsh-chart .dsh-grid { stroke: var(--line-soft); stroke-width: 1; }
.dsh-chart .dsh-vline { stroke: var(--line-soft); stroke-dasharray: 3 4; }
.dsh-chart .dsh-axis { fill: var(--ink-3); font-size: 11.5px; }
.dsh-chart stop.s-rev { stop-color: #22b26b; stop-opacity: .3; }
.dsh-chart stop.s-exp { stop-color: #e5484d; stop-opacity: .2; }
.dsh-chart stop.s0 { stop-opacity: 0; }
.dsh-chart .dsh-area.rev { fill: url(#dsh-g-rev); }
.dsh-chart .dsh-area.exp { fill: url(#dsh-g-exp); }
.dsh-chart .dsh-line { fill: none; stroke-width: 3; stroke-linecap: round; }
.dsh-chart .dsh-line.rev { stroke: #17a05d; }
.dsh-chart .dsh-line.exp { stroke: #e5484d; }
.dsh-chart .dsh-dot { fill: var(--card); stroke-width: 2.5; }
.dsh-chart .dsh-dot.rev { stroke: #17a05d; }
.dsh-chart .dsh-dot.exp { stroke: #e5484d; }
.dsh-chart .dsh-dot:hover { stroke-width: 4; }
.dsh-chart-foot { margin-top: 8px; }
.dsh-sum { display: flex; flex-direction: column; }
.dsh-sum .dsh-card-head { margin-bottom: 2px; }
.dsh-sum-sub { margin: 0 0 8px; }
.dsh-sum-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 500; }
.dsh-sum-row > b { margin-left: auto; font-size: 1.12rem; font-weight: 800; white-space: nowrap; }
a.dsh-sum-row:hover { text-decoration: none; background: var(--hover); }
.dsh-sum-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, #17a05d 16%, var(--card)); }
.dsh-sum-dot .icon { width: 15px; height: 15px; color: #17a05d; }
.dsh-sum-dot.bad { background: color-mix(in srgb, #e5484d 16%, var(--card)); }
.dsh-sum-dot.bad .icon { color: #e5484d; }
.dsh-sum-dot.warn { background: color-mix(in srgb, #f59e0b 18%, var(--card)); }
.dsh-sum-dot.warn .icon { color: #c27c0e; }
.dsh-sum-dot.plain { background: none; }
.dsh-sum-parts { padding: 6px 2px 10px 40px; border-bottom: 1px solid var(--line-soft); }
.dsh-sum-row.dsh-sum-profit { margin: 10px 0 2px; padding: 13px 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, #22b26b 15%, var(--card)); font-weight: 700; font-size: 1.02rem; }
.dsh-sum-row.dsh-sum-profit > b { font-size: 1.25rem; }
.dsh-sum-row.dsh-sum-profit.loss { background: color-mix(in srgb, #e5484d 14%, var(--card)); }
.dsh-sum-margin > b { color: #17a05d; font-size: 1.5rem; }
.dsh-sum-margin > b.loss { color: #e5484d; }
.dsh-sum-more { align-self: flex-start; margin-top: 14px; border-radius: 99px; }

.dsh-row3 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin: 0 0 22px; align-items: stretch; }
.dsh-mix-body { display: flex; align-items: center; gap: 18px; }
.dsh-donut { width: 150px; height: 150px; flex: none; }
.dsh-donut circle { fill: none; stroke-width: 16; }
.dsh-donut .track { stroke: var(--line-soft); }
.dsh-donut .seg.k-active { stroke: #17a05d; }
.dsh-donut .seg.k-suspended { stroke: #f59e0b; }
.dsh-donut .seg.k-closed { stroke: #9aa6b2; }
.dsh-donut .big { font-size: 26px; font-weight: 800; fill: var(--ink); }
.dsh-donut .lbl { font-size: 11px; fill: var(--ink-3); }
.dsh-mix-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.dsh-mix-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.dsh-mix-list a:hover { text-decoration: none; color: var(--brand); }
.dsh-mix-list b { margin-left: auto; }
.dsh-mix-list i { width: 10px; height: 10px; border-radius: 50%; background: #17a05d; flex: none; }
.dsh-mix-list i.k-suspended { background: #f59e0b; }
.dsh-mix-list i.k-closed { background: #9aa6b2; }
.dsh-mix-note { padding-top: 10px; }
.dsh-act-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.dsh-act-row:last-child { border-bottom: 0; }
.dsh-act-ic { --c: #64748b; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.dsh-act-ic .icon { color: var(--c); width: 18px; height: 18px; }
.dsh-act-ic.i-wallet, .dsh-act-ic.i-shopping-cart { --c: #17a05d; }
.dsh-act-ic.i-users { --c: #3b82f6; }
.dsh-act-ic.i-life-buoy { --c: #8b5cf6; }
.dsh-act-ic.i-globe { --c: #0d9488; }
.dsh-act-ic.i-archive { --c: #f59e0b; }
.dsh-act-ic.i-box { --c: #2563eb; }
.dsh-act-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dsh-act-tx b, .dsh-act-tx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-act-tx b { font-weight: 600; font-size: .92rem; }
.dsh-act-when { white-space: nowrap; }
.dsh-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dsh-quick-btn { --c: #17a05d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 86px; padding: 14px 10px; border-radius: 14px; font-weight: 600; font-size: .92rem; text-align: center; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line)); background: color-mix(in srgb, var(--c) 10%, var(--card)); transition: transform .15s, box-shadow .15s; }
.dsh-quick-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px var(--shadow); }
.dsh-quick-btn .icon { width: 26px; height: 26px; color: var(--c); }
.dsh-quick-btn.t-orange { --c: #f59e0b; }
.dsh-quick-btn.t-blue { --c: #3b82f6; }
.dsh-quick-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dsh-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; padding: 16px 2px 4px; border-top: 1px solid var(--line); color: var(--ink-2); }
.dsh-foot-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dsh-status { display: inline-flex; align-items: center; gap: 6px; color: #17a05d; font-weight: 600; }
.dsh-status .icon { width: 16px; height: 16px; }
.dsh-status.bad { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .dsh-quick-btn, .admin-green .side a { transition: none; } .dsh-quick-btn:hover { transform: none; } }
@media (max-width: 1280px) { .dsh-row3 { grid-template-columns: 1fr 1fr; } .dsh-row3 > .dsh-quick { grid-column: 1 / -1; } .dsh-quick-grid { grid-template-columns: repeat(4, 1fr); } .dsh-quick-btn:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 1200px) { .dsh-money { grid-template-columns: 1fr; } .dsh-spark { width: 34%; } .dsh-tiles { grid-template-columns: 1fr 1fr; } .dsh-row2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dsh-head { gap: 12px; }
  .dsh-head-ic { width: 46px; height: 46px; border-radius: 13px; }
  .dsh-head-ic svg { width: 26px; height: 26px; }
  .dsh-head-tx h1 { font-size: 1.5rem; }
  .dsh-head-tx p { font-size: .88rem; }
  .dsh-period { margin-left: 0; width: 100%; }
  details.menu > summary.dsh-period-btn { width: 100%; box-sizing: border-box; }
  .dsh-period-btn > span { flex: 1; }
  .dsh-period .menu-pop { left: 0; right: auto; width: 100%; box-sizing: border-box; }
  .dsh-money-card { padding: 16px; min-height: 0; }
  .dsh-money-ic { width: 52px; height: 52px; }
  .dsh-money-num { font-size: 1.45rem; }
  .dsh-tiles { gap: 10px; }
  .dsh-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .dsh-tile-ic { width: 44px; height: 44px; }
  .dsh-tile-ic .icon { width: 21px; height: 21px; }
  .dsh-row3 { grid-template-columns: 1fr; }
  .dsh-row2 > .card, .dsh-row3 > .card { padding: 16px; }
  .dsh-legend { margin-left: 0; }
  .dsh-quick-grid { grid-template-columns: 1fr 1fr; }
  .dsh-quick-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dsh-mix-body { flex-direction: column; align-items: stretch; }
  .dsh-donut { align-self: center; }
}
.admin-green .side .mark .side-logo { color: #fff; }
.admin-green .side .mark .side-brand-tx, .admin-green .side .mark .side-brand-name { color: #fff; }
.admin-green .side .mark .side-brand-sub { color: rgba(220,240,228,.72); }
.dsh-money-d { flex-direction: column; gap: 0; }
.dsh-vs { font-size: .78rem; }
.dsh-spark { width: 36%; height: 46px; opacity: .9; }
.dsh-money-num { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dsh-spark { top: 14px; bottom: auto; right: 12px; width: 30%; height: 40px; }
.dsh-money-tx { position: relative; z-index: 1; }

/* Admin: calm look (Bilal 2026-12-05) — light left menu, white cards, colour only in small icons */
.admin.admin-green { background: none; }
.admin-green .side { background: var(--card); border-right: 1px solid var(--line); color: var(--ink); scrollbar-color: var(--line) transparent; }
.admin-green .side::-webkit-scrollbar-thumb { background: var(--line); }
.admin-green .side a { color: var(--ink-2); }
.admin-green .side a .icon { color: var(--ink-3); opacity: 1; }
.admin-green .side a:hover { background: var(--chip); color: var(--ink); }
.admin-green .side a.active { background: var(--brand-tint); color: var(--brand); box-shadow: none; font-weight: 600; }
.admin-green .side a.active .icon { color: var(--brand); }
.admin-green .side h6 { color: var(--ink-3); }
.admin-green .side .count { background: var(--accent, #f5a524); color: #fff; }
.admin-green .side .nav-close { color: var(--ink-2); border-color: var(--line); }
.admin-green .side a.side-brand, .admin-green .side a.side-brand:hover { color: var(--ink); background: none; }
.admin-green .side .mark .side-logo { background: var(--brand); color: #fff; box-shadow: none; width: 40px; height: 40px; border-radius: 12px; }
.admin-green .side .mark .side-logo svg { width: 26px; height: 22px; }
.admin-green .side .mark .side-brand-tx, .admin-green .side .mark .side-brand-name { color: var(--ink); }
.admin-green .side .mark .side-brand-name span { color: var(--brand); }
.admin-green .side .mark .side-brand-sub { color: var(--ink-3); }
.admin-green .side a.side-help { border: 1px solid var(--line); background: var(--paper, transparent); }
.admin-green .side a.side-help:hover { border-color: var(--brand); background: var(--card); }
.admin-green .side-help-ic { background: var(--brand-tint); }
.admin-green .side-help-ic .icon, .admin-green .side-help-tx span, .admin-green .side-help-tx span .icon { color: var(--brand) !important; }
.admin-green .side-help-tx b { color: var(--ink); }

.dsh-head-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-tint); }
.dsh-head-ic svg { width: 24px; height: 24px; fill: var(--brand); }
.dsh-head-tx h1 { font-size: 1.55rem; font-weight: 750; }
details.menu > summary.dsh-period-btn { height: 40px; border-radius: 11px; box-shadow: none; }
.dsh-money-card, .dsh-tile, .dsh-row2 > .card, .dsh-row3 > .card { border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px var(--shadow); }
.dsh-money-card { min-height: 0; padding: 18px 20px; gap: 14px; }
.dsh-money-card:hover, a.dsh-tile:hover { box-shadow: 0 6px 16px var(--shadow); border-color: var(--line); }
.dsh-money-ic, .dsh-tile-ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.dsh-money-ic .icon, .dsh-tile-ic .icon { width: 22px; height: 22px; }
.dsh-money-num { font-size: 1.5rem; font-weight: 750; }
.dsh-tile-num { font-size: 1.35rem; font-weight: 750; }
.dsh-money-label, .dsh-tile-label { font-size: .86rem; font-weight: 500; color: var(--ink-3); }
.dsh-spark { opacity: .7; }
.dsh-card-head h2 { font-size: 1rem; }
.dsh-card-head h2 .icon { width: 18px; height: 18px; color: var(--ink-3); }
.dsh-sum-row.dsh-sum-profit { background: var(--chip); }
.dsh-sum-row.dsh-sum-profit.loss { background: color-mix(in srgb, #e5484d 8%, var(--card)); }
.dsh-sum-margin > b { font-size: 1.2rem; }
.dsh-quick-btn { background: var(--card) !important; border: 1px solid var(--line) !important; min-height: 76px; font-weight: 500; }
.dsh-quick-btn:hover { border-color: var(--brand) !important; transform: none; box-shadow: none; }
.dsh-quick-btn .icon { width: 22px; height: 22px; }
.dsh-spark { display: none; }

/* Removed records: delete for good (Bilal 2026-12-05) */
.rm-head { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cpx-table td.num form.inline + form.inline { margin-left: 6px; }
@media (max-width: 640px) {
    .cpx-table td.num:has(form.inline + form.inline) { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
    .cpx-table td.num form.inline + form.inline { margin-left: 0; }
}
.cpx-table .btn.light.danger { color: var(--danger); background: var(--danger-tint); }

/* Plan control panel: tabs + tool pages (Bilal 2026-12-05) */
.pp-card .card-head { flex-wrap: wrap; gap: 6px 12px; }
.pp-card .card-head > .muted { flex: 1; }
.pp-table td { vertical-align: top; }
.pp-table .btn-row { flex-wrap: nowrap; }
.pp-alias { display: flex; align-items: center; gap: 6px; }
.pp-alias .icon-btn.sm { width: 24px; height: 24px; }
.pp-add { margin-top: 6px; }
.pp-add > summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .85rem; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.pp-add > summary::-webkit-details-marker { display: none; }
.pp-add[open] > summary { margin-bottom: 8px; }
.pp-add .row-form { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-add .row-form input { flex: 1; min-width: 160px; }
.pp-sub-name { display: flex; align-items: center; gap: 6px; }
.pp-sub-name input { flex: 1; min-width: 0; }
.pp-sub-name .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pp-mail-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: end; }
.pp-mail-form .actions { grid-column: 1 / -1; margin: 0; }
.pp-acct { font-size: .95rem; margin: 6px 0 -4px; }
@media (max-width: 760px) {
  .pp-mail-form { grid-template-columns: 1fr; }
  .pp-table .btn-row { flex-wrap: wrap; justify-content: flex-end; }
}

/* Client Billing page (Bilal 2026-12-05) */
.bl-card { margin-bottom: 18px; }
.bl-card .card-head { flex-wrap: wrap; gap: 6px 12px; }
.bl-card .card-head > .muted { flex: 1; }
.bl-table td { vertical-align: top; }
.bl-table .btn-row { flex-wrap: nowrap; }
.bl-inv .menu-pop { min-width: 300px; right: 0; left: auto; }
.bl-inv .menu-pop a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.bl-inv .menu-pop a .small { grid-column: 1; }
.bl-inv .menu-pop a .badge { grid-row: 1 / span 2; grid-column: 2; }
.bl-kv { margin: 0; }
@media (max-width: 760px) {
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-table .btn-row { flex-wrap: wrap; justify-content: flex-end; }
  .bl-inv .menu-pop { min-width: 240px; }
}

/* Billing + plan control panel tables: one small card per row on phones */
@media (max-width: 640px) {
  table.list.bl-table thead, table.list.pp-table thead { display: none; }
  table.list.bl-table, table.list.pp-table, table.list.bl-table tbody, table.list.pp-table tbody { display: block; width: 100%; }
  table.list.bl-table tr, table.list.pp-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.list.bl-table tr:last-child, table.list.pp-table tr:last-child { border-bottom: 0; }
  table.list.bl-table td, table.list.pp-table td { display: block; padding: 0; border: 0; min-width: 0; }
  table.list.bl-table td:first-child, table.list.pp-table td:first-child { grid-column: 1 / -1; }
  table.list.bl-table td[data-label]:not(:first-child)::before, table.list.pp-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 2px; }
  table.list.bl-table td.right, table.list.pp-table td.right { grid-column: 1 / -1; text-align: left; }
  table.list.bl-table td.right .btn-row, table.list.pp-table td.right .btn-row { justify-content: flex-start; }
  table.list.bl-table td.num, table.list.pp-table td.num { text-align: left; }
}
@media (max-width: 640px) { table.list.bl-table td.hide-sm, table.list.pp-table td.hide-sm { display: none; } }
[data-pp-sub] .field, .pp-mail-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
[data-pp-sub].stack { gap: 14px; }

/* Plan page head on a tool (Bilal 2026-12-05): back to "Manage your hosting" + the tool's name, no tab row */
.pp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pp-head h1 { margin: 0; font-size: 1.35rem; display: inline-flex; align-items: center; gap: 8px; }
.pp-head h1 svg { width: 22px; height: 22px; color: var(--brand); }
.pp-apps-off { display: flex; gap: 12px; align-items: flex-start; }
.pp-type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .pp-type-cards { grid-template-columns: 1fr; } }
.pp-change { list-style: none; padding: 0 16px 14px; margin: 0; }
.pp-change li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }

/* Admin → Email sending + Hosting options "Mail from websites" (Bilal 2026-12-06) */
.ms-domains { margin-bottom: 14px; }
.ms-dlist { list-style: none; margin: 0; padding: 0 16px 10px; }
.ms-dlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ms-table tr.ms-off td { background: color-mix(in srgb, var(--danger, #d14343) 5%, transparent); }
.ms-addr { overflow-wrap: anywhere; }
.ms-table td:first-child { min-width: 210px; }
.ms-more { position: relative; display: inline-block; }
.ms-more > summary { list-style: none; cursor: pointer; }
.ms-more > summary::-webkit-details-marker { display: none; }
.ms-pop { top: 38px; width: 300px; padding: 12px; }
.ms-pop form { display: grid; gap: 8px; }
.ms-pop .menu-label { font-weight: 600; }
.ms-pop .check { display: flex; gap: 8px; align-items: flex-start; padding: 0; }
.ms-pop input[type=text] { width: 100%; }
.ms-pop button.btn { width: auto; justify-content: center; padding: 7px 12px; }
.ms-pop button.btn.danger:hover { background: var(--danger, #d14343); }
.pm-nodes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.pm-nodes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 640px) {
  .ms-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
}
.ms-pop { text-align: left; white-space: normal; }
.ms-pop .menu-label { border: 0; margin: 0; padding: 0; }
.ms-pop button.btn.danger, .ms-pop button.btn.danger:hover { color: #fff; background: var(--danger, #c0392b); }
.table-wrap:has(.ms-more[open]), .card:has(.ms-more[open]) { overflow: visible; }
.ms-pop form > :first-child { border-top: 0; }
.ms-pop hr, .ms-pop::before { display: none; }
@media (max-width: 640px) { .ms-table td:first-child { min-width: 0; } .ms-table tr.ms-off td { background: none; } table.list.ms-table tr.ms-off { background: color-mix(in srgb, var(--danger, #d14343) 5%, transparent); } }
/* Client profile → Domains: "Sync domains" (Bilal 2026-12-06) */
.dsync-pop { right: 0; left: auto; width: 320px; }
.dsync-pop button.btn, .dsync-pop button.btn:hover { color: #fff; background: var(--brand); justify-content: center; }
.cpx-toolbar:has(.dsync[open]) { overflow: visible; }
.dsync-res { margin-bottom: 16px; }
.dsync-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 12px 18px 16px; }
.dsync-col { border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; padding: 8px 12px; min-width: 0; }
.dsync-col.ok { border-left-color: var(--brand); }
.dsync-col.warn { border-left-color: var(--accent, #e8892b); }
.dsync-col.bad { border-left-color: var(--danger, #d14343); }
.dsync-col ul { margin: 6px 0 0; padding-left: 16px; font-size: 13px; max-height: 220px; overflow: auto; }
.dsync-col li { overflow-wrap: anywhere; }
@media (max-width: 640px) { .dsync-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; } }

/* Admin → WHMCS import: every service of a client, where each lives (Bilal 2026-12-06) */
.wh-where { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wh-more { margin-top: 6px; }
.wh-more > summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
.wh-more > summary::-webkit-details-marker { display: none; }
.wh-more > summary::before { content: "▸ "; }
.wh-more[open] > summary::before { content: "▾ "; }
.wh-more[open] > summary { margin-bottom: 6px; }
.wh-sum { margin-top: 6px; font-size: 12px; border-top: 1px dashed var(--line); padding-top: 4px; }
.wh-host, .wh-host .wh-where, .wh-sum { white-space: normal; min-width: 0; }
.wh-svc .badge { text-transform: none; }

/* Admin → WHMCS import: Sync / Import one client (Bilal 2026-12-06) */
.wh-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.wh-acts form{margin:0}
.wh-read{font-size:11.5px;margin-top:3px}
/* Products hosted on DirectAdmin (Bilal 2026-12-06) */
.pg-da{display:flex;gap:5px;align-items:center;color:var(--muted);margin-top:2px}
.pg-da .icon{width:14px;height:14px}
.pf-host .pf-da-srv{display:grid;gap:10px}

/* Public checkout (Bilal 2026-12-06): plan → account → payment, no portal menu */
.co-page { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.co-top { background: var(--card); border-bottom: 1px solid var(--line); }
.co-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.co-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.co-brand .auth-logo { width: 34px; height: 34px; margin: 0; }
.co-brand .auth-brand { font-size: 18px; margin: 0; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
.co-secure svg { width: 15px; height: 15px; }
.co-top-act { margin-left: auto; }
.co-wrap { max-width: 1120px; width: 100%; margin: 0 auto; padding: 22px 20px 40px; flex: 1; }
.co-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: none; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); padding-right: 22px; position: relative; }
.co-steps li:not(:last-child)::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 1px; background: var(--line); }
.co-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-3); }
.co-dot svg { width: 14px; height: 14px; }
.co-steps li.now { color: var(--ink); font-weight: 600; }
.co-steps li.now .co-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.co-steps li.done .co-dot { background: var(--brand-tint); border-color: var(--brand-tint-2); color: var(--brand); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.co-main { display: grid; gap: 16px; min-width: 0; }
.co-side { position: sticky; top: 16px; }
.co-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.co-card h2 { font-size: 16px; margin: 0 0 12px; }
.co-muted { color: var(--ink-3); }
.co-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand); font-weight: 600; }
.co-kicker svg { width: 15px; height: 15px; }
.co-plan-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.co-plan h1 { font-size: 24px; margin: 4px 0 2px; }
.co-plan-head p { margin: 4px 0 0; }
.co-change .menu-pop { right: 0; left: auto; min-width: 180px; }
.co-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.co-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.co-chips svg { width: 15px; height: 15px; color: var(--ok); }
.co-cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.co-methods { display: grid; gap: 10px; }
.co-opt { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 400; background: var(--card); }
.co-opt:hover { border-color: var(--brand-tint-2); }
.co-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.co-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.co-opt-body { display: grid; gap: 2px; }
.co-price { font-size: 20px; font-weight: 700; color: var(--ink); }
.co-save { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; }
.co-method .co-opt-body { grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.co-method .co-opt-body > .small { grid-column: 2; }
.co-mi { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); }
.co-mi svg { width: 17px; height: 17px; }
.co-opt:has(input:checked) .co-mi { background: var(--card); color: var(--brand); }
.co-domain { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--input-bg); padding-left: 12px; }
.co-domain:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.co-domain span { display: grid; color: var(--ink-3); }
.co-domain svg { width: 17px; height: 17px; }
.co-domain input { border: 0; box-shadow: none; background: transparent; flex: 1; min-width: 0; }
.co-domain input:focus { outline: none; box-shadow: none; }
.co-summary h2 { margin-bottom: 10px; }
.co-sum-plan { display: grid; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.co-promo { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.co-promo label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.co-promo label svg { width: 15px; height: 15px; }
.co-promo-row { display: flex; gap: 8px; }
.co-promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-ok { display: flex; gap: 6px; align-items: center; color: var(--ok); margin-top: 6px; }
.co-ok svg { width: 15px; height: 15px; flex: none; }
.co-lines { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 14px 0 6px; }
.co-lines dt { color: var(--ink-2); font-weight: 400; margin: 0; }
.co-lines dd { margin: 0; padding-left: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.co-lines .co-disc { color: var(--ok); }
.co-lines .co-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.co-renew { margin: 0 0 10px; }
.co-paywith { margin: 0 0 12px; color: var(--ink-2); }
.co-go { margin-top: 4px; padding: 13px 18px; font-size: 16px; }
.co-next { text-align: center; margin: 8px 0 0; }
.co-trust { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.co-trust li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.co-trust svg { width: 15px; height: 15px; color: var(--brand); }
.co-edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.co-edit svg { width: 14px; height: 14px; }
.co-have { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-have > div { display: grid; }
.co-intro { margin-bottom: 18px; }
.co-intro h1 { font-size: 26px; margin: 0 0 4px; }
.co-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.co-plan-card { position: relative; display: flex; flex-direction: column; }
.co-plan-card.is-featured { border-color: var(--brand); box-shadow: 0 10px 30px -18px var(--shadow); }
.co-flag { position: absolute; top: -11px; left: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.co-big { font-size: 30px; font-weight: 800; margin: 2px 0 12px; }
.co-big span { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.co-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; flex: 1; }
.co-list li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.co-list svg { width: 15px; height: 15px; color: var(--ok); }
.co-foot { max-width: 1120px; width: 100%; margin: 0 auto; padding: 16px 20px 26px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; }
}
@media (max-width: 560px) {
  .co-top-in { padding: 10px 14px; gap: 10px; }
  .co-secure { font-size: 0; }
  .co-secure svg { width: 18px; height: 18px; }
  .co-wrap { padding: 16px 14px 30px; }
  .co-steps li { font-size: 13px; padding-right: 14px; }
  .co-steps li:not(.now) { font-size: 0; gap: 0; }
  .co-steps li:not(:last-child)::after { right: 0; width: 8px; }
  .co-card { padding: 16px; }
  .co-plan-head { flex-direction: column; }
  .co-cycles { grid-template-columns: 1fr 1fr; }
}

/* Admin → Promo codes (Bilal 2026-12-06) */
.cp-off { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.cp-plans { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cp-table tr.is-off td { opacity: .6; }
.cp-pop { width: min(420px, 90vw); right: 0; left: auto; padding: 14px; text-align: left; }
@media (max-width: 640px) { .cp-pop { position: fixed; left: 5vw; right: 5vw; top: 70px; width: auto; max-height: 80vh; overflow: auto; } }

/* Public checkout: domains (Bilal 2026-12-06) */
.co-dhero { padding-top: 14px; }
.co-dtabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-dtab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.co-dtab svg { width: 15px; height: 15px; }
.co-dtab:hover { color: var(--text); }
.co-dtab.on { color: var(--brand); border-bottom-color: var(--brand); }
.co-dres, .co-wrap .dsx-tlds { margin-top: 16px; }
.co-dname { word-break: break-all; }
.co-dname em { font-style: normal; color: var(--brand); }
.co-addr { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.co-addr select { width: 100%; }
@media (max-width: 560px) {
  .co-dtabs { gap: 0; }
  .co-dtab { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13px; }
}
.co-plan-head > .btn { white-space: nowrap; flex: none; }
