/* ==========================================================================
   Domain portal — design system
   Brand tokens follow the Fabonic WHMCS theme: navy #003880, amber #e9a63c,
   Sora for display, IBM Plex Sans for text, IBM Plex Mono for data.
   ========================================================================== */

/* 1. Fonts (bundled; no outside requests) --------------------------------- */
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* 2. Tokens ----------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-sunk: #eef2f8;
  --ink: #0a1b33;
  --text: #34425a;
  --muted: #64728a;
  --rule: #e2e8f1;
  --rule-strong: #cfd8e5;

  --brand: #003880;
  --brand-lift: #1c5fb5;
  --brand-pale: #dfe9f7;
  --brand-wash: #f0f5fc;
  --on-brand: #ffffff;
  --gold: #e9a63c;
  --gold-deep: #b46f17;
  --gold-wash: #fdf4e6;

  --ok: #12704f;      --ok-bg: #e5f4ed;
  --warn: #9a5a07;    --warn-bg: #fdf1dc;
  --err: #b8322a;     --err-bg: #fbeae8;
  --info: #1c5fb5;    --info-bg: #e9f1fc;

  --chart: #1c5fb5;
  --chart-hover: #003880;
  --focus: #1c5fb5;

  --side-bg: #0a1b33;
  --side-text: #c7d3e6;
  --side-muted: #8494af;
  --side-active: rgba(233, 166, 60, .14);
  --side-rule: rgba(255, 255, 255, .08);

  --display: Sora, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --e1: 0 1px 2px rgba(10, 27, 51, .06);
  --e2: 0 2px 8px rgba(10, 27, 51, .07), 0 1px 2px rgba(10, 27, 51, .05);
  --e3: 0 12px 32px rgba(10, 27, 51, .12), 0 2px 8px rgba(10, 27, 51, .06);

  --r1: 8px;
  --r2: 12px;
  --r3: 18px;
  --pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .18s var(--ease);
  --side-w: 256px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1220;
    --surface: #101b2e;
    --surface-2: #14223a;
    --surface-sunk: #0d1727;
    --ink: #eef3fb;
    --text: #c3cede;
    --muted: #8e9bb2;
    --rule: #22324c;
    --rule-strong: #2e4161;
    --brand: #3d7fe0;
    --brand-lift: #78a9f2;
    --brand-pale: #1b2f50;
    --brand-wash: #132540;
    --gold: #f0b356;
    --gold-deep: #f0b356;
    --gold-wash: #2a2213;
    --ok: #5fd0a3;   --ok-bg: rgba(95, 208, 163, .12);
    --warn: #f3b35b; --warn-bg: rgba(243, 179, 91, .13);
    --err: #ff8a7d;  --err-bg: rgba(255, 138, 125, .12);
    --info: #8ab6f6; --info-bg: rgba(138, 182, 246, .12);
    --chart: #5b95ea;
    --chart-hover: #a4c6f8;
    --focus: #78a9f2;
    --side-bg: #070e1a;
    --e1: 0 1px 2px rgba(0, 0, 0, .3);
    --e2: 0 2px 8px rgba(0, 0, 0, .35);
    --e3: 0 14px 36px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1220;
  --surface: #101b2e;
  --surface-2: #14223a;
  --surface-sunk: #0d1727;
  --ink: #eef3fb;
  --text: #c3cede;
  --muted: #8e9bb2;
  --rule: #22324c;
  --rule-strong: #2e4161;
  --brand: #3d7fe0;
  --brand-lift: #78a9f2;
  --brand-pale: #1b2f50;
  --brand-wash: #132540;
  --gold: #f0b356;
  --gold-deep: #f0b356;
  --gold-wash: #2a2213;
  --ok: #5fd0a3;   --ok-bg: rgba(95, 208, 163, .12);
  --warn: #f3b35b; --warn-bg: rgba(243, 179, 91, .13);
  --err: #ff8a7d;  --err-bg: rgba(255, 138, 125, .12);
  --info: #8ab6f6; --info-bg: rgba(138, 182, 246, .12);
  --chart: #5b95ea;
  --chart-hover: #a4c6f8;
  --focus: #78a9f2;
  --side-bg: #070e1a;
  --e1: 0 1px 2px rgba(0, 0, 0, .3);
  --e2: 0 2px 8px rgba(0, 0, 0, .35);
  --e3: 0 14px 36px rgba(0, 0, 0, .5);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 26px; line-height: 1.25; }
