/*
 * Hostsrc client theme for WHMCS: hostsrc.com's design system (DESIGN.md,
 * "Quiet Performance Lab") over Nexus. Loaded after Nexus's theme.min.css.
 *
 * 1. Fonts and tokens: the site's dark tokens (apps/web/src/styles.css, .dark),
 *    then Nexus's own variables pointed at them.
 * 2. Base type and links.
 * 3. Header, breadcrumb, footer.
 * 4. Bootstrap pieces Nexus hard-codes in light colours: cards, lists, tables,
 *    forms, buttons, alerts, dropdowns, modals, tabs, pagination.
 * 5. Nexus page pieces: sidebar, client home, login, tickets, invoices.
 *
 * Rules: flat surfaces in tone steps, fine translucent borders, no glows or
 * gradients (the footer fade is the site's owner-approved exception), Geist Sans
 * explains and Geist Mono measures, one bright (signal) action per view.
 */

/* 1. Fonts and tokens ---------------------------------------------------- */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The comma and full stop of figures (5,99 and 81.181.244.17) from Geist, not Geist Mono: a mono
   separator takes a whole digit's width and reads "5 , 99". Only these two characters; digits stay
   tabular and code keeps its mono punctuation (--hs-font-code). The file is the one body text loads. */
@font-face {
  font-family: "Geist Mono Punct";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+002C, U+002E;
}

:root:root {
  color-scheme: dark;

  /* hostsrc.com, .dark (DESIGN.md names in comments) */
  --hs-background: oklch(0.1505 0.0042 285.88); /* Void */
  --hs-foreground: oklch(0.985 0 0);            /* Signal */
  --hs-card: oklch(0.205 0 0);                  /* Ash Panel */
  --hs-control: oklch(0.269 0 0);               /* Ash Control */
  --hs-control-hover: oklch(0.31 0 0);
  --hs-muted: oklch(0.708 0 0);                 /* Ash Copy */
  --hs-primary: oklch(0.922 0 0);               /* signal button */
  --hs-primary-ink: oklch(0.205 0 0);
  --hs-border: oklch(1 0 0 / 10%);              /* Ghost Line */
  --hs-input: oklch(1 0 0 / 15%);               /* Input Line */
  --hs-fill: oklch(1 0 0 / 4.5%);               /* outline button and field fill */
  --hs-fill-hover: oklch(1 0 0 / 8%);
  --hs-ring: oklch(0.556 0 0);                  /* Focus Slate */
  --hs-ring-soft: oklch(0.556 0 0 / 50%);
  --hs-danger: oklch(0.704 0.191 22.216);
  --hs-danger-surface: oklch(0.704 0.191 22.216 / 12%);
  --hs-amber: #f59e0b;                          /* live state only */
  --hs-amber-surface: rgb(245 158 11 / 12%);
  --hs-live: oklch(0.72 0.15 148);              /* live and "good" state */
  --hs-live-surface: oklch(0.72 0.15 148 / 12%);
  --hs-info: oklch(0.78 0.08 240);
  --hs-info-surface: oklch(0.78 0.08 240 / 12%);
  /* Status chips: four states, a tinted surface and a light text colour,
     each at least 5.5:1 on the page, a card and a control. Waiting is blue,
     not amber: amber stays for live infrastructure state (DESIGN.md). */
  --hs-state-success: oklch(0.8 0.13 150);      /* in good standing */
  --hs-state-success-surface: oklch(0.72 0.15 148 / 14%);
  --hs-state-waiting: oklch(0.8 0.09 245);      /* someone has to act */
  --hs-state-waiting-surface: oklch(0.65 0.13 250 / 18%);
  --hs-state-danger: oklch(0.8 0.11 22);        /* about to end or at risk */
  --hs-state-danger-surface: oklch(0.704 0.191 22.216 / 16%);
  --hs-state-neutral: oklch(0.76 0 0);          /* finished, or unknown */
  --hs-state-neutral-surface: oklch(1 0 0 / 8%);

  --hs-font-sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --hs-font-mono: "Geist Mono Punct", "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hs-font-code: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;

  --hs-radius-sm: 6px;
  --hs-radius-md: 8px;
  --hs-radius-lg: 10px;
  --hs-radius-xl: 14px;
  --hs-radius-2xl: 16px;

  /* Nexus's variables (templates/nexus/css/custom.css), pointed at the tokens. */
  --white: var(--hs-foreground);
  --primary: var(--hs-primary);
  --primary-lifted: var(--hs-foreground);
  --primary-accented: var(--hs-foreground);
  --secondary: var(--hs-muted);
  --secondary-lifted: var(--hs-foreground);
  --secondary-accented: var(--hs-foreground);
  --success: var(--hs-live);
  --success-lifted: var(--hs-live);
  --success-accented: var(--hs-live);
  --info: var(--hs-info);
  --info-lifted: var(--hs-info);
  --info-accented: var(--hs-info);
  --notice: var(--hs-muted);
  --notice-lifted: var(--hs-muted);
  --notice-accented: var(--hs-muted);
  --warning: var(--hs-amber);
  --warning-lifted: var(--hs-amber);
  --warning-accented: var(--hs-amber);
  --error: var(--hs-danger);
  --error-lifted: var(--hs-danger);
  --error-accented: var(--hs-danger);
  --grayscale: var(--hs-primary);
  --grayscale-lifted: var(--hs-foreground);
  --grayscale-accented: var(--hs-foreground);
  --neutral: var(--hs-muted);
  --neutral-lifted: var(--hs-muted);
  --neutral-accented: var(--hs-foreground);
  --text-inverted: var(--hs-primary-ink);
  --text-muted: var(--hs-muted);
  --text-lifted: var(--hs-muted);
  --text-accented: var(--hs-foreground);
  --text: var(--hs-foreground);
  --border-muted: var(--hs-border);
  --border: var(--hs-input);
  --border-lifted: oklch(1 0 0 / 22%);
  --border-accented: oklch(1 0 0 / 32%);
  --bg: var(--hs-card);
  --bg-muted: var(--hs-card);
  --bg-lifted: var(--hs-background);
  --bg-accented: var(--hs-control);
  --bg-inverted: var(--hs-primary);
  --rounding-sm: var(--hs-radius-sm);
  --rounding-md: var(--hs-radius-md);
  --rounding-lg: var(--hs-radius-xl);
  --letter-spacing: normal;
}

/* 2. Base ---------------------------------------------------------------- */

html,
body {
  background-color: var(--hs-background);
}
body {
  color: var(--hs-foreground);
  font-family: var(--hs-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
}
body,
button,
input,
select,
textarea,
.popover,
.tooltip,
.popover-user-notifications {
  font-family: var(--hs-font-sans);
}
::selection {
  background: var(--hs-primary);
  color: var(--hs-primary-ink);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--hs-foreground);
  font-family: var(--hs-font-sans);
  font-weight: 700;
  text-wrap: balance;
}
h1, .h1 { font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.03em; }
h2, .h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.025em; }
h3, .h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
h4, .h4, h5, .h5, h6, .h6 { font-size: 1rem; line-height: 1.35; letter-spacing: normal; }
.font-size-36 { font-size: 1.875rem !important; }
@media (min-width: 768px) {
  h1, .h1, .font-size-36 { font-size: 2.25rem !important; }
}
p { text-wrap: pretty; }

a,
.btn-link {
  color: var(--hs-foreground);
  text-decoration-color: oklch(1 0 0 / 35%);
  text-underline-offset: 4px;
}
a:hover,
.btn-link:hover {
  color: var(--hs-foreground);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.text-muted,
.text-secondary,
small,
.small,
.help-block,
.form-text {
  color: var(--hs-muted) !important;
}
.text-success { color: var(--hs-live) !important; }
.text-danger { color: var(--hs-danger) !important; }
.text-warning { color: var(--hs-amber) !important; }
.text-info { color: var(--hs-info) !important; }
.text-primary, .text-dark, .text-body { color: var(--hs-foreground) !important; }
hr { border-top-color: var(--hs-border); }
code, kbd, pre, samp { font-family: var(--hs-font-code); }
code { color: var(--hs-foreground); }
pre { color: var(--hs-foreground); background: var(--hs-card); border-radius: var(--hs-radius-md); padding: 12px 16px; }

/* Figures: prices, totals, invoice and ticket numbers, IPs. */
.hs-data,
.price,
.amt,
.total-due-today .amt,
#totalDueToday,
.invoice-summary-table td.text-right,
.table-list td.text-center .text-muted ~ span,
.dataTables_wrapper td:has(> span.hidden) {
  font-family: var(--hs-font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--hs-foreground);
  outline-offset: 2px;
}

/* 3. Header, breadcrumb, footer ------------------------------------------ */

/* The site's frame: 1280px of content, 20px gutters on phones, 32px from md. */
.container {
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
/* hostsrc.com's SiteContainer: max-w-[1280px] px-5 md:px-8, so 1216px of
   content, fluid below that (no Bootstrap stepped widths). */
.container { max-width: 1280px; }

header.header,
header.header .navbar {
  background-color: var(--hs-background);
}
.hs-topbar {
  background-color: var(--hs-card) !important;
  color: var(--hs-muted);
  font-size: 0.875rem;
}
header.header .topbar .btn,
header.header .topbar .input-group-text {
  color: var(--hs-muted);
  background: transparent;
  border: 0;
  font-size: 0.875rem;
}
/* The top bar's outer controls sit on the page gutters like the header below:
   their text, not their padding box, lines up with the wordmark and the cart. */
header.header .topbar #accountNotifications { padding-left: 0; }
header.header .topbar .active-client .btn-group > .btn:last-child { padding-right: 0; }

/* "Logged in as:" sits on the name's centre line (Bootstrap's d-md-inline made
   it inline and 4px high). */
header.header .topbar .active-client { align-items: center; }
@media (min-width: 768px) {
  header.header .topbar .active-client .input-group-prepend.d-md-inline { display: flex !important; align-items: center; }
}
/* Phones: a long client name stays on one line, and the top bar's controls are
   44px to tap. */
@media (max-width: 767.98px) {
  header.header .topbar .btn-active-client span {
    display: inline-block;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  header.header .topbar .btn,
  header.header .topbar #accountNotifications { min-height: 44px; min-width: 44px; }
}

/* "Logged in as:" is a label, not a field: drop the input-group box. */
header.header .topbar .input-group-text {
  background: transparent !important;
  border: 0 !important;
  padding-right: 0;
  color: var(--hs-muted) !important;
}
header.header .topbar .btn:hover,
header.header .topbar .btn-active-client:hover {
  color: var(--hs-foreground);
}
header.header .topbar .active-client .btn-active-client span {
  border-bottom: 0;
  color: var(--hs-foreground);
  font-weight: 600;
}

.hs-bar,
.navbar.hs-bar,
header.header .navbar.hs-bar {
  /* Nexus sets min-height: 70px, which recentres the row when the phone menu
     opens and makes it jump; the padding alone sets the height. */
  min-height: 0;
  padding: 13px 0;
}
/* Bootstrap zeroes a navbar container's padding; keep the page's gutters so the
   wordmark lines up with the content below. */
/* Nexus sets this padding with !important; match it to keep the page gutters. */
header.header .navbar .container.hs-bar-inner {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
@media (min-width: 768px) {
  header.header .navbar .container.hs-bar-inner { padding-left: 32px !important; padding-right: 32px !important; }
}
/* One control family for the whole bar: nav links, their dropdown toggles, the
   user menu, Control panel, the cart and the menu button share a height, an
   8px radius, 12px of side padding, a 1px border box, the hover fill and the
   button focus ring (hostsrc.com's header: h-9 controls, rounded-md). 36px from
   992px, where a pointer drives the full bar; 44px below it, where the bar
   turns into the touch menu. Gaps: 4px between nav items, 8px between the
   right-hand controls. */
.hs-nav .navbar-nav,
.hs-nav #nav { gap: 4px; }
/* Nexus gives #nav a 4px/8px margin, which lifts the links off the row's centre. */
header.header .navbar .hs-nav .navbar-nav,
header.header .navbar .hs-nav #nav { margin-top: 0; margin-bottom: 0; }
header.header .navbar a.btn.hs-btn-ghost,
header.header .navbar a.btn.hs-btn-outline { color: var(--hs-foreground); }
header.header .navbar .hs-nav a { color: var(--hs-muted); }
header.header .navbar .hs-nav a:hover,
header.header .navbar .hs-nav li.show > a,
header.header .navbar .hs-nav li.active > a { color: var(--hs-foreground); }
header.header .navbar .dropdown-menu a { color: var(--hs-foreground); }
.hs-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hs-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  order: 1;
}
.hs-brand img {
  display: block;
  width: 112px;
  height: auto;
}
.hs-bar-actions {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hs-menu-btn { order: 3; }
.hs-nav {
  order: 4;
  flex-basis: 100%;
}
/* The full bar from 992px, close to the site's 1024px; Nexus's autoCollapse
   moves what doesn't fit into "More". 24px from the wordmark to the first
   link, as on the site (lg:ml-6). */
@media (min-width: 992px) {
  .hs-brand img { width: 132px; }
  .hs-nav {
    order: 2;
    flex-basis: auto;
    flex-grow: 1;
    margin-left: 16px;
  }
  .hs-bar-actions { order: 3; margin-left: 0; }
  .hs-nav .hs-nav-secondary { margin-left: auto; }
}

/* The family's box. */
.hs-nav .navbar-nav > li { margin: 0; padding: 0; }
.hs-nav .navbar-nav > li > a,
.hs-nav .navbar-nav > li > a.dropdown-toggle,
header.header .hs-bar-actions .btn,
header.header .hs-bar .hs-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--hs-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.hs-nav .navbar-nav > li > a { color: var(--hs-muted); }
header.header .hs-bar-actions .hs-btn-outline { border-color: var(--hs-input) !important; }
header.header .hs-bar .hs-menu-btn { width: 44px; padding: 0; }
@media (min-width: 992px) {
  /* 36px links in a 28px row: Nexus's autoCollapse('#nav', 30) reads #nav's
     height and starts moving items into "More" from 30px, so the links overhang
     their row by 4px each side instead of growing it. A second row still
     crosses 30px, which is the signal it needs. */
  .hs-nav .navbar-nav > li > a,
  .hs-nav .navbar-nav > li > a.dropdown-toggle { display: flex; min-height: 36px; margin: -4px 0; }
  header.header .hs-bar-actions .btn { min-height: 36px; }
  /* The menus open 4px under the link, not under its shorter row. */
  .hs-nav .navbar-nav > li > .dropdown-menu { margin-top: 8px; }
  /* Let the list wrap when it runs out of room: the extra height is what
     Nexus's autoCollapse watches for, and it then moves items into "More". */
  .hs-nav #nav { flex-wrap: wrap; min-width: 0; }
  .hs-nav { min-width: 0; }
  /* While it measures, autoCollapse sets .w-100 on every .navbar-nav, so the
     user menu took half the row and #nav folded into "More" with room to
     spare. The user menu keeps its own width; #nav gets the rest. */
  .hs-nav .hs-nav-secondary.w-100 { width: auto !important; flex: none; }
}
/* Hover, open and focus look the same on every member. The page's own link
   is marked by full-ink text, not a fill, so hover still reads on it. */
.hs-nav .navbar-nav > li > a:hover,
.hs-nav .navbar-nav > li.show > a,
header.header .hs-bar-actions .btn:hover,
header.header .hs-bar .hs-menu-btn:hover,
header.header .hs-bar .hs-menu-btn[aria-expanded="true"] {
  color: var(--hs-foreground);
  background-color: var(--hs-fill-hover) !important;
  text-decoration: none;
}
header.header .hs-bar-actions .hs-btn-outline:hover { border-color: oklch(1 0 0 / 22%) !important; }
.hs-nav .navbar-nav > li.active > a { color: var(--hs-foreground); }
.hs-nav .navbar-nav > li > a:focus-visible,
header.header .hs-bar-actions .btn:focus-visible,
header.header .hs-bar .hs-menu-btn:focus-visible {
  outline: 0;
  border-color: var(--hs-ring) !important;
  box-shadow: 0 0 0 3px var(--hs-ring-soft) !important;
}
.hs-nav .navbar-nav > li > a i { font-size: 0.875em; }
.hs-nav .dropdown-toggle::after {
  border: 0;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  vertical-align: middle;
}
.hs-nav .navbar-nav .badge {
  background: var(--hs-control);
  color: var(--hs-foreground);
  font-family: var(--hs-font-mono);
  font-weight: 600;
}

/* The header's menus: rows 36px, 12px in, 14px type, like the bar's links
   (Nexus sets every header link to 16px). Child <li>s carry no .dropdown-item,
   see navbar.tpl; "More" moves whole items in and gives them that class. */
.hs-nav .dropdown-menu > li.hs-dropdown-li,
.hs-nav .dropdown-menu > li.dropdown-item { padding: 0; background: transparent !important; }
.hs-nav .dropdown-menu > li > a,
.hs-nav .dropdown-menu > li > a.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px !important; /* beats Nexus's px-2 py-0 utilities */
  border-radius: var(--hs-radius-sm);
  background: transparent;
  color: var(--hs-foreground);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
.hs-nav .dropdown-menu > li > a:hover,
.hs-nav .dropdown-menu > li > a:focus,
header.header .hs-nav .dropdown-menu > li > a:active,
header.header .hs-nav .dropdown-menu > li > a.active {
  background-color: var(--hs-fill-hover);
  color: var(--hs-foreground);
  text-decoration: none;
}
.hs-nav .dropdown-menu > li > a:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--hs-ring); }

@media (max-width: 991.98px) {
  .hs-nav { padding: 8px 0 16px; }
  /* Menu rows and their dropdown items are full 44px targets on touch. */
  .hs-nav .navbar-nav > li > a,
  .hs-nav .navbar-nav > li > a.dropdown-toggle { display: flex; justify-content: flex-start; width: 100%; }
  .hs-nav .dropdown-menu > li > a,
  .hs-nav .dropdown-menu > li > a.dropdown-item { min-height: 44px; }
  .hs-nav .hs-nav-secondary { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hs-border); }
}

.hs-arrow {
  display: inline-block;
  font-size: 0.875em;
  line-height: 1;
  transition: transform 160ms ease;
}
a:hover > .hs-arrow { transform: translate(1px, -1px); }
.hs-order:hover > .hs-arrow { transform: translateX(2px); }

/* The cart count, in mono, like every other figure. */
.hs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--hs-radius-sm);
  background: var(--hs-control);
  color: var(--hs-foreground);
  font-family: var(--hs-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hs-cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Phones: footer controls are at least 44px to tap. */
@media (max-width: 767.98px) {
  .hs-footer-base .btn { min-height: 44px; }
}

.master-breadcrumb,
.master-breadcrumb .breadcrumb,
.hs-breadcrumb,
.hs-breadcrumb .breadcrumb {
  background-color: transparent;
}
.hs-breadcrumb .breadcrumb {
  padding: 4px 0 0;
  font-size: 0.875rem;
  color: var(--hs-muted);
}
.hs-breadcrumb .breadcrumb-item,
.hs-breadcrumb .breadcrumb-item a,
.hs-breadcrumb .breadcrumb-item.active { color: var(--hs-muted); }
.hs-breadcrumb .breadcrumb-item a:hover { color: var(--hs-foreground); }
.hs-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--hs-border); content: "/"; }
/* Phones: one line, 44px tall. Earlier steps keep their full names; the last
   one (the page itself, repeated by the h1 below) ends in an ellipsis instead
   of wrapping under a hanging "/". The links' padding makes them 44px targets. */