h2 { font-size: 18px; line-height: 1.35; }
h3 { font-size: 15px; line-height: 1.4; }
p { margin: 0 0 12px; }
a { color: var(--brand-lift); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
strong { color: var(--ink); font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.tabnum { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.icon.flip { transform: rotate(180deg); }
.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; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* 4. App shell ------------------------------------------------------------- */
.shell { min-height: 100vh; }

.side {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--side-w);
  display: flex; flex-direction: column;
  background: var(--side-bg); color: var(--side-text);
  padding: 20px 14px 14px;
  overflow-y: auto;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 10px 22px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The Fabonic logo: white on the dark menu, navy on light cards. */
.brand-logo { display: block; width: 158px; height: auto; }
.brand-logo.on-light { display: none; }
.brand-sub {
  padding-left: 2px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px; border-radius: var(--r1);
  color: var(--side-text); font-weight: 500; text-decoration: none;
  transition: background var(--t), color var(--t);
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a[aria-current="page"] .icon { color: var(--gold); }
.nav .count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; line-height: 18px; text-align: center;
}
.nav .count.alert { background: var(--gold); color: #1d1405; font-weight: 600; }

.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--side-rule); display: grid; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: var(--side-text); text-decoration: none; border-radius: var(--r1); }
.me:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brand-pale); color: var(--brand);
  font: 600 13px/1 var(--display);
}
.side .avatar { background: rgba(255, 255, 255, .1); color: #fff; }
.me-text { min-width: 0; line-height: 1.25; }
.me-name, .me-role { display: block; }
.me-name { color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 12px; color: var(--side-muted); }
.side-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.theme-switch { display: inline-flex; padding: 3px; border-radius: var(--pill); background: rgba(255, 255, 255, .06); }
.theme-switch button {
  border: 0; background: transparent; color: var(--side-muted);
  width: 30px; height: 26px; border-radius: var(--pill); display: grid; place-items: center; cursor: pointer;
}
.theme-switch button .icon { width: 15px; height: 15px; }
.theme-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.theme-switch-light { background: var(--surface-sunk); }
.theme-switch-light button { color: var(--muted); width: 40px; height: 32px; }
.theme-switch-light button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
.signout {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--side-muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: var(--r1);
}
.signout:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.main { margin-left: var(--side-w); min-width: 0; }
.topbar { display: none; }
.content { max-width: 1280px; margin: 0 auto; padding: 32px 36px 64px; }

.scrim { display: none; }

@media (max-width: 1023px) {
  .side { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--e3); }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(5, 12, 24, .5); }
  .main { margin-left: 0; }
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    height: 56px; padding: 0 12px;
    background: var(--side-bg); color: #fff;
  }
  .topbar .brand { flex-direction: row; align-items: center; gap: 10px; padding: 0; }
  .topbar .brand-logo { width: 104px; }
  .topbar .brand-sub { font-size: 10px; padding: 3px 0 0 10px; border-left: 1px solid var(--side-rule); }
  .icon-btn {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 0; border-radius: var(--r1); background: transparent; color: inherit; cursor: pointer;
  }
  .icon-btn:hover { background: rgba(255, 255, 255, .08); }
  .content { padding: 20px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 5. Page header ------------------------------------------------------------ */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .lede { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb:hover { color: var(--brand-lift); }
.crumb .icon { width: 15px; height: 15px; }

/* 6. Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--r1);
  font: 500 14px/1.2 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-lift); }
.btn-accent { background: var(--gold); color: #1d1405; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--brand-lift); color: var(--brand-lift); }
.btn-danger { background: var(--surface); color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn-danger:hover { background: var(--err-bg); }
.btn-link { background: none; border: 0; color: var(--brand-lift); padding: 0; min-height: 0; }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* 7. Cards & sections --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2); box-shadow: var(--e1); }
.card-pad { padding: 20px 22px; }
.card-pad > h2:first-child { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.card-head h2 { font-size: 16px; }
.card-head .sub { font-size: 13px; color: var(--muted); }
.card-foot { padding: 12px 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.stack { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-main { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
/* Grid children may shrink below their content (wide tables scroll inside instead of pushing the column). */
.grid-main > *, .grid-2 > *, .stack > * { min-width: 0; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* 8. Stat tiles ----------------------------------------------------------------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tiles { gap: 10px; } }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2);
  box-shadow: var(--e1); color: var(--text); text-decoration: none; transition: border-color var(--t), box-shadow var(--t);
}
a.tile:hover { text-decoration: none; border-color: var(--brand-lift); box-shadow: var(--e2); }
.tile-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tile-label .icon { width: 16px; height: 16px; }
.tile-value { font: 600 30px/1.1 var(--body); color: var(--ink); letter-spacing: -.01em; }
.tile-note { font-size: 13px; color: var(--muted); }
.tile-note.warn { color: var(--warn); }
.tile-note.err { color: var(--err); }
.tile-note.ok { color: var(--ok); }
@media (max-width: 420px) { .tile { padding: 14px; } .tile-value { font-size: 24px; } }

/* 9. Badges & chips ----------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  background: var(--surface-sunk); color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-wash); color: var(--brand-lift); }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--surface-sunk); border: 1px solid var(--rule);
  font: 400 12px/1.5 var(--mono); color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.source-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.source-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-lift); }
.source-tag.regtons::before { background: var(--gold); }

/* 10. Forms ------------------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field > label, .label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.input, .select, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--r1);
  background: var(--surface); color: var(--ink);
  font: 400 15px/1.4 var(--body);
  transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus { outline: none; border-color: var(--brand-lift); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-lift) 22%, transparent); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.input-code { font: 500 24px/1 var(--mono); letter-spacing: .3em; text-align: center; padding: 12px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r1); background: var(--surface); cursor: pointer; }
.check:hover { border-color: var(--rule-strong); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-lift); flex: none; }
.check-title { display: block; font-weight: 500; color: var(--ink); }
.check-desc { display: block; font-size: 13px; color: var(--muted); }
.checks { display: grid; gap: 8px; }
.narrow-form { max-width: 460px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.error-text { color: var(--err); font-size: 13px; }

/* 11. Alerts -------------------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r1); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert p:last-child { margin-bottom: 0; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert strong { color: inherit; }
.alert-body { min-width: 0; }
.alert-body ul { margin: 6px 0 0; padding-left: 18px; }

/* 12. Filters --------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1 1 260px; min-width: 0; }
.filters .select { width: auto; min-width: 150px; }
.filter-more { display: contents; }
.filter-toggle { display: none; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters a {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: var(--pill);
  background: var(--brand-wash); color: var(--brand-lift); font-size: 13px; text-decoration: none;
}
.active-filters a .icon { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .filters .select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .filter-toggle { display: inline-flex; }
  .filter-more { display: none; }
  .filters.open .filter-more { display: contents; }
}

/* 13. Tables (cards on phones) --------------------------------------------------- */
.table-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2); box-shadow: var(--e1); overflow: hidden; }
.table-wrap.flush { border: 0; border-radius: 0 0 var(--r2) var(--r2); box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted);
  padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.table th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--brand-lift); text-decoration: none; }
.table th .icon { width: 14px; height: 14px; }
.table th[aria-sort] { color: var(--ink); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: var(--brand-wash); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .domain-cell a { font: 500 14px/1.3 var(--mono); color: var(--ink); }
.table .domain-cell a:hover { color: var(--brand-lift); }
.table .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.table .date { font-family: var(--mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-link { position: relative; }

@media (max-width: 760px) {
  .table-wrap.cards { background: none; border: 0; box-shadow: none; overflow: visible; }
  .cards .table thead { display: none; }
  .cards .table, .cards .table tbody { display: block; }
  .cards .table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
    padding: 14px 16px; margin-bottom: 10px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2); box-shadow: var(--e1);
  }
  .cards .table tbody tr:hover { background: var(--surface); }
  .cards .table td { display: block; padding: 0; border: 0; }
  .cards .table td[data-label]:not(.lead)::before {
    content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px;
  }
  .cards .table td.lead { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
  .cards .table tr:has(td.end) td.lead { grid-column: 1; }
  .cards .table td.span { grid-column: 1 / -1; }
  .cards .table td.end { grid-row: 1; grid-column: 2; justify-self: end; align-self: start; }
  .cards .table td.end::before { display: none !important; }
  .cards .table td.hide-sm { display: none; }
  .cards .table .num { text-align: left; }
}

.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--rule-strong); margin-bottom: 8px; }
.empty h3 { margin-bottom: 4px; }

/* 14. Pagination & tabs ---------------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pager-links { display: flex; gap: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px;
  color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs .count { padding: 0 8px; border-radius: var(--pill); background: var(--surface-sunk); font-size: 12px; color: var(--muted); }
.tabs a[aria-current="page"] .count { background: var(--gold-wash); color: var(--gold-deep); }

/* 15. Definition lists (domain detail) ------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.facts:last-child { border-bottom: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }
.head-chips { margin-top: 10px; }
.sub-line { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.domain-title { font: 600 28px/1.2 var(--mono); color: var(--ink); letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (max-width: 760px) { .domain-title { font-size: 22px; } }
.ns-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ns-list li { display: flex; align-items: center; gap: 10px; font: 400 14px/1.4 var(--mono); color: var(--ink); }
.ns-list li .icon { color: var(--muted); width: 16px; height: 16px; }
.contact-card { padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.contact-card:last-child { border-bottom: 0; }
.contact-role { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.copy-btn { border: 0; background: none; color: var(--muted); padding: 2px; cursor: pointer; border-radius: 4px; display: inline-grid; place-items: center; }
.copy-btn:hover { color: var(--brand-lift); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.done { color: var(--ok); }

/* 16. Chart ----------------------------------------------------------------------- */
.chart { position: relative; padding: 8px 22px 16px; }
.chart-plot { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; height: 180px; border-bottom: 1px solid var(--rule-strong); }
.chart-grid { position: absolute; inset: 0; pointer-events: none; }
.chart-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.chart-grid em { position: absolute; right: 100%; transform: translate(-6px, -50%); font: 400 11px/1 var(--mono); color: var(--muted); font-style: normal; }
.bar-slot {
  position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center;
  text-decoration: none; border-radius: 6px 6px 0 0; cursor: pointer;
}
.bar-slot:hover, .bar-slot:focus-visible { background: var(--brand-wash); text-decoration: none; }
.bar { width: min(24px, 60%); min-height: 0; background: var(--chart); border-radius: 4px 4px 0 0; transition: background var(--t); }
.bar.zero { height: 0; }
.bar-slot:hover .bar, .bar-slot:focus-visible .bar { background: var(--chart-hover); }
.bar-value { position: absolute; left: 0; right: 0; text-align: center; font: 500 12px/1 var(--body); color: var(--ink); transform: translateY(calc(-100% - 5px)); }
.chart-axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-top: 8px; }
.chart-axis span { text-align: center; font-size: 12px; color: var(--muted); }
.chart-axis span.year { color: var(--ink); font-weight: 500; }
.chart-wrap { padding-left: 26px; }
.tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 8px 10px; border-radius: var(--r1);
  background: var(--ink); color: var(--surface); font-size: 13px; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--e3); transform: translate(-50%, calc(-100% - 10px));
}
.tip strong { color: inherit; display: block; }
.chart-table { width: 100%; }
@media (max-width: 480px) {
  .chart { padding: 8px 12px 14px; }
  .chart-axis span:nth-child(even) { visibility: hidden; }
}

/* 17. Lists (upcoming, activity) ----------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--rule); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .name { font: 500 14px/1.3 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.list .meta { font-size: 13px; color: var(--muted); }
.days { font: 500 13px/1 var(--body); white-space: nowrap; }

/* 18. Progress ------------------------------------------------------------------- */
.progress { height: 8px; border-radius: var(--pill); background: var(--surface-sunk); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--brand-lift); border-radius: var(--pill); transition: width .4s var(--ease); }
.sync-box { padding: 22px; }
.sync-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rule-strong); border-top-color: var(--brand-lift); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 19. Auth screens -------------------------------------------------------------------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(circle at 85% -10%, rgba(233, 166, 60, .18), transparent 40%),
    radial-gradient(circle at 0% 110%, rgba(28, 95, 181, .35), transparent 45%),
    #071428;
  position: relative; overflow: hidden;
}
.auth::before, .auth::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .06);
}
.auth::before { width: 720px; height: 720px; top: -260px; right: -260px; }
.auth::after { width: 1100px; height: 1100px; top: -450px; right: -450px; border-color: rgba(233, 166, 60, .08); }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--r3); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  padding: 32px;
}
.auth-card.wide { max-width: 560px; }
.auth-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
.auth-brand .brand-logo { width: 170px; }
.auth-brand .brand-logo.on-dark { display: none; }
.auth-brand .brand-logo.on-light { display: block; }
.auth-brand .brand-sub { color: var(--gold-deep); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-brand .brand-logo.on-dark { display: block; }
  :root:not([data-theme="light"]) .auth-brand .brand-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .auth-brand .brand-sub { color: var(--gold); }
}
:root[data-theme="dark"] .auth-brand .brand-logo.on-dark { display: block; }
:root[data-theme="dark"] .auth-brand .brand-logo.on-light { display: none; }
:root[data-theme="dark"] .auth-brand .brand-sub { color: var(--gold); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .lede { color: var(--muted); margin-bottom: 22px; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px; } }

.qr-box { display: grid; grid-template-columns: 168px 1fr; gap: 20px; align-items: center; margin: 4px 0 20px; }
.qr { width: 168px; height: 168px; padding: 10px; background: #fff; border-radius: var(--r2); border: 1px solid var(--rule); }
.qr svg { display: block; width: 100%; height: 100%; }
.secret { font: 500 15px/1.6 var(--mono); color: var(--ink); letter-spacing: .06em; word-break: break-all; }
@media (max-width: 480px) { .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.steps { margin: 0 0 18px; padding-left: 20px; color: var(--text); }
.steps li { margin-bottom: 6px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 18px; padding: 16px; list-style: none; background: var(--surface-sunk); border-radius: var(--r2); }
.codes li { font: 500 16px/1.5 var(--mono); color: var(--ink); text-align: center; letter-spacing: .04em; }

/* 20. Users -------------------------------------------------------------------------------- */
.user-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-cell .who { min-width: 0; }
.user-cell .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-once { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r1); background: var(--surface); border: 1px dashed var(--rule-strong); }
.secret-once code { font-size: 16px; color: var(--ink); }
.secret-once code.small { flex: 1 1 0; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 30%, var(--rule)); }