@media (max-width: 767.98px) {
  .hs-breadcrumb .breadcrumb { flex-wrap: nowrap; padding-top: 0; }
  .hs-breadcrumb .breadcrumb-item {
    display: block; /* Bootstrap 4.6 makes it a flex box, which drops the ellipsis */
    flex: 0 0 auto;
    min-width: 0;
    line-height: 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hs-breadcrumb .breadcrumb-item:last-child { flex: 0 1 auto; }
  /* Four steps or more: "Portal Home" goes (the wordmark links there), so a
     ticket's trail ends in "View Ticket", not "Vi...". */
  .hs-breadcrumb .breadcrumb-item:first-child:nth-last-child(n+4) { display: none; }
  .hs-breadcrumb .breadcrumb-item:first-child:nth-last-child(n+4) + .breadcrumb-item { padding-left: 0; }
  .hs-breadcrumb .breadcrumb-item:first-child:nth-last-child(n+4) + .breadcrumb-item::before { display: none; }
  .hs-breadcrumb .breadcrumb-item a { padding: 14px 0; line-height: 1; }
}

/* The sidebar column comes after the content in the DOM (footer.tpl), so it
   stacks below the page on phones and tablets and focus reaches the page
   first; from 992px it moves back to the left. */
@media (max-width: 991.98px) {
  #main-body > .container > .row > .col-lg-4 { margin-top: 8px; }
}
@media (min-width: 992px) {
  #main-body > .container > .row > .col-lg-4 { order: -1; }
}

section#main-body,
main#main-body {
  display: block;
  margin: 0;
  background-color: var(--hs-background);
  padding: 24px 0 96px;
  min-height: 60vh;
}