/* 20b. WHMCS check: money strip, status filter, item status ---------------------------- */
.money-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 20px; }
.money-item {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2); box-shadow: var(--e1);
  color: var(--text); text-decoration: none;
}
a.money-item:hover { text-decoration: none; border-color: var(--err); }
.money-item.alerting { border-color: color-mix(in srgb, var(--err) 35%, var(--rule)); background: var(--err-bg); }
.money-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.money-item.alerting .money-label { color: var(--err); }
.money-label .icon { width: 16px; height: 16px; }
.money-value { font: 600 24px/1.2 var(--body); color: var(--ink); }
.money-unit { font-size: 14px; font-weight: 400; color: var(--muted); }
.money-note { font-size: 12.5px; color: var(--muted); }

.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-tools p { margin: 0; flex: 1 1 320px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r1); background: var(--surface-sunk); gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.seg a:hover { color: var(--ink); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }

.issue-cell { white-space: nowrap; text-align: right; }
.issue-cell > * { vertical-align: middle; }
.issue-cell .badge { margin-right: 6px; }
.issue-note { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; margin-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.issue-note .icon { width: 14px; height: 14px; }
.badge.flag { margin-top: 6px; white-space: normal; }
.sub-head { margin: 18px 0 8px; font-size: 14px; }
.list.boxed { border: 1px solid var(--rule); border-radius: var(--r1); margin-bottom: 8px; }
.list.boxed li { padding: 10px 14px; }
.list .meta { display: block; }
.plain-list { margin: 0 0 14px; padding-left: 18px; }
.plain-list li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .issue-cell { text-align: left; white-space: normal; display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; }
  .issue-cell:empty { display: none !important; }
  .issue-note { max-width: 100%; }
}

/* 20c. Contacts, renewal, row actions, email preview ---------------------------------- */
.text-warn { color: var(--warn); }
.saved-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--ok) !important; }
.saved-mark .icon { width: 13px; height: 13px; }
.contact-cell { font-size: 13px; min-width: 210px; max-width: 320px; }
.contact-line { display: block; line-height: 1.5; }
.contact-line .item { white-space: nowrap; }
.renew-cell .unit { font-size: 12px; color: var(--muted); margin-left: 1px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 4px; }
.domains-table td { padding-top: 11px; padding-bottom: 11px; }
.domains-table td, .domains-table th { padding-left: 12px; padding-right: 12px; }
.table-wrap:not(.flush) { overflow-x: auto; position: relative; }
.table-wrap.flush { overflow-x: auto; }
@media (min-width: 761px) {
  /* Icon-only buttons on wider screens; the label stays for screen readers. */
  .row-actions .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .row-actions .btn { padding: 5px 8px; }
}
@media (max-width: 760px) {
  .row-actions { text-align: left; display: flex !important; gap: 6px; }
  .contact-cell { min-width: 0; max-width: none; }
  .contact-line .item { white-space: normal; overflow-wrap: anywhere; }
}
.list.compact li { padding: 8px 0; }
.card-foot .label { display: block; margin-bottom: 4px; }
.preview-card { overflow: hidden; background: #f4f6fa; }
.email-frame { display: block; width: 100%; height: 900px; border: 0; background: #f4f6fa; }
@media (max-width: 760px) { .email-frame { height: 720px; } }

/* 20d. Clients ---------------------------------------------------------------------------- */
.client-name { font-weight: 600; color: var(--ink); }
.client-name:hover { color: var(--brand-lift); }
form.inline { display: inline; }
.add-box { padding: 16px 22px; color: var(--text); }
.add-box .field { margin-bottom: 8px; }
.add-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.add-grid .field { align-content: start; }
@media (max-width: 760px) { .add-grid { grid-template-columns: minmax(0, 1fr); } }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.block-link { display: block; }
.section-gap { margin-top: 20px; }
.grid-2.tight { gap: 12px; }

/* 20e. Pricing ---------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.facts-plain { padding: 8px 0 12px; border-bottom: 0; }
.price-grid { width: 100%; border-collapse: collapse; }
.price-grid th { font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: left; padding: 6px 8px; }
.price-grid td { padding: 4px 8px; vertical-align: top; }
.price-grid td:first-child { white-space: nowrap; color: var(--ink); font-weight: 500; font-size: 14px; padding-top: 12px; }
.price-grid .input { min-height: 36px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.price-grid .was { display: block; font-size: 11.5px; color: var(--warn); margin-top: 2px; }
.drift { color: var(--warn); }
.free-note { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ok); }
.free-note .icon { width: 14px; height: 14px; }
.tld-name { font: 600 15px/1.3 var(--mono); color: var(--ink); }

/* 20f. Reminders ------------------------------------------------------------------------- */
.reminder-list > li { align-items: flex-start; }
.reminder-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.reminder-items li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; font-size: 13px; }
.reminder-items .icon { width: 15px; height: 15px; color: var(--muted); }
.reminder-items .mono { color: var(--ink); }
.reminder-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) {
  .reminder-list > li { flex-direction: column; align-items: stretch; }
  .reminder-actions { justify-content: flex-start; }
}