/* Footer: Ash Panel, fading in from the page above (the site's footer). */
footer.footer.hs-footer {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 48px 0 32px;
  background-color: var(--hs-card);
  color: var(--hs-muted);
  font-size: 0.875rem;
}
.hs-footer-fade {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 8rem;
  background: linear-gradient(to bottom, var(--hs-background), var(--hs-card));
}
@media (min-width: 768px) { .hs-footer-fade { height: 12rem; } footer.footer.hs-footer { padding-top: 64px; } }
.hs-footer-mark {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  aspect-ratio: 1828 / 339;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  pointer-events: none;
  user-select: none;
}
.hs-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
.hs-footer-company { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .hs-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .hs-footer-grid { grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
  .hs-footer-company { grid-column: auto; }
}
.hs-footer address {
  margin: 0;
  color: var(--hs-muted);
  font-style: normal;
  line-height: 1.75;
}
.hs-footer .hs-data { font-size: 0.8125rem; }
.hs-footer-strong { color: var(--hs-foreground) !important; }
.hs-sal { display: inline-flex; margin-top: 24px; }
.hs-sal img { width: 250px; max-width: 100%; height: 50px; object-fit: contain; object-position: left; }
.hs-footer-title {
  margin: 0 0 12px;
  color: var(--hs-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.hs-footer ul { margin: 0; padding: 0; list-style: none; }
.hs-footer li a,
.hs-footer address a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  color: var(--hs-muted);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .hs-footer li a,
  .hs-footer address a { min-height: 32px; }
}
.hs-footer li a:hover,
.hs-footer address a:hover { color: var(--hs-foreground); text-decoration: underline; }
.hs-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
}
.hs-footer .copyright { margin: 0; color: var(--hs-muted); text-align: left; }

/* 4. Bootstrap pieces ---------------------------------------------------- */

/* Buttons. Primary is the signal: light fill, dark ink. Success maps to it,
   since WHMCS uses green for its own primary actions (Order now, Complete
   order, Pay now). Everything else is the outline or ghost of the site. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: var(--hs-radius-md);
  font-family: var(--hs-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: none !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}
.btn-block { display: flex; width: 100%; }
/* Nexus hides buttons with .w-hidden, which the inline-flex above would undo.
   No !important, so jQuery's .show() still wins. */
.btn.w-hidden { display: none; }
.btn-lg, .btn-group-lg > .btn { min-height: 44px; padding: 10px 20px; font-size: 1rem; border-radius: var(--hs-radius-md); }
.btn-sm, .btn-group-sm > .btn, .hs-btn-sm { min-height: 32px; padding: 4px 12px; font-size: 0.8125rem; }
.btn-xs { min-height: 28px; padding: 2px 8px; font-size: 0.75rem; }
.btn i.fas, .btn i.far, .btn i.fad, .btn i.fa { font-size: 0.875em; }
.btn:focus-visible,
.btn.focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--hs-ring-soft) !important;
  border-color: var(--hs-ring) !important;
}
.btn.disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* The size steps: small 32px, default 36px, large 44px with a pointer. On
   phones every button is at least a 44px target, whatever its step. */
@media (max-width: 767.98px) {
  .btn, .btn-sm, .btn-xs, .btn-lg, .hs-btn-sm { min-height: 44px; }
}

.btn-primary,
.btn-success,
body .sidebar .btn-success,
body #order-standard_cart .products .product footer .btn-order-now,
body #order-standard_cart .text-right .btn-checkout,
body #frmDomainHomepage #btnTransfer,
body .primary-content .client-home-cards .card .btn-success,
body .primary-content .btn-success.btn-lg[name=enable] {
  background: var(--hs-primary) !important;
  border: 1px solid var(--hs-primary) !important;
  color: var(--hs-primary-ink) !important;
}
.btn-primary:hover,
.btn-success:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled):active,
body #order-standard_cart .text-right .btn-checkout:hover {
  background: oklch(0.922 0 0 / 90%) !important;
  border-color: oklch(0.922 0 0 / 90%) !important;
  color: var(--hs-primary-ink) !important;
}

.btn-default,
.btn-secondary,
.btn-light,
.btn-dark,
.btn-info,
.btn-warning,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark,
.btn-outline-info,
.btn-outline-success,
body #main-body .btn-outline-primary,
.hs-btn-outline,
.btn.btn-success.open-modal.twofa-config-link.enable,
body .primary-content .client-home-cards .card .card-header .btn {
  background: var(--hs-fill) !important;
  border: 1px solid var(--hs-input) !important;
  color: var(--hs-foreground) !important;
  border-radius: var(--hs-radius-md);
}
.btn-default:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover,
.btn-outline-info:hover,
.btn-outline-success:hover,
body #main-body .btn-outline-primary:hover,
.hs-btn-outline:hover,
.btn-default:not(:disabled):not(.disabled).active,
.btn-default:not(:disabled):not(.disabled):active,
.btn-default.active,
.hs-btn-outline.active,
.show > .btn-default.dropdown-toggle,
.show > .hs-btn-outline.dropdown-toggle {
  background: var(--hs-fill-hover) !important;
  border-color: oklch(1 0 0 / 22%) !important;
  color: var(--hs-foreground) !important;
}
/* Nexus gives a disabled default button a white fill (!important) under the
   pointer or focus, so a button just pressed (the email banner's "Email
   Sent") turned white with unreadable text. It keeps its resting look. */
.btn-default.disabled:hover,
.btn-default.disabled:focus,
.btn-default.disabled.focus,
.btn-default[disabled]:hover,
.btn-default[disabled]:focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default:hover,
fieldset[disabled] .btn-default:focus {
  background: var(--hs-fill) !important;
  border-color: var(--hs-input) !important;
}
.btn-danger,
.btn-outline-danger {
  background: var(--hs-danger-surface) !important;
  border: 1px solid oklch(0.704 0.191 22.216 / 45%) !important;
  color: var(--hs-danger) !important;
}
.btn-danger:hover,
.btn-outline-danger:hover { background: oklch(0.704 0.191 22.216 / 20%) !important; }
.hs-btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--hs-foreground);
}
.hs-btn-ghost:hover { background: var(--hs-fill-hover); color: var(--hs-foreground); text-decoration: none; }
.btn-link { font-weight: 600; text-decoration: underline; text-decoration-color: oklch(1 0 0 / 35%); }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-top-left-radius: var(--hs-radius-md); border-bottom-left-radius: var(--hs-radius-md); }
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle:not(:first-child) { border-top-right-radius: var(--hs-radius-md); border-bottom-right-radius: var(--hs-radius-md); }
.btn-group > .btn:only-child { border-radius: var(--hs-radius-md); }
.dropdown-toggle::after { border-top-color: currentColor; }

/* Surfaces: Ash Panel tiles, 14px corners, no border, no shadow. */
.card,
.panel,
.mc-promo-manage,
.mc-promo-login,
.well,
.jumbotron,
.continue-container,
.invite-box,
.promo-container,
.promo-banner,
div.credit-card,
.upgrade .product-to-be-upgraded,
.upgrade .products .product,
div.product-details-tab-container,
.ticketfeedbackstaffcont {
  background-color: var(--hs-card) !important;
  border: 0 !important;
  border-radius: var(--hs-radius-xl) !important;
  color: var(--hs-foreground);
  box-shadow: none !important;
}
.card-header,
.card-footer,
.panel-heading,
.panel-footer,
.sidebar .card-header,
.sidebar .card-footer,
.client-home-cards .card-header,
body .primary-content .client-home-cards .card .card-footer,
body #order-standard_cart .cart-sidebar .card-header,
body #order-standard_cart .cart-sidebar .card-footer,
body #order-standard_cart .panel .panel-heading,
body #order-standard_cart .panel .panel-footer {
  background: transparent !important;
  border-color: var(--hs-border) !important;
  color: var(--hs-foreground);
}
.card-header { padding: 16px 20px; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; }
.card-title, .card-header h3, .card-header .card-title, .panel-title { color: var(--hs-foreground); font-size: 1rem; font-weight: 600; letter-spacing: normal; }
.card-accent-silver,
.card-accent-asbestos,
[class*="card-accent-"] { border-top: 0 !important; }
.bg-white, .bg-light, .primary-bg-color, .bg-color-silver, .bg-color-asbestos { background-color: var(--hs-card) !important; }
.bg-dark { background-color: var(--hs-background) !important; }

.list-group-item {
  background-color: transparent;
  border-color: var(--hs-border);
  color: var(--hs-foreground);
}
a.list-group-item:hover,
.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: var(--hs-fill-hover);
  color: var(--hs-foreground);
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  background-color: var(--hs-control) !important;
  border-color: var(--hs-border) !important;
  color: var(--hs-foreground) !important;
}
.list-group-item.disabled, .list-group-item:disabled { background: transparent; color: var(--hs-muted); }

/* Record rows. A row that stands for one record (an invoice, service, ticket,
   quote, email, domain, announcement) opens it on a click anywhere, the same
   on every page. Its name or number is the row's one link (.hs-rec-link),
   stretched over the row (.hs-rec) by ::after: a real link, so Cmd/Ctrl-click
   and middle-click open a new tab, and keyboards and screen readers get one
   link per row. Buttons and links inside the row sit above it (.hs-rec-over)
   and keep their own action. Rows that are a link themselves (WHMCS's menu
   rows, knowledgebase and download rows) need none of this and share the same
   hover. Rows that open nothing get no hover. */
.hs-rec { position: relative; }
.hs-rec-link,
.hs-rec-link:hover,
.hs-rec-link:focus {
  color: inherit;
  text-decoration: none;
}
.hs-rec-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hs-rec-link:focus-visible { outline: 0; }
.hs-rec-link:focus-visible::after {
  outline: 2px solid var(--hs-foreground);
  outline-offset: -2px;
}
.hs-rec-over { position: relative; z-index: 1; }
/* An open menu in one row stays above the next row's buttons. */
.hs-rec-over:has(.show) { z-index: 2; }
.hs-rec:hover { background-color: var(--hs-fill-hover); }
.badge {
  border-radius: var(--hs-radius-sm);
  font-weight: 600;
}
.badge-light, .badge-secondary, .badge-default, .badge-dark, .badge-primary, .badge-info {
  background: var(--hs-control) !important;
  color: var(--hs-foreground) !important;
}
.badge-success { background: var(--hs-live-surface) !important; color: var(--hs-live) !important; }
.badge-danger { background: var(--hs-danger-surface) !important; color: var(--hs-danger) !important; }
.badge-warning { background: var(--hs-amber-surface) !important; color: var(--hs-amber) !important; }

/* Tables: header row and fine row dividers carry the structure. */
.table,
table.table-list,
.dataTables_wrapper table.table-list {
  color: var(--hs-foreground);
  background: transparent;
  border: 0 !important;
  font-size: 0.9375rem;
}
.table th,
.table td,
.table thead th,
table.table-list thead th,
.table-list > tbody > tr > td {
  border-color: var(--hs-border) !important;
  background-color: transparent !important;
  color: var(--hs-foreground);
  vertical-align: middle;
}
.table thead th,
table.table-list thead th {
  color: var(--hs-muted) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--hs-border) !important;
  border-top: 0 !important;
}
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc { background-color: transparent !important; color: var(--hs-foreground) !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: oklch(1 0 0 / 2.5%); }
/* Only rows that open a record (.hs-rec) light up; static rows stay static. */
.table-hover tbody tr:hover,
.table-list > tbody > tr.hs-rec:hover > td { background-color: var(--hs-fill-hover) !important; color: var(--hs-foreground); }
.table-bordered, .table-bordered th, .table-bordered td { border-color: var(--hs-border) !important; }
.table .thead-light th { background: transparent; color: var(--hs-muted); border-color: var(--hs-border); }
.table-list > tbody > tr > td a.border-left { border-left-color: var(--hs-border) !important; }
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--hs-muted); font-size: 0.875rem; }
body .dataTables_wrapper .dataTables_filter label .form-control { background: var(--hs-fill) !important; }
/* Phones: a list table wider than the page scrolls inside its own box instead
   of being clipped (Balance and Status would be cut off on invoices). */
@media (max-width: 767.98px) {
  .dataTables_wrapper table.table-list,
  .table-container > table.table-list {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}
.invoice-summary-table td.total-row,
tr.masspay-total td { background-color: var(--hs-control) !important; }

/* Forms: translucent fill, Input Line border, 8px corners, slate focus ring. */
.form-control,
.custom-select,
.custom-file-label,
select.form-control,
body #order-standard_cart .field,
#order-standard_cart .form-control,
#registration .field,
#registration .form-control,
.input-group-text,
.field {
  background-color: var(--hs-fill) !important;
  border: 1px solid var(--hs-input) !important;
  border-radius: var(--hs-radius-md);
  color: var(--hs-foreground) !important;
  font-family: var(--hs-font-sans);
  font-size: 0.9375rem;
  box-shadow: none !important;
}
.form-control,
.custom-select,
select.form-control { min-height: 40px; }
/* Phones: fields are 44px targets with 16px text, below which iOS Safari
   zooms the page on focus (only the sign-in fields were 16px). */
@media (max-width: 767.98px) {
  .form-control,
  .custom-select,
  select.form-control,
  .field,
  body #order-standard_cart .field,
  #order-standard_cart .form-control,
  #registration .form-control { min-height: 44px; font-size: 1rem; }
  textarea.form-control { min-height: 88px; }
}
select.form-control,
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23b5b5b5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
}
select.form-control[multiple],
select.form-control[size] { background-image: none !important; padding-right: 12px; }
select option { background-color: var(--hs-card); color: var(--hs-foreground); }
.form-control::placeholder { color: oklch(0.6 0 0); opacity: 1; }
.form-control:focus,
.custom-select:focus,
body .login-form .form-control:focus,
#registration .form-control:focus,
#registration .field:focus,
body #order-standard_cart .field:focus,
body #order-standard_cart .form-control:focus {
  border-color: var(--hs-ring) !important;
  box-shadow: 0 0 0 3px var(--hs-ring-soft) !important;
  background-color: var(--hs-fill-hover) !important;
  outline: 0;
}
.form-control:disabled,
.form-control[readonly],
#registration .form-control[readonly],
#registration .field[disabled] {
  background-color: oklch(1 0 0 / 2.5%) !important;
  color: var(--hs-muted) !important;
  opacity: 1;
}
.is-invalid,
.has-error .form-control,
form[data-role=json-form] .has-error input.form-control {
  border-color: var(--hs-danger) !important;
  background-color: var(--hs-danger-surface) !important;
}
.invalid-feedback, .has-error .help-block, .field-error-msg { color: var(--hs-danger) !important; }
label,
.control-label,
.col-form-label {
  color: var(--hs-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
/* Nexus greys out labels inside #registration (#666, 3.4:1 on the dark ground). */
#registration label,
#registration .control-label { color: var(--hs-foreground); }
.form-check-label, .custom-control-label { font-weight: 400; }
.input-group-text { color: var(--hs-muted) !important; }
.input-group > .form-control:not(:first-child),
.input-group > .input-group-prepend + .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn-reveal-pw,
.input-group .btn-reveal-pw:hover,
.input-group .btn-reveal-pw:active {
  background-color: var(--hs-fill) !important;
  border-color: var(--hs-input) !important;
  color: var(--hs-muted) !important;
}
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--hs-primary);
  border-color: var(--hs-primary);
}
.custom-control-label::before { background-color: var(--hs-fill); border-color: var(--hs-input); }
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23333' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}
input[type=checkbox],
input[type=radio] { accent-color: oklch(0.922 0 0); }