/* 20g. Public payment page ------------------------------------------------------------- */
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pay-head h1 { font-size: 24px; margin: 0 0 4px; }
.eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pay-lines { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.pay-lines td, .pay-lines th { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.pay-lines .num { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.pay-lines tfoot th, .pay-lines tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 17px; font-weight: 600; color: var(--ink); }
.pay-option h2 { font-size: 16px; margin-bottom: 4px; }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* 20h. Invoices ----------------------------------------------------------------------------- */
.invoice-pick { align-items: center; }
.invoice-pick .grow { min-width: 0; flex: 1; cursor: pointer; }
.select-sm { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.add-grid.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .invoice-pick { flex-wrap: wrap; } .invoice-pick .select-sm { width: 100%; } }

/* 20i. Email log --------------------------------------------------------------------------- */
.tile-alert { border-color: color-mix(in srgb, var(--err) 35%, var(--rule)); background: linear-gradient(180deg, var(--err-bg), var(--surface) 70%); }
.tile-alert .tile-value { color: var(--err); }
.mail-table td.lead { display: flex; align-items: flex-start; gap: 12px; }
.mail-main { display: block; min-width: 0; overflow-wrap: anywhere; }
.mail-kind { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-wash); color: var(--brand); }
.mail-kind .icon { width: 17px; height: 17px; }
.mail-kind.kind-invoice { background: var(--gold-wash); color: var(--gold-deep); }
.mail-kind.kind-receipt { background: var(--ok-bg); color: var(--ok); }
.mail-kind.kind-staff { background: var(--surface-sunk); color: var(--muted); }
.mail-kind.kind-reminder { background: var(--info-bg); color: var(--info); }
.row-failed .mail-kind { background: var(--err-bg); color: var(--err); }
.mail-error { display: block; margin-top: 4px; font-size: 12.5px; color: var(--err); }
.mail-to { overflow-wrap: anywhere; }
.mail-subject { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.mail-problem p { margin: 4px 0 0; }
.mail-problem .mono { overflow-wrap: anywhere; opacity: .85; }
.mail-text summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.mail-text pre { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--mono); color: var(--text); }
.attempts { list-style: none; margin: 0; padding: 8px 22px 14px; }
.attempts li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.attempts li:last-child { border-bottom: 0; }
.attempts li.current a { font-weight: 600; color: var(--ink); }
.attempts .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.attempts .dot.ok { background: var(--ok); }
.attempts .dot.err { background: var(--err); }
@media (max-width: 760px) { .mail-subject { font-size: 20px; } .mail-table td.lead { grid-column: 1 / -1; } }

/* 20j. Mark reminders paid ------------------------------------------------------------------ */
.pay-item .grow { flex: 1; min-width: 0; }
.pay-item-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* 23. Client area ------------------------------------------------------------------------------- */
.client-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.c-staff-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px 16px;
  background: var(--warn-bg); color: var(--warn); font-size: 14px; border-bottom: 1px solid var(--warn); }
.c-staff-bar span { display: inline-flex; align-items: center; gap: 6px; }
.c-staff-bar .icon { width: 16px; height: 16px; }
.c-staff-bar form { margin: 0; }
.c-head { position: sticky; top: 0; z-index: 30; background: var(--side-bg); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.c-head-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.c-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.c-brand:hover { text-decoration: none; }
.c-brand img { width: 124px; height: auto; display: block; }
.c-brand span { padding: 4px 0 0 12px; border-left: 1px solid var(--side-rule); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.c-nav { display: flex; align-items: stretch; gap: 4px; flex: 1; height: 100%; }
.c-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  color: var(--side-text); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.c-nav a .icon { width: 17px; height: 17px; opacity: .8; }
.c-nav a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); }
.c-nav a[aria-current="page"] { color: #fff; }
.c-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 3px; background: #fff; }
.c-nav a[aria-current="page"] .icon { color: var(--gold); opacity: 1; }
.c-nav .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11.5px; line-height: 18px; text-align: center; }
.c-nav .count.alert { background: var(--gold); color: #1d1405; font-weight: 600; }
.c-user { display: flex; align-items: center; gap: 6px; flex: none; }
.c-me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r1); color: #fff; text-decoration: none; max-width: 240px; }
.c-me:hover, .c-me[aria-current="page"] { background: rgba(255, 255, 255, .07); text-decoration: none; }
.c-me .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.c-me-text { min-width: 0; line-height: 1.25; }
.c-me-name, .c-me-mail { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-me-name { font-weight: 500; font-size: 14px; }
.c-me-mail { font-size: 12px; color: var(--side-muted); }
.c-signout { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--r1); background: none; color: var(--side-muted); cursor: pointer; }
.c-signout:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.c-main { flex: 1; }
.c-content { max-width: 1180px; margin: 0 auto; padding: 32px 24px 56px; }
.c-foot { border-top: 1px solid var(--rule); background: var(--surface); }
.c-foot-in { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.c-foot a { color: var(--brand-lift); }

.c-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 26px 28px; border-radius: var(--r3); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 92% -20%, rgba(233, 166, 60, .32), transparent 45%), linear-gradient(135deg, #0a1b33, #003880);
}
.c-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border: 2px solid rgba(233, 166, 60, .35); border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-15deg); pointer-events: none; }
.c-hero h1 { color: #fff; font-size: 30px; margin: 0 0 6px; }
.c-hero .lede { color: rgba(255, 255, 255, .78); margin: 0; }
.c-hero .eyebrow { color: var(--gold); }
.btn-gold { background: var(--gold); color: #1d1405; border-color: transparent; position: relative; z-index: 1; }
.btn-gold:hover { background: #f0b552; color: #1d1405; }
.btn-lg { min-height: 48px; padding: 12px 26px; font-size: 16px; }
.c-amount { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.c-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-wash); color: var(--brand); }
.c-ico .icon { width: 18px; height: 18px; }

.c-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.c-plan-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.c-plan-head h2 { font-size: 17px; margin: 0 0 2px; }
.c-plan .kv .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--ok); }
.c-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.c-new-password p { margin: 6px 0 0; }
.c-secret { font-size: 15px; word-break: break-all; user-select: all; }

.c-invoice { max-width: 760px; margin: 0 auto; padding: 32px 36px; }
.c-invoice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 3px solid var(--gold); }
.c-invoice-head h1 { font-size: 26px; margin: 0 0 4px; }
.c-invoice-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.c-invoice-parties > div { display: flex; flex-direction: column; gap: 2px; }
.pay-lines .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pay-lines tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 17px; font-weight: 600; color: var(--ink); }
.c-invoice-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }

.c-renew-item { align-items: center; }
.c-renew-item label { cursor: pointer; min-width: 0; flex: 1; }
.c-renew-item .badge { margin-left: 6px; }
.c-renew-item.is-locked { background: var(--surface-sunk); }
.c-renew-item.is-locked label { cursor: default; }
.c-renew-opt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.c-renew-go { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.c-codes h2 .icon { color: var(--ok); vertical-align: -3px; }

.login-list li.login-item { flex-wrap: wrap; gap: 8px 12px; padding: 14px 18px; }
.login-who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.login-email { font-size: 13.5px; font-weight: 500; overflow-wrap: break-word; }
.login-who .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.login-actions { display: flex; gap: 6px; margin-left: auto; }
.invite-log { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.invite-log summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 0; }
.invite-log summary::-webkit-details-marker { display: none; }
.invite-log summary:hover { color: var(--ink); }
.invite-log summary .icon { width: 14px; height: 14px; }
.invite-log .invite-log-caret { transition: transform .15s; }
.invite-log[open] .invite-log-caret { transform: rotate(180deg); }
.invite-rows { margin-top: 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--rule); }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.invite-row:last-child { border-bottom: 0; }
.invite-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.invite-row-kind { color: var(--ink); font-weight: 500; }
.invite-row-when { overflow-wrap: break-word; }
.invite-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.invite-actions .check { flex: 1 1 320px; }
td.pick { width: 44px; }
td.pick input { width: 18px; height: 18px; accent-color: var(--brand-lift); }