/* iCheck (Standard Cart and Nexus): the blue sprite becomes a drawn box. */
.icheckbox_square-blue,
.iradio_square-blue,
body #frmConfigureProduct .icheckbox_square-blue {
  width: 20px !important;
  height: 20px !important;
  background: var(--hs-fill) !important;
  border: 1px solid oklch(1 0 0 / 28%) !important;
  border-radius: var(--hs-radius-sm) !important;
  vertical-align: middle;
}
.iradio_square-blue { border-radius: 50% !important; }
.icheckbox_square-blue.hover,
.iradio_square-blue.hover,
body .iradio_square-blue.hover,
body .icheckbox_square-blue.hover { border-color: oklch(1 0 0 / 45%) !important; }
.icheckbox_square-blue.checked,
body .icheckbox_square-blue.checked,
body #frmConfigureProduct .icheckbox_square-blue.checked {
  background: var(--hs-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23262626' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat !important;
  border-color: var(--hs-primary) !important;
}
.iradio_square-blue.checked,
body .iradio_square-blue.checked {
  background: var(--hs-primary-ink) !important;
  border: 5px solid var(--hs-primary) !important;
}
.icheckbox_square-blue.disabled,
.iradio_square-blue.disabled { opacity: 0.4; }

/* Alerts: tinted, never a bright wash. */
.alert {
  border: 0 !important;
  border-radius: var(--hs-radius-xl);
  padding: 16px 20px;
  font-size: 0.9375rem;
}
.alert-info,
.alert-secondary,
.alert-light,
.alert-dark,
.alert-primary,
.alert:has(small),
.alert:has(form) {
  background-color: var(--hs-card) !important;
  color: var(--hs-foreground) !important;
}
.alert-success { background-color: var(--hs-live-surface) !important; color: var(--hs-foreground) !important; }
.alert-success i, .alert-success .fas { color: var(--hs-live); }
/* Warnings (an invalid promo code, notices) are information, not live state:
   amber stays reserved for live state (DESIGN.md), so they read as a tinted
   neutral with a full-ink icon. */
.alert-warning { background-color: var(--hs-control) !important; color: var(--hs-foreground) !important; }
.alert-warning i, .alert-warning .fas { color: var(--hs-foreground); }
.alert-danger { background-color: var(--hs-danger-surface) !important; color: var(--hs-foreground) !important; }
.alert-danger i, .alert-danger .fas { color: var(--hs-danger); }
.alert a, .alert .alert-link { color: var(--hs-foreground); font-weight: 600; text-decoration: underline; }
/* Nexus's message panels (includes/panel.tpl) set white text on Bootstrap's
   green, red, blue or yellow, which fails AA. Same tints as the alerts. */
.card > .card-title[class*="bg-"] {
  margin: 0;
  padding: 12px 20px !important;
  border-radius: var(--hs-radius-xl) var(--hs-radius-xl) 0 0;
  color: var(--hs-foreground) !important;
  font-size: 0.9375rem;
}
.card > .card-title.bg-success { background-color: var(--hs-live-surface) !important; }
.card > .card-title.bg-danger { background-color: var(--hs-danger-surface) !important; }
.card > .card-title.bg-warning { background-color: var(--hs-amber-surface) !important; }
.card > .card-title.bg-info,
.card > .card-title.bg-primary,
.card > .card-title.bg-secondary,
.card > .card-title.bg-dark { background-color: var(--hs-control) !important; }
.card > .card-text { padding-top: 12px; }
.verification-banner {
  background-color: var(--hs-card) !important;
  border-bottom: 0 !important;
  color: var(--hs-foreground) !important;
  font-weight: 400;
}
/* The email verification banner (includes/verifyemail.tpl): a tile in the page
   container, in the warning alert's tinted neutral with a full-ink icon (amber
   stays for live state). One row on wide screens: icon, sentence, the resend
   button, the dismiss button at the end. On phones the button takes its own
   full-width line and the dismiss button keeps the top corner. The selectors
   carry .hs-verify to beat Nexus's .verification-banner .btn and .fas rules. */
.verification-banner.hs-verify {
  padding: 8px 0 0;
  background-color: transparent !important;
}
.hs-verify .hs-verify-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "icon text action close";
  align-items: center;
  column-gap: 12px;
  padding: 10px 10px 10px 20px;
  background-color: var(--hs-control);
  border-radius: var(--hs-radius-xl);
  color: var(--hs-foreground);
}
.verification-banner.hs-verify .hs-verify-icon {
  grid-area: icon;
  float: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--hs-foreground);
}
.verification-banner.hs-verify .hs-verify-text {
  grid-area: text;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.verification-banner.hs-verify .btn.hs-verify-resend {
  grid-area: action;
  margin: 0;
  padding: 4px 12px;
  white-space: nowrap;
}
/* Once pressed, Nexus disables the button and writes the result in it ("Email
   Sent" or "Error"): a readable muted label, not a faded control. */
.verification-banner.hs-verify .btn.hs-verify-resend:disabled {
  opacity: 1;
  color: var(--hs-muted) !important;
}
.verification-banner.hs-verify .btn.close.hs-verify-close {
  grid-area: close;
  float: none;
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--hs-muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
}
.verification-banner.hs-verify .btn.close.hs-verify-close:hover {
  background: var(--hs-fill-hover);
  color: var(--hs-foreground);
}
@media (max-width: 575.98px) {
  .hs-verify .hs-verify-tile {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon text close"
      "action action action";
    align-items: start;
    row-gap: 12px;
    padding: 6px 6px 16px 16px;
  }
  /* The 44px dismiss target sets the first row; the icon and sentence sit on
     its centre line. */
  .verification-banner.hs-verify .hs-verify-icon { margin-top: 14px; }
  .verification-banner.hs-verify .hs-verify-text { padding-top: 10px; }
  .verification-banner.hs-verify .btn.close.hs-verify-close { width: 44px; min-height: 44px; }
  .verification-banner.hs-verify .btn.hs-verify-resend { width: calc(100% - 10px); }
}

/* Floating layers are the one place a shadow is allowed (they float). */
.dropdown-menu,
.popover,
.popover-user-notifications {
  background-color: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: 0 16px 40px -20px rgb(0 0 0 / 80%);
  color: var(--hs-foreground);
  padding: 6px;
}
.dropdown-item,
.dropdown-menu > li > a,
.dropdown-menu .dropdown-item {
  color: var(--hs-foreground);
  border-radius: var(--hs-radius-sm);
  font-size: 0.875rem;
}
li.dropdown-item { padding: 0; background: transparent !important; }
li.dropdown-item > a.dropdown-item {
  display: block;
  padding: 8px 10px !important;
  line-height: 1.3;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--hs-fill-hover);
  color: var(--hs-foreground);
  text-decoration: none;
}
.dropdown-divider { border-top-color: var(--hs-border); margin: 6px 0; }
/* Phone country picker (intl-tel-input, on register, checkout and account
   pages): its list is white by default, so the theme's light text vanished.
   Styled as one of the theme's floating menus. */