@media (max-width: 1380px) {
  .c-head-in { gap: 18px; }
  .c-nav { gap: 0; min-width: 0; }
  .c-nav a { padding: 0 9px; }
  .c-me-text { display: none; }
}
@media (max-width: 600px) {
  .c-content .list li { flex-wrap: wrap; row-gap: 8px; }
  .c-content .list li .grow { flex: 1 1 150px; min-width: 0; }
  .c-content .list .mono { white-space: nowrap; }
}
@media (max-width: 900px) {
  .c-head-in { height: auto; flex-wrap: wrap; gap: 0 12px; padding: 10px 16px 0; }
  .c-brand img { width: 104px; }
  .c-user { margin-left: auto; }
  .c-me-text { display: none; }
  .c-nav { order: 3; flex: 1 0 100%; height: 48px; overflow-x: auto; margin: 6px -16px 0; padding: 0 8px; scrollbar-width: none; }
  .c-nav::-webkit-scrollbar { display: none; }
  .c-nav a { flex: none; padding: 0 10px; font-size: 14px; }
  .c-content { padding: 20px 16px 40px; }
  .c-foot-in { padding: 14px 16px; }
  .c-hero { padding: 20px; }
  .c-hero h1 { font-size: 24px; }
  .c-invoice { padding: 22px 18px; }
  .c-invoice-parties { grid-template-columns: minmax(0, 1fr); }
  .c-renew-item { flex-wrap: wrap; }
  .c-renew-opt { flex: 1 0 100%; align-items: stretch; text-align: left; padding-left: 30px; }
  .c-renew-opt .select-sm { width: 100%; }
}
@media print {
  .c-head, .c-foot, .crumb, .c-invoice-pay { display: none !important; }
  .c-invoice { box-shadow: none; border: 0; }
}