.intl-tel-input .country-list {
  background-color: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: 0 16px 40px -20px rgb(0 0 0 / 80%);
  color: var(--hs-foreground);
  padding: 6px;
  margin-top: 4px;
  max-height: 280px;
  scrollbar-color: var(--hs-control) transparent;
}
/* Phones: the list is at least as wide as a phone field, so names don't wrap. */
@media (max-width: 575.98px) {
  .intl-tel-input .country-list {
    width: calc(100vw - 40px);
    max-width: 360px;
    white-space: nowrap;
  }
}
.intl-tel-input .country-list .country {
  padding: 8px 10px;
  border-radius: var(--hs-radius-sm);
  color: var(--hs-foreground);
  font-size: 0.875rem;
}
.intl-tel-input .country-list .country .country-name { color: var(--hs-foreground); }
.intl-tel-input .country-list .country .dial-code {
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 0.8125rem;
}
.intl-tel-input .country-list .country.highlight,
.intl-tel-input .country-list .country:hover { background-color: var(--hs-fill-hover); }
.intl-tel-input .country-list .divider {
  margin: 6px 0;
  padding: 0;
  border-bottom: 1px solid var(--hs-border);
}
/* The country button fills the field's full 44px (the plugin pads its
   container by 1px, which left it at 42px). */
.intl-tel-input .flag-container { padding: 0; }
.intl-tel-input .selected-flag .iti-arrow { border-top-color: var(--hs-muted); }
.intl-tel-input .selected-flag .iti-arrow.up { border-top-color: transparent; border-bottom-color: var(--hs-muted); }
.intl-tel-input.separate-dial-code .selected-dial-code { color: var(--hs-foreground); }
.intl-tel-input.allow-dropdown .flag-container:hover .selected-flag,
.intl-tel-input.separate-dial-code .selected-flag { background-color: var(--hs-fill); }

.popover .arrow::before,
.popover .arrow::after { display: none; }
.popover-header { background: transparent; border-color: var(--hs-border); color: var(--hs-foreground); }
.popover-body { color: var(--hs-foreground); }
.popover-user-notifications ul li { border-bottom-color: var(--hs-border); }
.popover-user-notifications ul li a { color: var(--hs-foreground); }
.popover-user-notifications ul li a:hover { background-color: var(--hs-fill-hover); }
.tooltip-inner {
  background: var(--hs-control);
  color: var(--hs-foreground);
  border-radius: var(--hs-radius-sm);
  font-size: 0.8125rem;
}
.tooltip .arrow::before { display: none; }

.modal-backdrop.show { opacity: 0.7; background: #000; }
.modal-content {
  background-color: var(--hs-card);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-2xl);
  color: var(--hs-foreground);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 85%);
}
.modal .modal-header,
.modal-content .modal-header {
  background-color: transparent !important;
  color: var(--hs-foreground) !important;
  border-bottom-color: var(--hs-border);
  border-radius: var(--hs-radius-2xl) var(--hs-radius-2xl) 0 0;
}
.modal-footer { border-top-color: var(--hs-border); }
.close,
.close:hover { color: var(--hs-foreground); text-shadow: none; opacity: 0.7; }
.close:hover { opacity: 1; }
.modal-localisation .modal-content { background: var(--hs-card) !important; }
.modal-localisation .modal-body { color: var(--hs-foreground); }
.modal-localisation .item-selector .item {
  padding: 10px 8px;
  margin: 4px 0;
  border: 1px solid var(--hs-input);
  border-radius: var(--hs-radius-md);
  background: var(--hs-fill);
  color: var(--hs-foreground);
  font-weight: 600;
  text-decoration: none;
}
.modal-localisation .item-selector .item:hover { background-color: var(--hs-fill-hover); color: var(--hs-foreground); }
.modal-localisation .item-selector .item.active {
  background-color: var(--hs-control);
  border-color: oklch(1 0 0 / 30%);
  color: var(--hs-foreground);
}

.nav-tabs { border-bottom-color: var(--hs-border); }
.nav-tabs .nav-link {
  color: var(--hs-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-tabs .nav-link:hover { color: var(--hs-foreground); border-bottom-color: var(--hs-border); }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background: transparent;
  color: var(--hs-foreground);
  border-bottom-color: var(--hs-foreground);
}
.nav-pills .nav-link { color: var(--hs-muted); border-radius: var(--hs-radius-md); font-weight: 600; }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { background: var(--hs-control); color: var(--hs-foreground); }
.tab-content { color: var(--hs-foreground); }
.responsive-tabs-sm,
.responsive-tabs-sm .nav-item a.active,
.responsive-tabs-sm-connector .channel { background: var(--hs-card) !important; border-color: var(--hs-border) !important; }
.responsive-tabs-sm .nav-item,
.responsive-tabs-sm-connector .bottom-border { border-color: var(--hs-border) !important; }

.pagination .page-link {
  background: transparent;
  border-color: var(--hs-border);
  color: var(--hs-foreground);
  font-family: var(--hs-font-mono);
  font-size: 0.8125rem;
}
.pagination .page-link:hover { background: var(--hs-fill-hover); color: var(--hs-foreground); }
.pagination .page-item.active .page-link { background: var(--hs-control); border-color: var(--hs-border); color: var(--hs-foreground); }
.pagination .page-item.disabled .page-link { background: transparent; border-color: var(--hs-border); color: var(--hs-muted); }

.progress { background: var(--hs-control); border-radius: 999px; height: 8px; }
.progress-bar { background: var(--hs-foreground); }

/* 5. Nexus page pieces --------------------------------------------------- */

/* Sidebar: a quiet list on Ash Panel. */
.sidebar .card,
body #order-standard_cart .cart-sidebar .card { margin-bottom: 8px; }
.sidebar .card-header,
body #order-standard_cart .cart-sidebar .card-header { border-bottom: 0 !important; padding: 16px 16px 8px; }
.sidebar .card-sidebar .panel-title,
body #order-standard_cart .cart-sidebar .card-sidebar .panel-title { font-size: 0.875rem !important; color: var(--hs-foreground); }
.sidebar .list-group-item,
body #order-standard_cart .cart-sidebar .list-group-item {
  margin: 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--hs-radius-md);
  color: var(--hs-muted);
  font-size: 0.875rem;
}
.sidebar .list-group { padding-bottom: 8px; }
.sidebar .list-group-item:hover,
body #order-standard_cart .cart-sidebar .list-group-item:hover { color: var(--hs-foreground); background: var(--hs-fill-hover); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus,
body #order-standard_cart .cart-sidebar .list-group-item.active {
  background-color: var(--hs-control) !important;
  color: var(--hs-foreground) !important;
}
.sidebar .list-group-item .badge,
body .sidebar .list-group-item .badge,
body #order-standard_cart .cart-sidebar .list-group-item .badge {
  width: auto;
  min-width: 24px;
  padding: 3px 6px;
  background: var(--hs-control);
  color: var(--hs-foreground);
  font-family: var(--hs-font-mono);
  font-size: 0.75rem;
}
.sidebar .list-group-item i,
.sidebar .card-header i { color: var(--hs-muted); }
.sidebar .card-footer { border-top: 0 !important; padding: 0 16px 16px; }
/* Sidebar buttons (Apply Filter, Update, New Contact...) are Nexus's btn-sm:
   32px with a pointer, the family's 44px on touch layouts. */
@media (max-width: 991.98px) {
  .sidebar .btn,
  .sidebar .btn-sm { min-height: 44px; font-size: 0.875rem; }
}
.sidebar .card-minimise { color: var(--hs-muted); }

/* Client home: figure tiles and Ash Panel cards. */
.tiles {
  background: transparent;
  margin-bottom: 8px;
}
.tiles .row { margin: 0 -4px; }
.tiles .row > [class*="col"] { padding: 0 4px; margin-bottom: 8px; }
.tiles .tile {
  height: 100%;
  padding: 20px;
  background-color: var(--hs-card) !important;
  border: 0 !important;
  border-radius: var(--hs-radius-xl);
  color: var(--hs-foreground);
}
.tiles .tile:hover { background-color: var(--hs-control) !important; }
.tiles .tile .stat {
  margin-top: 8px;
  font-family: var(--hs-font-mono);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--hs-foreground);
}
.tiles .tile .title { color: var(--hs-muted); font-size: 0.875rem; font-weight: 400; text-transform: none; letter-spacing: normal; }
.tiles .tile i { color: var(--hs-muted); opacity: 0.6; }
.tiles .tile .highlight { display: none; }
body .primary-content .client-home-cards .card,
body .primary-content .client-home-cards .mc-promo-manage { border-top: 0 !important; margin-bottom: 8px; }
.client-home-cards .card-header { font-weight: 600; }
.client-home-cards .list-group { border-top: 1px solid var(--hs-border) !important; border-bottom: 1px solid var(--hs-border) !important; }
.client-home-cards .list-group .list-group-item { border-bottom: 1px solid var(--hs-border); padding: 8px 20px; }

/* Login, password reset, registration: one centred tile. */
.login-form,
.hs-page-login .primary-content > .card,
.hs-page-password-reset-container .primary-content > .card {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.login-form .card-body,
.hs-page-login .card-body { padding: 32px; }
.hs-page-login h1,
.hs-page-login .h3 { font-size: 1.5rem !important; }
.login-form .card-footer,
.hs-page-login .card-footer { border-top: 0 !important; padding: 0 32px 32px; color: var(--hs-muted); }
.social-signin-btns .btn,
.providerLinkingFeedback + .btn { width: 100%; }
#registration .sub-heading span,
body #order-standard_cart .sub-heading span {
  background: var(--hs-background) !important;
  color: var(--hs-foreground) !important;
  font-size: 1rem;
  font-weight: 600;
}
.sub-heading { border-top-color: var(--hs-border) !important; }
.hs-page-clientregister .card,
.hs-page-clientregister #registration { background: transparent !important; }

/* Announcements, knowledgebase, tickets, invoices. */
.announcements .announcement article {
  background-color: var(--hs-card) !important;
  border-left: 0 !important;
  border-radius: var(--hs-radius-xl);
  padding: 20px;
}
.kb-category a:hover,
.kb-article-item:hover { background-color: var(--hs-fill-hover) !important; }
.view-ticket .posted-by { background-color: var(--hs-control) !important; color: var(--hs-muted) !important; }
.view-ticket .card-body { border-bottom-color: var(--hs-border) !important; }
.view-ticket .attachments { border-top-color: var(--hs-border) !important; }
.view-ticket .attachment-list li span { border-color: var(--hs-border) !important; }
.view-ticket .attachment-list li figure { background-color: var(--hs-control) !important; }
.md-editor,
div.md-editor.active,
.md-editor > textarea.markdown-editor,
.md-editor > .md-preview,
.md-editor > .btn-toolbar {
  background-color: var(--hs-fill) !important;
  border-color: var(--hs-input) !important;
  color: var(--hs-foreground) !important;
}
.md-preview h1, .md-preview h2, .md-preview h3, .md-preview h4,
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4 { color: var(--hs-foreground); }
.md-preview blockquote, .markdown-content blockquote { border-left-color: var(--hs-border); }
.md-preview table, .markdown-content table,
.md-preview table > thead > tr > th, .markdown-content table > thead > tr > th,
.md-preview table > tbody > tr > td, .markdown-content table > tbody > tr > td {
  background-color: transparent !important;
  border-color: var(--hs-border) !important;
}
.select-account, .select-account a { border-color: var(--hs-border) !important; }
.select-account a:hover { background-color: var(--hs-fill-hover) !important; }
div.product-details div.product-icon { background-color: var(--hs-control) !important; color: var(--hs-foreground); }
.twofa-setup .backup-code { background-color: var(--hs-control) !important; color: var(--hs-foreground) !important; font-family: var(--hs-font-code); }
.twofa-setup .activation-msg { border-color: var(--hs-border) !important; }
.home-domain-search .input-group-wrapper { background-color: var(--hs-card) !important; border-color: var(--hs-border) !important; }
.action-icon-btns a { color: var(--hs-foreground) !important; background: var(--hs-card) !important; border-radius: var(--hs-radius-xl); }
.action-icon-btns a:hover { background: var(--hs-control) !important; }

/* Status chips, one colour system for every list, panel and page. Mapped
   by WHMCS's status class or raw status (lower case, spaces as hyphens;
   WHMCS writes some without, so both spellings), never by translated text:
   - success: in good standing;
   - waiting: someone has to act (the customer or us);
   - danger: about to end, at risk or blocked;
   - neutral: finished, and any status not listed (custom ticket statuses).
   One chip: 22px tall (12px type on a 16px line, 3px above and below),
   6px corners, semibold, on one line. */
.label, .status {
  display: inline-block;
  border-radius: var(--hs-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 16px;
  padding: 3px 8px;
  white-space: nowrap;
  vertical-align: middle;
}
.status {
  background-color: var(--hs-state-neutral-surface) !important;
  color: var(--hs-state-neutral) !important;
}
.status-active, .status-completed, .status-paid, .status-answered, .status-accepted, .status-issued {
  background-color: var(--hs-state-success-surface) !important;
  color: var(--hs-state-success) !important;
}
.status-pending, .status-pending-registration, .status-pending-transfer,
.status-unpaid, .status-payment-pending, .status-delivered,
.status-open, .status-customer-reply, .status-onhold, .status-on-hold, .status-inprogress, .status-in-progress {
  background-color: var(--hs-state-waiting-surface) !important;
  color: var(--hs-state-waiting) !important;
}
.status-overdue, .status-collections, .status-payment-failed,
.status-suspended, .status-fraud, .status-cancellation-requested,
.status-grace, .status-redemption {
  background-color: var(--hs-state-danger-surface) !important;
  color: var(--hs-state-danger) !important;
}
.status-cancelled, .status-terminated, .status-closed, .status-refunded, .status-expired,
.status-draft, .status-dead, .status-lost, .status-transferred-away {
  background-color: var(--hs-state-neutral-surface) !important;
  color: var(--hs-state-neutral) !important;
}

#fullpage-overlay { background: oklch(0.1505 0.0042 285.88 / 85%); color: var(--hs-foreground); }
/* Nexus's #fullpage-overlay { display: table } outranks .w-hidden, so the overlay
   covered every page until WHMCS's script hid it (always, without JavaScript). */
#fullpage-overlay.w-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