/* 24. Shop ------------------------------------------------------------------------------------------ */
.c-cart { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r1); color: var(--side-text); }
.c-cart:hover, .c-cart[aria-current="page"] { background: rgba(255, 255, 255, .07); color: #fff; }
.c-cart .icon { width: 20px; height: 20px; }
.c-cart .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; }
.c-cart .count.alert { background: var(--gold); color: #1d1405; font-weight: 600; }
.c-legal { display: flex; gap: 14px; }
.text-ok { color: var(--ok); }

.shop-hero {
  position: relative; overflow: hidden; border-radius: var(--r3); color: #fff; padding: 46px 40px 38px;
  background: radial-gradient(circle at 88% -10%, rgba(233, 166, 60, .35), transparent 42%), radial-gradient(circle at 0% 120%, rgba(28, 95, 181, .55), transparent 50%), linear-gradient(135deg, #0a1b33, #003880);
}
.shop-hero::after { content: ""; position: absolute; right: -80px; top: -110px; width: 340px; height: 340px; border: 2px solid rgba(233, 166, 60, .35); border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-15deg); pointer-events: none; }
.shop-hero-in { position: relative; z-index: 1; max-width: 760px; }
.shop-hero .eyebrow { color: var(--gold); }
.shop-hero h1 { color: #fff; font-size: 36px; line-height: 1.15; margin: 0 0 10px; }
.shop-hero .lede { color: rgba(255, 255, 255, .8); margin: 0 0 22px; }
.shop-search { display: flex; gap: 10px; padding: 8px; border-radius: var(--r2); background: rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.shop-search .input { flex: 1; min-width: 0; border: 0; font-size: 17px; min-height: 52px; background: #fff; color: #0a1b33; }
.shop-search .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.shop-chips li { padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .85); }
.shop-chips strong { color: #fff; }

.shop-results .list li { padding: 14px 22px; }
.shop-results li.is-wanted { background: var(--brand-wash); }
.shop-results li.is-wanted.is-free { box-shadow: inset 4px 0 0 var(--ok); }
.shop-domain { display: block; font: 600 17px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.shop-domain span { color: var(--brand-lift); }
.shop-next { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); }
.shop-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shop-section-head h2 { margin: 0; font-size: 22px; }
.shop-section-head a { display: inline-flex; align-items: center; gap: 4px; }

.shop-plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shop-plan { display: flex; flex-direction: column; padding: 24px; border-top: 4px solid var(--gold); }
.shop-plan-head h3 { font-size: 20px; margin: 0 0 6px; }
.shop-price { margin: 0 0 8px; color: var(--muted); }
.shop-price strong { font: 600 26px/1.1 var(--display); color: var(--ink); margin-right: 4px; }
.shop-free { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13.5px; color: var(--ok); }
.shop-free .icon { width: 16px; height: 16px; }
.shop-features { list-style: none; margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: 14px; }
.shop-features li { display: flex; gap: 8px; align-items: flex-start; }
.shop-features .icon { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.shop-plan-form { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }

.shop-why { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-why > div { padding: 22px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--rule); }
.shop-why h3 { margin: 12px 0 6px; font-size: 16px; }
.shop-why p { margin: 0; font-size: 14px; color: var(--muted); }

.cart-list li { flex-wrap: wrap; }
.cart-list .grow { flex: 1 1 200px; min-width: 0; }
.icon-btn-sm { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r1); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn-sm:hover { color: var(--err); border-color: var(--err); }
.icon-btn-sm .icon { width: 15px; height: 15px; }
.cart-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--rule); }
.cart-sum { font: 600 32px/1.1 var(--display); color: var(--ink); margin: 0 0 8px; }
.checkout-sent { text-align: center; }
.checkout-sent .c-ico { margin: 0 auto 10px; width: 48px; height: 48px; }
.checkout-summary h2 { font-size: 17px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.legal-tabs a { padding: 8px 14px; border-radius: var(--pill); color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.legal-tabs a:hover { background: var(--surface); text-decoration: none; }
.legal-tabs a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.legal { padding: 36px 44px; line-height: 1.7; color: var(--text); }
.legal h1 { font-size: 30px; margin: 0 0 18px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .shop-hero { padding: 28px 20px 24px; }
  .shop-hero h1 { font-size: 26px; }
  .shop-search { flex-direction: column; }
  .shop-why { grid-template-columns: minmax(0, 1fr); }
  .legal { padding: 24px 18px; }
  .c-legal { order: 3; }
}

.whmcs-features { margin-top: 10px; padding: 12px 14px; border-radius: var(--r1); background: var(--surface-sunk); }
.whmcs-features ul { margin: 4px 0 10px; padding-left: 18px; }

pre.exchange { margin: 0 0 12px; padding: 14px; border-radius: var(--r1); background: var(--surface-sunk); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }

/* 25. Support tickets ------------------------------------------------------------------------- */
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.msg { max-width: 88%; padding: 14px 16px; border-radius: var(--r2); background: var(--surface-sunk); border: 1px solid var(--rule); }
.msg.mine { margin-left: auto; background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand-lift) 25%, var(--rule)); }
.msg.internal { background: var(--warn-bg); border-style: dashed; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head .avatar { width: 26px; height: 26px; font-size: 11px; }
.msg-head strong { color: var(--ink); font-size: 14px; }
.msg-head .small { margin-left: auto; }
.msg-body { font-size: 14.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.ticket-col { display: grid; gap: 18px; max-width: 860px; }
.ticket-form { max-width: 760px; }
@media (max-width: 600px) { .msg { max-width: 100%; } }

/* 21. Dialog ------------------------------------------------------------------------------- */
dialog.confirm {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r3);
  background: var(--surface); color: var(--text); box-shadow: var(--e3);
}
dialog.confirm::backdrop { background: rgba(5, 12, 24, .55); }
.confirm-body { padding: 24px 24px 8px; }
.confirm-body h2 { margin-bottom: 8px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 24px; }

/* 22. Print ---------------------------------------------------------------------------------- */
@media print {
  .side, .topbar, .page-actions, .filters, .pager, .no-print { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .card, .table-wrap { box-shadow: none; }
  body { background: #fff; }
}

/* Registry credit */
.credit-amount { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.credit-amount.is-empty { color: var(--muted); font-weight: 400; }
.credit-list .credit-total { background: var(--surface-2); }
.credit-big { margin: 0; font-size: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Merging clients */
.dup-group + .dup-group { margin-top: 18px; }
.dup-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.dup-who .meta { flex-basis: 100%; overflow-wrap: anywhere; }
.dup-group .card-foot { display: flex; justify-content: flex-end; padding: 10px 18px; border-top: 1px solid var(--rule); }
.merge-side h2 { margin: 2px 0 6px; font-size: 18px; }
.merge-side .small { overflow-wrap: anywhere; }
.merge-side.is-gone { opacity: .85; border-style: dashed; }
.merge-side.is-kept { border-color: var(--ok, #1f8a5b); }
.plain-list { margin: 0; padding-left: 18px; }

.card-title { margin: 0 0 12px; font-size: 16px; }
.merge-side a .icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* Registry lookup */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--rule); max-width: 100%; overflow-x: auto; }
.seg-item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.seg-item .icon { width: 16px; height: 16px; }
.seg-item:hover { color: var(--ink); }
.seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 27, 51, .08); }
.reg-form { margin-bottom: 18px; }
.reg-card .card-head h2 { font-size: 18px; }
.reg-kv { padding: 18px 22px; grid-template-columns: 220px 1fr; }
.reg-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; margin: 0 6px 4px 0; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--rule); font-size: 13px; color: var(--ink); text-decoration: none; }
a.reg-chip:hover { border-color: currentColor; }
.reg-chip .icon { width: 13px; height: 13px; }
.reg-ns { margin: 0; padding: 0; list-style: none; }
.reg-ns li { padding: 2px 0; }
.reg-other { border-top: 1px solid var(--rule); padding: 10px 22px; font-size: 13px; }
.reg-other summary { cursor: pointer; color: var(--muted); }
.reg-other .reg-kv { padding: 10px 0 4px; }
@media (max-width: 640px) { .reg-kv { grid-template-columns: 1fr; gap: 2px 0; } .reg-kv dd { margin-bottom: 8px; } }

/* Client area: find a new domain */
.c-find { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; margin: 0 0 20px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 4px 14px rgba(10, 27, 51, .06); }
.c-find > .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.c-find .input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; font-size: 15px; }
.c-find .input:focus { outline: none; }
.c-find:focus-within { border-color: var(--brand, #1d4ed8); }

.dup-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Nameserver changes */
.ns-form { display: grid; gap: 2px; }
.ns-field { margin-bottom: 8px; }
.ns-actions { margin-top: 6px; }
.ns-default { margin-top: 12px; }
.ns-default .btn { white-space: normal; text-align: left; height: auto; min-height: 32px; }
.ns-edit { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.ns-edit summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.ns-edit summary .icon { width: 16px; height: 16px; }
.ns-edit[open] summary { margin-bottom: 12px; }
.ns-history { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--rule); display: grid; gap: 4px; color: var(--muted); overflow-wrap: anywhere; }
.ns-today .meta { overflow-wrap: anywhere; }
.ns-page .card-title { margin-bottom: 12px; }

/* Domain transfers */
.shop-transfer-link { margin: -4px 0 14px; font-size: 14px; }
.shop-transfer-link a { color: inherit; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.shop-transfer-link .icon { width: 15px; height: 15px; }
.t-steps { display: grid; gap: 8px; font-size: 14px; }
.transfer-in-box summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.transfer-in-box summary .icon { width: 16px; height: 16px; }
.transfer-in-box[open] summary { margin-bottom: 12px; }
.c-domain-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.table td.c-actions-td { text-align: right; }
@media (max-width: 760px) { .table td.c-actions-td { text-align: left; } .table td.c-actions-td:empty { display: none; } }

/* Owner details at the registry */
.owner-edit summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.owner-edit summary .icon { width: 16px; height: 16px; }
.owner-edit[open] summary { margin-bottom: 12px; }
.add-grid.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { .add-grid.three { grid-template-columns: 1fr; } }
.filters .show-expired { white-space: nowrap; padding: 0 4px; min-height: 40px; }
.filters .show-expired input { width: 16px; height: 16px; accent-color: var(--brand); }

/* Reminders: emails already sent per line */
.sent-count { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12.5px; color: var(--ok); font-weight: 500; }
.sent-count .icon { width: 13px; height: 13px; }
.sent-count.is-none { color: var(--muted); font-weight: 400; }
.sent-log { display: inline; }
.sent-log summary { display: inline; cursor: pointer; list-style: none; }
.sent-log summary::-webkit-details-marker { display: none; }
.sent-log[open] { display: block; margin: 4px 0 6px 22px; }
.sent-log ul { margin: 4px 0 0; padding: 8px 12px; list-style: none; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 8px; display: grid; gap: 3px; }
.sent-log ul a { margin-left: 4px; }
.reminder-items .sent-log[open] { flex-basis: 100%; }
.reminder-items .sent-log ul li { display: block; font-size: 12.5px; }

/* Today: the daily checklist */
.today-hero { display: flex; align-items: center; gap: 28px; padding: 24px; }
.ring { --p: 0; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand-lift) calc(var(--p) * 1%), var(--surface-sunk) 0); }
.ring::before { content: ""; grid-area: 1 / 1; width: 76%; height: 76%; border-radius: 50%; background: var(--surface); }
.ring-value { grid-area: 1 / 1; position: relative; font: 700 30px/1 var(--display); color: var(--ink); }
.ring-value small { font-size: 15px; margin-left: 1px; color: var(--muted); }
.ring.full { background: var(--ok); }
.ring.sm { width: 56px; height: 56px; }
.ring.sm .ring-value { font-size: 15px; }
.ring.sm .ring-value small { font-size: 10px; }
.today-sum { flex: 1; min-width: 0; }
.today-sum h2 { margin: 0 0 4px; font: 600 22px/1.25 var(--display); color: var(--ink); }
.today-sum > p { margin: 0; }
.today-sum .progress { margin: 12px 0 14px; }
.today-stats { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.today-stats strong { color: var(--ink); font: 600 18px/1 var(--display); margin-right: 4px; }
.today-section { font: 600 12.5px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 30px 0 12px; }
.step { overflow: hidden; scroll-margin-top: 16px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px 12px; }
.step-head .grow { flex: 1; min-width: 0; }
.step-head h3 { margin: 0; font: 600 16px/1.3 var(--display); color: var(--ink); }
.step-hint { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); font: 600 14px/1 var(--display); }
.step-n .icon { width: 16px; height: 16px; }
.step.is-done .step-n { background: var(--ok-bg); color: var(--ok); }
.step-score { flex: none; text-align: right; display: grid; gap: 3px; }
.step-pct { font: 700 20px/1 var(--display); color: var(--ink); }
.step.is-done .step-pct { color: var(--ok); }
.step-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.step-bar { margin: 0 22px 16px; height: 6px; }
.step.is-done .progress > span, .today-hero .ring.full + .today-sum .progress > span { background: var(--ok); }
.step-foot { padding: 0 22px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.step-foot > p { flex-basis: 100%; margin: 0; }
.leads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.card-head + .leads { border-top: 0; }
.lead { padding: 14px 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 7px; min-width: 0; scroll-margin-top: 16px; }
.lead:last-child { border-bottom: 0; }
.step .leads + .step-foot { padding-top: 14px; border-top: 1px solid var(--rule); }
.lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lead-title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lead-person { font-size: 13px; color: var(--muted); }
.lead-reason { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.lead-last { margin: 0; font-size: 13px; color: var(--warn); display: flex; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.lead-last .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.lead-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.lead-actions .lang { font-size: 11px; font-weight: 600; opacity: .8; }
.btn-wa { background: #187a41; color: #fff; }
.btn-wa:hover { background: #12693a; color: #fff; }
.lead-more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand-lift); }
.lead-more summary .icon { width: 15px; height: 15px; }
.lead-more[open] summary { margin-bottom: 8px; }
.lead-scripts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 14px; background: var(--surface-sunk); border-radius: 10px; font-size: 13.5px; }
.lead-scripts h4 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lead-scripts p { margin: 0; }
.log-form { padding: 14px; border: 1px solid var(--rule); border-radius: 10px; }
.log-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.outcome-pick { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.outcome-pick legend { margin-bottom: 6px; padding: 0; }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: var(--pill); font-size: 13px; color: var(--text); background: var(--surface); }
.chip-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.done-today { padding: 12px 22px 14px; border-top: 1px solid var(--rule); }
.done-today summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.done-today summary .icon { width: 15px; height: 15px; }
.done-today .list li { padding: 8px 0; }
.done-today .meta { display: block; overflow-wrap: anywhere; }
.c-ico.ok { background: var(--ok-bg); color: var(--ok); width: 28px; height: 28px; border-radius: 50%; }
.c-ico.ok .icon { width: 15px; height: 15px; }
.quick-prospect { flex: 1; min-width: 0; }
.quick-prospect .field { margin-bottom: 4px; }
.today-mini { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit; text-decoration: none; }
.today-mini:hover { border-color: var(--brand-lift); text-decoration: none; }
.today-mini .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.today-mini strong { color: var(--ink); }
.today-mini .meta { font-size: 13px; color: var(--muted); }
.today-mini > .icon { color: var(--muted); }
.add-prospect { margin-bottom: 16px; }
.add-prospect summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-lift); }
.add-prospect summary .icon { width: 17px; height: 17px; }
.add-prospect[open] summary { margin-bottom: 14px; }
.contact-history .client-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-note { margin: 4px 0 0; overflow-wrap: anywhere; }
.texts-card { margin-top: 16px; }
.texts-card .btn-link { margin-top: 4px; }
@media (max-width: 640px) {
  .today-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
  .ring { width: 104px; height: 104px; }
  .step-head { padding: 16px 16px 10px; gap: 12px; }
  .step-bar { margin: 0 16px 14px; }
  .step-foot { padding: 0 16px 16px; }
  .lead { padding: 12px 16px; }
  .done-today { padding: 10px 16px 12px; }
  .lead-scripts, .log-row { grid-template-columns: minmax(0, 1fr); }
}

/* Set up & invoice */
.setup-item { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--rule); }
.card-head + .setup-item { border-top: 0; }
.setup-item p { margin: 0; }
.setup-item .field { margin: 0; }
.setup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.setup-head .inline-check { font-size: 14.5px; }
.setup-skip { margin-left: auto; }
.setup-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-free summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.setup-free[open] { display: grid; gap: 10px; }
.setup-plan { max-width: 420px; }
@media (max-width: 760px) { .setup-fields { grid-template-columns: minmax(0, 1fr); } .setup-skip { margin-left: 0; } }
.sub.text-warn, .sub-line.text-warn { color: var(--warn); }
.sub-line.text-ok { color: var(--ok); }
.sub-line .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Bulk email */
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
