/* ==============================================================
   Denobulus portal layer (2026-10-08)
   ==============================================================
   Final stylesheet of the tabler-client theme (linked last in structure.pdt, after dark-overrides.css and
   login-overrides.css). It carries the denobulus.com design language into the client portal:

   - Tokens: the marketing site's canonical values (WordPress Element 159 "Theme mode"), as --dnp-* per mode.
     html.theme-light body:not(.dnp-off) / html.theme-dark body:not(.dnp-off) are set before first paint by the theme script in structure.pdt.
   - Chrome: navy sidebar + header in both modes (the marketing site's sticky header and footer are navy in both).
   - Components: 8px radius, quiet 1px borders, CTA blue #2679c7 with white text, sky accent for selected states.
   - Motion: CTA sheen on two primary actions, hover/focus transitions, one entrance fade on the landing header,
     eased theme switching. Nothing animates billing figures or forms; prefers-reduced-motion turns all of it off.

   Selectors use !important only where the earlier theme files already do; keep this file last.
   ============================================================== */

/* ---------- Tokens ---------- */
:root {
  --dnp-navy: #07111f;
  --dnp-cta: #2679c7;
  --dnp-cta-hover: #1f69b0;
  --dnp-on-cta: #ffffff;
  --dnp-glow-rgb: 75, 163, 239;
  --dnp-radius: 8px;
  --dnp-radius-sm: 6px;
  --dnp-chrome-bg: #07111f;
  --dnp-chrome-raised: #0e1a2e;
  --dnp-chrome-border: rgba(255, 255, 255, 0.08);
  --dnp-chrome-text: #e2e8f0;
  --dnp-chrome-muted: #94a3b8;
  --dnp-chrome-hover: rgba(255, 255, 255, 0.06);
  --dnp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dnp-font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}
html.theme-light {
  --dnp-bg: #f7f8f9;
  --dnp-surface: #ffffff;
  --dnp-raised: #f7f8f9;
  --dnp-fill: #f1f5f9;
  --dnp-tint: #eaf3fd;
  --dnp-border: #e2e8f0;
  --dnp-border-strong: #cbd5e1;
  --dnp-text: #07111f;
  --dnp-muted: #475569;
  --dnp-subtle: #64748b;
  --dnp-link: #1d64b8;
  --dnp-focus: #1d64b8;
  --dnp-input-bg: #ffffff;
  --dnp-shadow: 0 1px 2px rgba(7, 17, 31, 0.04), 0 12px 24px -20px rgba(7, 17, 31, 0.35);
  --dnp-shadow-hover: 0 12px 24px -16px rgba(7, 17, 31, 0.35);
}
html.theme-dark {
  --dnp-bg: #0b1526;
  --dnp-surface: #13213a;
  --dnp-raised: #182841;
  --dnp-fill: #1d2e49;
  --dnp-tint: rgba(75, 163, 239, 0.14);
  --dnp-border: #25364f;
  --dnp-border-strong: #364a66;
  --dnp-text: #eef2f7;
  --dnp-muted: #a9b6c8;
  --dnp-subtle: #8e9cb1;
  --dnp-link: #79bbf4;
  --dnp-focus: #79bbf4;
  --dnp-input-bg: #0e1a2e;
  --dnp-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 28px -22px rgba(0, 0, 0, 0.8);
  --dnp-shadow-hover: 0 14px 28px -18px rgba(0, 0, 0, 0.85);
}

/* Tabler / Bootstrap variables, so stock components follow the tokens */
html.theme-light, html.theme-dark {
  --tblr-body-bg: var(--dnp-bg);
  --tblr-body-color: var(--dnp-text);
  --tblr-bg-surface: var(--dnp-surface);
  --tblr-bg-surface-secondary: var(--dnp-raised);
  --tblr-border-color: var(--dnp-border);
  --tblr-border-color-translucent: var(--dnp-border);
  --tblr-secondary-color: var(--dnp-muted);
  --tblr-tertiary-color: var(--dnp-subtle);
  --tblr-link-color: var(--dnp-link);
  --tblr-link-hover-color: var(--dnp-link);
  --tblr-border-radius: var(--dnp-radius);
  --tblr-card-bg: var(--dnp-surface);
  --bs-body-bg: var(--dnp-bg);
  --bs-body-color: var(--dnp-text);
  --bs-border-color: var(--dnp-border);
  --bs-link-color: var(--dnp-link);
  --dnb-card-bg: var(--dnp-surface);
  --dnb-bg-elevated: var(--dnp-raised);
}

/* ---------- Page ---------- */
html.theme-light body,
html.theme-dark body {
  background-color: var(--dnp-bg) !important;
  color: var(--dnp-text);
}
html.theme-light body .app-main a:not(.btn):not(.dropdown-item):not(.list-group-item):not(.ajax),
html.theme-dark body .app-main a:not(.btn):not(.dropdown-item):not(.list-group-item):not(.ajax) {
  color: var(--dnp-link);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) h1,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) h2,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) h3,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) h4 {
  color: var(--dnp-text);
}

/* ---------- Sidebar (navy in both modes) ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar {
  background-color: var(--dnp-chrome-bg) !important;
  border-right: 1px solid var(--dnp-chrome-border) !important;
  color: var(--dnp-chrome-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar-brand {
  border-bottom: 1px solid var(--dnp-chrome-border) !important;
  background-color: transparent !important;
}
/* The sidebar is always a dark surface: always show the on-dark logo and mark */
html.theme-light body:not(.dnp-off) .app-sidebar .dnb-brand .dnb-brand-asset--light-surface { display: none !important; }
html.theme-light body:not(.dnp-off) .app-sidebar .dnb-brand .dnb-brand-asset--dark-surface { display: block !important; }
/* Sidebar states, normalised 2026-10-08 (refinement pass). The sidebar is navy in BOTH modes, so every state uses the
   same chrome colours. "aside.app-sidebar" outranks the white-sidebar-era light-mode rules in custom.css that turned the
   active item's hover label dark (--dnb-text) and gave its icon a light tile background. Scoped to the sidebar only. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item) {
  color: var(--dnp-chrome-text) !important;
  background-color: transparent !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 var(--dnp-radius-sm) var(--dnp-radius-sm) 0;
  box-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item) span { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item) i {
  color: var(--dnp-chrome-muted) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item):hover,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item):focus-visible {
  background-color: var(--dnp-chrome-hover) !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item):hover i,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item):focus-visible i { color: #ffffff !important; background: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link:hover,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link:focus-visible,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dropdown-item.active {
  background-color: rgba(var(--dnp-glow-rgb), 0.14) !important;
  border-left-color: #4ba3ef !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link:hover { background-color: rgba(var(--dnp-glow-rgb), 0.2) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link i,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link:hover i,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dropdown-item.active i { color: #79bbf4 !important; background: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar :is(.app-sidebar-nav-link, .dropdown-item):focus-visible {
  outline: 2px solid #79bbf4 !important;
  outline-offset: -2px;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar-utilities,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar-bottom {
  border-top: 1px solid var(--dnp-chrome-border) !important;
  background-color: transparent !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dropdown-menu {
  background-color: var(--dnp-chrome-raised) !important;
  border: 1px solid var(--dnp-chrome-border) !important;
}

/* ---------- Sidebar redesign (2026-10-08): seamless logo area, "Place New Order" CTA, inset rounded nav items ----------
   Supersedes the full-width rows above: items sit 12px inside the sidebar with 8px corners; the active indicator is a
   rounded inset bar (box-shadow, follows the corners; ::before/::after stay free for the collapsed-rail tooltips). */
/* 1. Logo area blends into the navy header/sidebar: no bottom rule, no right rule beside the header. A faint divider
      remains only below the header row (--app-header-height, 74px since 2026-10-08), where (in dark mode) the navy sidebar meets the dark content. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar { border-right: 0 !important; box-shadow: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar-brand { border-bottom: 0 !important; box-shadow: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar::after {
  content: "";
  position: absolute;
  top: var(--app-header-height, 74px);
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--dnp-chrome-border);
  pointer-events: none;
}
/* 2. Place New Order CTA (structure.pdt .dnp-order-cta-wrap > a.dnp-order-cta.dnp-sheen) */
.dnp-order-cta-wrap { position: relative; flex: 0 0 auto; padding: 0.75rem 0.75rem 0.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background-color: #2679c7 !important;
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(75, 163, 239, 0.3);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta i, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta span { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta i { font-size: 0.875rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta:hover { background-color: #1f69b0 !important; box-shadow: 0 4px 10px rgba(75, 163, 239, 0.3); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta:focus-visible { outline: 2px solid #79bbf4; outline-offset: 2px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta.is-active { background-color: #1f69b0 !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); }
/* 3. Inset rounded navigation items */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar > .app-sidebar-nav { padding: 0.5rem 0.75rem 0.75rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-utilities .app-sidebar-nav { padding: 0.5rem 0.75rem !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item + .app-sidebar-nav-item { margin-top: 4px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-link {
  gap: 0.75rem;
  padding: 0.625rem 0.875rem !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-link:hover { background-color: rgba(var(--dnp-glow-rgb), 0.1) !important; color: #ffffff !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-link:focus-visible { outline: 2px solid #79bbf4 !important; outline-offset: 1px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link {
  background-color: rgba(var(--dnp-glow-rgb), 0.18) !important;
  box-shadow: inset 3px 0 0 #4ba3ef !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-item.active > a.app-sidebar-nav-link:hover { background-color: rgba(var(--dnp-glow-rgb), 0.24) !important; }
@media (prefers-reduced-motion: reduce) {
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .app-sidebar-nav-link, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar a.dnp-order-cta { transition: none; }
}
/* 4. Collapsed desktop rail (56px): 40px square CTA + centred 40px items, CTA tooltip on the wrapper (same look as the
      rail's [data-tip] tooltips in custom.css) */
@media (min-width: 1025px) {
  .app-shell.sidebar-collapsed .dnp-order-cta-wrap { padding: 0.75rem 8px 0.25rem; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar a.dnp-order-cta { width: 40px; min-height: 40px; height: 40px; margin: 0 auto; padding: 0; }
  .app-shell.sidebar-collapsed .dnp-order-cta span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar > .app-sidebar-nav,
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-utilities .app-sidebar-nav { padding-left: 8px !important; padding-right: 8px !important; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-link { justify-content: center; padding: 0.625rem 0 !important; }
  .app-shell.sidebar-collapsed .dnp-order-cta-wrap::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% - 2px);
    top: calc(50% + 0.25rem);
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: #1e2a3a;
    color: #eef2f7;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .app-shell.sidebar-collapsed .dnp-order-cta-wrap:is(:hover, :focus-within)::after { opacity: 1; }
  .app-shell:not(.sidebar-collapsed) .dnp-order-cta-wrap::after { content: none; }
}

/* ---------- Header (navy in both modes, like the marketing site's sticky header) ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header {
  background-color: var(--dnp-chrome-bg) !important;
  border-bottom: 1px solid var(--dnp-chrome-border) !important;
  color: var(--dnp-chrome-text) !important;
  box-shadow: none !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header :is(.app-sidebar-collapse-btn, .app-sidebar-toggle, .app-user-drawer-toggle, .theme-toggle-btn) {
  color: var(--dnp-chrome-text) !important;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  border-radius: var(--dnp-radius) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header :is(.app-sidebar-collapse-btn, .app-sidebar-toggle, .app-user-drawer-toggle, .theme-toggle-btn):hover {
  background-color: var(--dnp-chrome-hover) !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header :is(.app-sidebar-collapse-btn, .app-sidebar-toggle, .app-user-drawer-toggle, .theme-toggle-btn):focus-visible {
  outline: 2px solid #79bbf4 !important;
  outline-offset: 2px;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header .theme-toggle-btn i { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header :is(.app-user-menu > .dropdown-toggle, .app-login-link) {
  color: var(--dnp-chrome-text) !important;
  border-radius: var(--dnp-radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header :is(.app-user-menu > .dropdown-toggle, .app-login-link):hover { color: #ffffff !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header .app-login-link.desktop-only {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 0.875rem;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header .app-login-link.desktop-only:hover { border-color: #ffffff; }

/* Mobile account drawer: same navy chrome as the sidebar */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer {
  background-color: var(--dnp-chrome-bg) !important;
  color: var(--dnp-chrome-text) !important;
  border-left: 1px solid var(--dnp-chrome-border) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer :is(.app-user-drawer-header, .app-user-drawer-name, .app-user-drawer-close, .app-user-drawer-item, .app-user-drawer-item i, .theme-toggle-btn) {
  color: var(--dnp-chrome-text) !important;
  background-color: transparent !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer :is(.app-user-drawer-header, .app-user-drawer-divider) { border-color: var(--dnp-chrome-border) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer .app-user-drawer-divider { background-color: var(--dnp-chrome-border) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer a.app-user-drawer-item:hover { background-color: var(--dnp-chrome-hover) !important; color: #ffffff !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-user-drawer :is(a, button):focus-visible { outline: 2px solid #79bbf4 !important; outline-offset: -2px; }

/* ---------- Buttons ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn { border-radius: var(--dnp-radius) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn-xs, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn-sm { border-radius: var(--dnp-radius-sm) !important; }
/* .btn-success is the order/checkout/payment "continue" action here: same brand CTA (green stays for badges and alerts) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-primary, .btn-success) {
  background-color: var(--dnp-cta) !important;
  border-color: var(--dnp-cta) !important;
  color: var(--dnp-on-cta) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--dnp-ease);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-primary, .btn-success):hover,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-primary, .btn-success):focus-visible {
  background-color: var(--dnp-cta-hover) !important;
  border-color: var(--dnp-cta-hover) !important;
  color: var(--dnp-on-cta) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-primary, .btn-success) :is(i, span, svg) { color: var(--dnp-on-cta) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-light, .btn-default, .btn-secondary, .btn-outline-secondary) {
  background-color: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border-strong) !important;
  color: var(--dnp-text) !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.btn-light, .btn-default, .btn-secondary, .btn-outline-secondary):hover {
  border-color: var(--dnp-text) !important;
  background-color: var(--dnp-surface) !important;
}
html.theme-dark body:not(.dnp-off) :is(.btn-light, .btn-default, .btn-secondary, .btn-outline-secondary) { background-color: var(--dnp-fill) !important; }
html.theme-dark body:not(.dnp-off) :is(.btn-light, .btn-default, .btn-secondary, .btn-outline-secondary):hover { background-color: var(--dnp-fill) !important; border-color: #79bbf4 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn:focus-visible {
  outline: 2px solid var(--dnp-focus) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* Destructive actions: outlined red, clear but not the loudest thing on the page */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn-danger {
  background-color: transparent !important;
  border: 1px solid #d14343 !important;
  color: #c53030 !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn-danger:hover { background-color: #d14343 !important; color: #ffffff !important; }
html.theme-dark body:not(.dnp-off) .btn-danger { border-color: #f87171 !important; color: #fca5a5 !important; }
html.theme-dark body:not(.dnp-off) .btn-danger:hover { background-color: rgba(248, 113, 113, 0.16) !important; color: #fecaca !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .btn-danger :is(i, span) { color: inherit !important; }

/* Order storefront tiles (plugins/order forms.pdt sets a per-category inline --dnb-accent): one brand blue, like the
   marketing site. Stylesheet !important beats the inline custom property; the view file stays untouched. */
body:not(.dnp-off) .dnb-sf-card [style*="--dnb-accent"],
body:not(.dnp-off) .dnb-sf-card[style*="--dnb-accent"] { --dnb-accent: #2679c7 !important; }
html.theme-dark body:not(.dnp-off) .dnb-sf-card :is(.dnb-sf-icon, [class*="icon"])[style*="--dnb-accent"] { --dnb-accent: #79bbf4 !important; }
body:not(.dnp-off) .dnb-sf-card .dnb-sf-cta { color: #ffffff !important; border-radius: var(--dnp-radius) !important; }

/* Order template (denobulus_standard): checkout is the brand CTA, "add more" is secondary, feature ticks use the accent */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-cart-btn-checkout {
  background-color: var(--dnp-cta) !important;
  border-color: var(--dnp-cta) !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-cart-btn-checkout:hover { background-color: var(--dnp-cta-hover) !important; border-color: var(--dnp-cta-hover) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-cart-btn-more {
  background-color: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border-strong) !important;
  color: var(--dnp-text) !important;
  box-shadow: none !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-cart-btn-more :is(i, span) { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-cart-btn-more:hover { border-color: var(--dnp-text) !important; }
html.theme-dark body:not(.dnp-off) .dnb-cart-btn-more { background-color: var(--dnp-fill) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-store-card-features li .fas.fa-check { color: var(--dnp-link) !important; }

/* ---------- Cards ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card {
  background-color: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border) !important;
  border-radius: var(--dnp-radius) !important;
  box-shadow: var(--dnp-shadow) !important;
  color: var(--dnp-text);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card > .card-header {
  background-color: var(--dnp-surface) !important;
  color: var(--dnp-text) !important;
  border-bottom: 1px solid var(--dnp-border) !important;
  border-radius: var(--dnp-radius) var(--dnp-radius) 0 0 !important;
  font-weight: 600;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card > .card-header :is(h1, h2, h3, h4, h5, h6, .card-title, span, i) { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card > .card-header .btn i { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card > .card-footer {
  background-color: var(--dnp-raised) !important;
  border-top: 1px solid var(--dnp-border) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main hr { border-color: var(--dnp-border) !important; opacity: 1; }

/* Dashboard stat cards: quiet surfaces, semantic colour only on the icon and a 3px top rule */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card {
  background: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border) !important;
  border-top: 3px solid var(--dnp-stat, var(--dnp-cta)) !important;
  color: var(--dnp-text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--dnp-ease);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card :is(.card-value, .card-label) { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card .card-label { color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card .dnb-stat-card-icon { color: var(--dnp-stat, var(--dnp-cta)) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card::before,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card.dnb-stat-card::after { opacity: 0.08 !important; color: var(--dnp-stat, var(--dnp-cta)) !important; }
.app-main .card.dnb-stat-card[id^="domains"] { --dnp-stat: #1f9d55; }
.app-main .card.dnb-stat-card[id^="services"] { --dnp-stat: #2679c7; }
.app-main .card.dnb-stat-card[id*="ticket"] { --dnp-stat: #d97706; }
.app-main .card.dnb-stat-card[id*="invoice"] { --dnp-stat: #d14343; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id^="domains"] { --dnp-stat: #4ade80; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id^="services"] { --dnp-stat: #79bbf4; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id*="ticket"] { --dnp-stat: #fbbf24; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id*="invoice"] { --dnp-stat: #f87171; }
.app-main a:hover > .card.dnb-stat-card,
.app-main .card.dnb-stat-card:hover { box-shadow: var(--dnp-shadow-hover) !important; }
/* Dark mode only (2026-10-08 refinement): restrained category tint behind the content, so the four cards read as
   Domains / Services / Tickets / Invoices at a glance. Light mode keeps the quiet white surface above. Text stays
   --dnp-text on a background that is still >= 90% dark surface; top rule and watermark icon unchanged. */
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card {
  --dnp-stat-rgb: 121, 187, 244;
  background: linear-gradient(160deg, rgba(var(--dnp-stat-rgb), 0.16) 0%, rgba(var(--dnp-stat-rgb), 0.07) 100%), var(--dnp-surface) !important;
  border-color: rgba(var(--dnp-stat-rgb), 0.28) !important;
  border-top-color: var(--dnp-stat, var(--dnp-cta)) !important;
}
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id^="domains"] { --dnp-stat-rgb: 74, 222, 128; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id^="services"] { --dnp-stat-rgb: 121, 187, 244; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id*="ticket"] { --dnp-stat-rgb: 251, 191, 36; }
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card[id*="invoice"] { --dnp-stat-rgb: 248, 113, 113; }
html.theme-dark body:not(.dnp-off) .app-main a:hover > .card.dnb-stat-card,
html.theme-dark body:not(.dnp-off) .app-main .card.dnb-stat-card:hover {
  background: linear-gradient(160deg, rgba(var(--dnp-stat-rgb), 0.21) 0%, rgba(var(--dnp-stat-rgb), 0.10) 100%), var(--dnp-surface) !important;
}

/* Widget status tabs (Active / Pending / ...) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .card-links a.ajax {
  border-radius: var(--dnp-radius-sm) !important;
  color: var(--dnp-muted) !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .card-links a.ajax:hover { color: var(--dnp-text) !important; background-color: var(--dnp-fill) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .card-links li.active a.ajax {
  background-color: var(--dnp-cta) !important;
  color: #ffffff !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .card-links .badge {
  background-color: var(--dnp-fill) !important;
  color: var(--dnp-muted) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .card-links li.active .badge { background-color: rgba(255, 255, 255, 0.22) !important; color: #ffffff !important; }

/* ---------- Tables ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table { --tblr-table-bg: transparent; color: var(--dnp-text); border-color: var(--dnp-border) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table > thead th,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table tr.heading_row > td {
  background-color: var(--dnp-raised) !important;
  color: var(--dnp-subtle) !important;
  border-color: var(--dnp-border) !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table td { border-color: var(--dnp-border) !important; color: var(--dnp-text); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table td :is(.text-muted, small) { color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .table-hover > tbody > tr:hover > * { background-color: rgba(var(--dnp-glow-rgb), 0.06) !important; }
html.theme-dark body:not(.dnp-off) .app-main .table:is(.table-striped, .table-striped-alt) > tbody > tr:nth-of-type(odd) > * { background-color: rgba(255, 255, 255, 0.015) !important; }

/* ---------- Forms ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-control,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-select,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) select.form-control,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .input-group-text {
  background-color: var(--dnp-input-bg) !important;
  border-color: var(--dnp-border-strong) !important;
  color: var(--dnp-text) !important;
  border-radius: var(--dnp-radius-sm);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .input-group-text { background-color: var(--dnp-raised) !important; color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-control::placeholder { color: var(--dnp-subtle) !important; opacity: 1; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.form-control, .form-select):focus {
  border-color: #4ba3ef !important;
  box-shadow: 0 0 0 3px rgba(var(--dnp-glow-rgb), 0.25) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-control:disabled,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-control[readonly] { background-color: var(--dnp-fill) !important; color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(label, .form-label) { color: var(--dnp-text); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-check-input:checked { background-color: var(--dnp-cta) !important; border-color: var(--dnp-cta) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--dnp-glow-rgb), 0.25) !important; }
/* Dark mode: unchecked radios/checkboxes had a #111827 fill and #25364f ring (about 1.2:1 against the card), so the
   control was hard to find. Input fill + a #8e9cb1 ring (>= 3:1 non-text contrast). Checked state unchanged. */
html.theme-dark body:not(.dnp-off) .app-main .form-check-input:not(:checked):not(:indeterminate) {
  background-color: var(--dnp-input-bg) !important;
  border: 1px solid #8e9cb1 !important;
}
html.theme-dark body:not(.dnp-off) .app-main .form-check-input:disabled { opacity: 0.55; }
/* Light mode (2026-10-10): the unchecked ring was #e2e8f0 on white (1.23:1), so checkboxes such as Terms / recurring consent
   were hard to see. #7a8699 gives about 3.7:1 (WCAG 1.4.11). Checked state unchanged. */
html.theme-light body:not(.dnp-off) .app-main .form-check-input:not(:checked):not(:indeterminate) { border-color: #7a8699 !important; }

/* Stripe Payments ACH + card forms (gateway views/css are vendor files, styled from here only). The gateway CSS defaults
   --bg-secondary to white while custom.css maps --text-primary to the theme text, so dark mode had near-white text on
   white inputs. Inputs/selects now use the portal form-control look in both modes; the PNG select arrow (black) is
   replaced by a chevron in the muted colour; native option lists follow the colour scheme. Width: fills the column up to
   34rem instead of a fixed 370px chip, and never wider than the screen. Labels, mandate text and validation logic are
   untouched. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(#stripe-ach-form, #stripe-cc-form) {
  --bg-secondary: var(--dnp-input-bg);
  --border-color: var(--dnp-border-strong);
  --text-primary: var(--dnp-text);
  --text-secondary: var(--dnp-muted);
  --text-muted: var(--dnp-subtle);
  --accent-color: #4ba3ef;
  max-width: 34rem;
  box-sizing: border-box;
  background-color: var(--dnp-raised) !important;
  border: 1px solid var(--dnp-border);
  border-radius: var(--dnp-radius);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-cc-form .StripeElement { max-width: 100%; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form :is(input, select) {
  background-color: var(--dnp-input-bg);
  border: 1px solid var(--dnp-border-strong);
  border-radius: var(--dnp-radius-sm);
  color: var(--dnp-text);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form input::placeholder { color: var(--dnp-subtle); opacity: 1; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form :is(input, select):focus {
  border-color: #4ba3ef;
  box-shadow: 0 0 0 3px rgba(var(--dnp-glow-rgb), 0.25);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form :is(input, select):disabled {
  background-color: var(--dnp-fill);
  color: var(--dnp-subtle);
  cursor: not-allowed;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form :is(input, select)[aria-invalid="true"] { border-color: #d14343; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: right 0.75rem center;
}
html.theme-dark body:not(.dnp-off) #stripe-ach-form select {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a9b6c8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
html.theme-dark body:not(.dnp-off) #stripe-ach-form option { background-color: var(--dnp-input-bg); color: var(--dnp-text); }
html.theme-dark body:not(.dnp-off) #stripe-ach-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--dnp-text);
  box-shadow: 0 0 0 40px var(--dnp-input-bg) inset;
  caret-color: var(--dnp-text);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form :is(input, select, label, p) { font-family: inherit; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form label { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #stripe-ach-form p { color: var(--dnp-muted) !important; line-height: 1.5; }
html.theme-dark body:not(.dnp-off) :is(#stripe-ach-form #ach-errors, #stripe-cc-form #card-errors) { color: #ff8a73; }
html.theme-light body:not(.dnp-off) :is(#stripe-ach-form #ach-errors, #stripe-cc-form #card-errors) { color: #b42318; }

/* Google Places address search (checkout signup, contacts): match the portal inputs */
html.theme-light gmp-place-autocomplete { color-scheme: light; }
html.theme-dark gmp-place-autocomplete { color-scheme: dark; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) gmp-place-autocomplete {
  background-color: var(--dnp-input-bg) !important;
  border: 1px solid var(--dnp-border-strong) !important;
  border-radius: var(--dnp-radius-sm) !important;
}

/* Masked service passwords (client_services_serviceinfo.pdt + structure.pdt) */
.dnb-secret { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.dnb-secret-mask { letter-spacing: 0.12em; color: var(--dnp-muted); }
.dnb-secret-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; color: var(--dnp-text); user-select: all; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnb-secret :is(.dnb-secret-toggle, .dnb-secret-copy) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.875rem;
  min-height: 1.75rem;
  padding: 0.125rem 0.4rem;
  line-height: 1;
}
.dnb-secret [hidden] { display: none !important; }

/* Cloudflare Turnstile (sized by its native data-size, see structure.pdt): aligned with the form fields, never clipped */
.cf-turnstile { display: flex; justify-content: center; width: 100%; max-width: 100%; margin: 0.25rem 0 1rem; }

/* ---------- Alerts ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .alert { border-radius: var(--dnp-radius) !important; border-width: 1px !important; }
html.theme-light body:not(.dnp-off) .alert-info { background-color: #eaf3fd !important; border-color: #bcd8f5 !important; color: #0f3d6e !important; }
html.theme-dark body:not(.dnp-off) .alert-info { background-color: rgba(75, 163, 239, 0.12) !important; border-color: rgba(75, 163, 239, 0.32) !important; color: #c9e3fb !important; }
html.theme-light body:not(.dnp-off) .alert-success { background-color: #ecfdf3 !important; border-color: #b7ebc8 !important; color: #14532d !important; }
html.theme-dark body:not(.dnp-off) .alert-success { background-color: rgba(74, 222, 128, 0.1) !important; border-color: rgba(74, 222, 128, 0.3) !important; color: #c6f6d5 !important; }
html.theme-light body:not(.dnp-off) .alert-warning { background-color: #fef3c7 !important; border-color: #f6d98a !important; color: #78350f !important; }
html.theme-dark body:not(.dnp-off) .alert-warning { background-color: rgba(251, 191, 36, 0.12) !important; border-color: rgba(251, 191, 36, 0.32) !important; color: #fde68a !important; }
html.theme-light body:not(.dnp-off) .alert-danger { background-color: #fdecec !important; border-color: #f5c2c2 !important; color: #7f1d1d !important; }
html.theme-dark body:not(.dnp-off) .alert-danger { background-color: rgba(248, 113, 113, 0.12) !important; border-color: rgba(248, 113, 113, 0.32) !important; color: #fecaca !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .alert :is(a:not(.btn)) { color: inherit !important; text-decoration: underline; }

/* ---------- Badges / status labels: rectangular, soft ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .badge { border-radius: var(--dnp-radius-sm) !important; font-weight: 600; }

/* ---------- Dropdowns, modals, list groups, pagination, tabs ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content .dropdown-menu,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .modal-content {
  background-color: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border) !important;
  border-radius: var(--dnp-radius) !important;
  color: var(--dnp-text) !important;
  box-shadow: 0 24px 48px -24px rgba(7, 17, 31, 0.45) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content .dropdown-menu .dropdown-item { color: var(--dnp-text) !important; border-radius: var(--dnp-radius-sm); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content .dropdown-menu .dropdown-item:hover { background-color: var(--dnp-fill) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content .dropdown-menu .dropdown-item i { color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .modal-header,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .modal-footer { border-color: var(--dnp-border) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .list-group-item {
  background-color: var(--dnp-surface) !important;
  border-color: var(--dnp-border) !important;
  color: var(--dnp-text) !important;
  transition: background-color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .list-group-item-action:hover { background-color: var(--dnp-fill) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .list-group-item.active {
  background-color: var(--dnp-tint) !important;
  border-color: var(--dnp-border) !important;
  box-shadow: inset 3px 0 0 #4ba3ef;
  color: var(--dnp-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .list-group-item.active i { color: var(--dnp-link) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .list-group { border-radius: var(--dnp-radius) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .pagination .page-link {
  background-color: var(--dnp-surface) !important;
  border-color: var(--dnp-border) !important;
  color: var(--dnp-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .pagination .page-item.active .page-link { background-color: var(--dnp-cta) !important; border-color: var(--dnp-cta) !important; color: #ffffff !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .pagination .page-item:first-child .page-link { border-radius: var(--dnp-radius) 0 0 var(--dnp-radius); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .pagination .page-item:last-child .page-link { border-radius: 0 var(--dnp-radius) var(--dnp-radius) 0; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .nav-tabs { border-color: var(--dnp-border) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .nav-tabs .nav-link { color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .nav-tabs .nav-link.active {
  color: var(--dnp-text) !important;
  background-color: var(--dnp-surface) !important;
  border-color: var(--dnp-border) var(--dnp-border) var(--dnp-surface) !important;
  box-shadow: inset 0 2px 0 #4ba3ef;
}

/* ---------- Landing (CMS "/") ---------- */
.dnp-landing {
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--dnp-border);
  border-radius: var(--dnp-radius);
  background:
    radial-gradient(40rem 14rem at 0% 0%, rgba(var(--dnp-glow-rgb), 0.14), rgba(var(--dnp-glow-rgb), 0) 70%),
    var(--dnp-surface);
  box-shadow: var(--dnp-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.dnp-landing-text { flex: 1 1 26rem; min-width: 0; }
.dnp-landing-eyebrow { margin: 0 0 0.25rem; color: var(--dnp-link); font-size: 0.8125rem; font-weight: 600; }
.dnp-landing-title {
  margin: 0;
  color: var(--dnp-text) !important;
  font-family: var(--dnp-font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dnp-landing-lead { margin: 0.375rem 0 0; color: var(--dnp-muted); font-size: 0.9375rem; line-height: 1.55; max-width: 44rem; }
.dnp-landing-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dnp-landing-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; font-weight: 600; }
.dnp-quick {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}
.dnp-quick a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dnp-border);
  border-radius: var(--dnp-radius);
  background-color: var(--dnp-surface);
  color: var(--dnp-text) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--dnp-ease);
}
.dnp-quick a i { width: 1.25rem; text-align: center; color: var(--dnp-link); }
.dnp-quick a:hover { border-color: var(--dnp-border-strong); box-shadow: var(--dnp-shadow-hover); transform: translateY(-1px); }
.dnp-quick a:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 2px; }

/* CMS service cards on the landing page: compact rows instead of tall tiles */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card {
  border: 1px solid var(--dnp-border) !important;
  background-color: var(--dnp-surface) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--dnp-ease);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box a:hover .card { border-color: var(--dnp-border-strong) !important; box-shadow: var(--dnp-shadow-hover) !important; transform: translateY(-1px); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body i { color: var(--dnp-link) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body h4 { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body p { color: var(--dnp-muted) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box a:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 3px; border-radius: var(--dnp-radius); }

/* Compact rows: icon chip on the left, title + one line on the right; three per row on wide screens */
@media (min-width: 1200px) {
  body:not(.dnp-off) .row > .portal-box { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; width: 33.3333% !important; }
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box { margin-bottom: 0.75rem !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card { height: 100%; margin: 0 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.875rem;
  align-items: center;
  text-align: left !important;
  padding: 1rem 1.125rem !important;
  min-height: 0 !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body::before,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body::after { display: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body i {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--dnp-radius);
  background-color: var(--dnp-tint);
  font-size: 1.125rem !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body :is(h4, p) { text-align: left !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body h4 { margin: 0 0 0.125rem !important; font-size: 1rem !important; font-weight: 600; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box .card-body p { margin: 0 !important; font-size: 0.875rem !important; line-height: 1.45; }

/* Public landing cards (CMS "/" content, 2026-10-08): four whole-card links reusing the /order/forms/ card styles
   (.dnb-sf-card from custom.css); 2 x 2 on desktop/tablet, one column on narrow phones. */
.dnp-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 575px) { .dnp-portal-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) a.dnp-portal-card { color: inherit; text-decoration: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) a.dnp-portal-card:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 3px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-portal-card .dnb-sf-card-title { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-portal-card .dnb-sf-card-desc { color: var(--dnp-muted) !important; }

/* ---------- Footer ---------- */
.dnb-page-footer hr { border-color: var(--dnp-border) !important; opacity: 1; }
.dnp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--dnp-subtle);
}
.dnp-footer p { margin: 0; color: var(--dnp-subtle) !important; }
.dnp-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.dnp-footer nav a { color: var(--dnp-muted) !important; text-decoration: none !important; transition: color 0.15s ease; }
.dnp-footer nav a:hover { color: var(--dnp-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.dnp-footer nav a:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 2px; border-radius: 2px; }
/* Footer flag + Service Status dot (2026-10-08). Same recipe as denobulus.com's footer .dnb-status (green #22c55e
   dot, expanding ring "breathe", off for reduced motion / forced colours), 7px here. Decorative only: no status check. */
/* Local SVG flag (assets/denobulus/flag-us.svg) instead of the emoji, which Windows renders as the letters "US".
   Sized to the footer text's cap height and sat on the baseline. */
.dnp-footer .dnp-flag {
  display: inline-block;
  width: auto;
  height: 0.72em;
  aspect-ratio: 19 / 10;
  margin-left: 0.15em;
  vertical-align: baseline;
  border-radius: 1px;
  box-shadow: 0 0 0 0.5px rgba(7, 17, 31, 0.18);
}
html.theme-dark .dnp-footer .dnp-flag { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18); }
.dnp-footer nav a.dnp-status { position: relative; display: inline-flex; align-items: center; }
.dnp-footer nav a.dnp-status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
}
.dnp-footer nav a.dnp-status::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.5);
  pointer-events: none;
  animation: dnp-status-breathe 3.2s ease-out infinite;
}
@keyframes dnp-status-breathe { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dnp-footer nav a.dnp-status::after { animation: none; opacity: 0; } }
@media (forced-colors: active) { .dnp-footer nav a.dnp-status::after { display: none; } }

/* ---------- Login / register screens (no app shell) ---------- */
/* Auth screens = the ClientLogin views (login, forgot, reset, OTP, confirm reset), the only pages without .app-shell.
   Base = the Denobulus auth background (unchanged from the 2026-10-08 theme unification): sky glow + pale/navy gradient,
   painted on <html> (the canvas) so it covers pages taller than the viewport; body is cleared.
   Pattern = the DirectAdmin Evolution login geometry (images/background-dark.svg, byte-identical to DA's
   /evo/assets/background-dark.BawLIQ0N.svg). Both DA SVGs hold the same pure-grey triangle mosaic under a baked-in tint
   (light: 85 % sky blue, dark: 75 % black), so neither can sit on the palette as an image without bringing DA's colours
   back. The dark file is the mosaic scaled evenly towards black, i.e. a clean luminance map: it is used as a luminance MASK
   on a fixed full-viewport layer filled with a palette colour (light: link blue #1d64b8, dark: #79bbf4 at 0.5), so only
   the triangle shapes carry over. Centre / cover like the original. Original SVGs untouched. Browsers without
   mask-mode: luminance show the plain Denobulus gradient. Final version 2026-10-09. */
html.theme-light:not(:has(.app-shell)) {
  background:
    radial-gradient(60rem 28rem at 50% -8rem, rgba(var(--dnp-glow-rgb), 0.22), rgba(var(--dnp-glow-rgb), 0) 70%),
    linear-gradient(180deg, #eef6fa 0%, #f7f8f9 100%) fixed !important;
}
html.theme-dark:not(:has(.app-shell)) {
  background:
    radial-gradient(60rem 28rem at 50% -8rem, rgba(var(--dnp-glow-rgb), 0.16), rgba(var(--dnp-glow-rgb), 0) 70%),
    linear-gradient(180deg, #0d1d33 0%, #0b1526 100%) fixed !important;
}
:is(html.theme-light, html.theme-dark) body:not(:has(.app-shell)) { background: transparent !important; }
@supports (mask-mode: luminance) {
  :is(html.theme-light, html.theme-dark) body:not(:has(.app-shell))::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mask-image: url('../images/background-dark.svg');
    mask-mode: luminance;
    mask-position: center center;
    mask-size: cover;
    mask-repeat: no-repeat;
  }
  html.theme-light body:not(:has(.app-shell))::before { background-color: #1d64b8; }
  html.theme-dark body:not(:has(.app-shell))::before { background-color: #79bbf4; opacity: 0.5; }
}
@media print, (forced-colors: active) { :is(html.theme-light, html.theme-dark) body:not(:has(.app-shell))::before { display: none; } }
/* Light mode: items that sit on the background itself (not on the card) use palette text/muted for contrast. The
   theme toggle's translucent white (login-overrides.css) was made for a dark hero; the footer line was --dnp-subtle. */
html.theme-light body:not(:has(.app-shell)) .theme-switcher .theme-toggle-btn { color: var(--dnp-text) !important; }
html.theme-light body:not(:has(.app-shell)) .theme-switcher .theme-toggle-btn:hover { background: rgba(255, 255, 255, 0.4) !important; color: var(--dnp-text) !important; }
html.theme-light body:not(:has(.app-shell)) :is(.login-back-link, .dnp-footer p) { color: var(--dnp-muted) !important; }
html.theme-light body:not(:has(.app-shell)) .login-back-link:hover { color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(:has(.app-shell)) .card {
  background-color: var(--dnp-surface) !important;
  border: 1px solid var(--dnp-border) !important;
  border-radius: var(--dnp-radius) !important;
  box-shadow: 0 24px 48px -28px rgba(7, 17, 31, 0.45) !important;
}

/* Knowledge Base breadcrumb (support_manager kb.css draws a 1px box with a rounded bottom, dark-overrides fills it):
   plain trail under the search card, both modes. Same .card-kb + nav adjacency custom.css already uses, so no other
   breadcrumb in the portal is affected. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card-kb + nav > ol.breadcrumb {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Dashboard card-header info icons (Quick Access, Client, Contacts): look identical to the Credits icon (link blue,
   0.8125rem glyph, same hover/focus); only placement differs (after the title). 24px hit area for touch without
   changing the header height. The card-header rule above paints every header <i> in the text colour, so the glyph is
   told to inherit the link colour from its anchor, like Credits. */
.app-main .card-header .dnb-card-info {
  margin: -0.25rem 0 -0.25rem 0.3rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.8125rem;
  vertical-align: middle;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card > .card-header .dnb-info-tooltip i { color: inherit !important; }

/* Credits card (client_main_getcurrencyamounts.pdt): the balance is now a .card-header like Quick Access / Client /
   Contacts, so it already gets their size, weight, padding and divider. Only the label keeps its LTR amount together. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-credits-card > .dnb-credits-header .dnb-credits-label { color: var(--dnp-text) !important; }

/* Automatic-payment status card (client_main_myinfo.pdt, .dnb-autopay). Compact row: icon chip, title + status pill,
   Blesta's description, and one real link. The link's ::after covers the card so the whole card stays clickable,
   but only the action text is a link (no full-card underline). Amber = not set up, quiet green = set up. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .list-options .dnb-autopay {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.875rem 1rem !important;
  border: 1px solid var(--dnp-ap-border) !important;
  border-radius: var(--dnp-radius) !important;
  background: var(--dnp-ap-bg) !important;
  color: var(--dnp-text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .list-options .dnb-autopay:not(:first-child) { margin-top: 0.5rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .list-options .dnb-autopay:hover {
  background: var(--dnp-ap-bg) !important;
  border-color: var(--dnp-ap-border-hover) !important;
  box-shadow: var(--dnp-shadow-hover);
}
html.theme-light .dnb-autopay-off {
  --dnp-ap-bg: #fffaf0; --dnp-ap-border: #f3d9a4; --dnp-ap-border-hover: #e9b860;
  --dnp-ap-chip: #fdefc8; --dnp-ap-accent: #b45309; --dnp-ap-pill: #fdefc8; --dnp-ap-pill-text: #8a4a07;
}
html.theme-dark .dnb-autopay-off {
  --dnp-ap-bg: linear-gradient(rgba(251, 191, 36, 0.07), rgba(251, 191, 36, 0.07)), var(--dnp-surface);
  --dnp-ap-border: rgba(251, 191, 36, 0.3); --dnp-ap-border-hover: rgba(251, 191, 36, 0.5);
  --dnp-ap-chip: rgba(251, 191, 36, 0.14); --dnp-ap-accent: #fbbf24; --dnp-ap-pill: rgba(251, 191, 36, 0.16); --dnp-ap-pill-text: #fcd34d;
}
html.theme-light .dnb-autopay-on {
  --dnp-ap-bg: #ffffff; --dnp-ap-border: #cfe9da; --dnp-ap-border-hover: #9fd3b4;
  --dnp-ap-chip: #e7f6ee; --dnp-ap-accent: #1f7a45; --dnp-ap-pill: #e7f6ee; --dnp-ap-pill-text: #17643a;
}
html.theme-dark .dnb-autopay-on {
  --dnp-ap-bg: var(--dnp-surface);
  --dnp-ap-border: rgba(74, 222, 128, 0.25); --dnp-ap-border-hover: rgba(74, 222, 128, 0.45);
  --dnp-ap-chip: rgba(74, 222, 128, 0.12); --dnp-ap-accent: #4ade80; --dnp-ap-pill: rgba(74, 222, 128, 0.14); --dnp-ap-pill-text: #86efac;
}
.app-main .dnb-autopay-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--dnp-radius);
  background: var(--dnp-ap-chip);
  color: var(--dnp-ap-accent);
  font-size: 1.25rem;
  line-height: 1;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay .dnb-autopay-icon i { color: var(--dnp-ap-accent) !important; }
.app-main .dnb-autopay-body { min-width: 0; flex: 1 1 auto; }
.app-main .dnb-autopay-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; min-height: 2.25rem; }
.app-main .dnb-autopay-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--dnp-text); }
.app-main .dnb-autopay-status {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--dnp-ap-pill);
  color: var(--dnp-ap-pill-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay .dnb-autopay-text {
  margin: 0.125rem 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--dnp-muted) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay .dnb-autopay-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dnp-link) !important;
  text-decoration: none !important;
  border-radius: 4px;
}
.app-main .dnb-autopay .dnb-autopay-action::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--dnp-radius); }
.app-main .dnb-autopay .dnb-autopay-action i { font-size: 0.875rem; transition: transform 0.15s ease; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay .dnb-autopay-action { transition: color 0.15s ease; }
/* Hover (2026-10-08 follow-up): no underline anywhere on the card; the action shifts colour and the arrow nudges */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay:hover :is(*, a, a *) { text-decoration: none !important; }
html.theme-light body:not(.dnp-off) .app-main .dnb-autopay:is(:hover, :focus-within) .dnb-autopay-action { color: #174f92 !important; }
html.theme-dark body:not(.dnp-off) .app-main .dnb-autopay:is(:hover, :focus-within) .dnb-autopay-action { color: #a6d3f8 !important; }
.app-main .dnb-autopay:is(:hover, :focus-within) .dnb-autopay-action i { transform: translateX(3px); }
.app-main .dnb-autopay .dnb-autopay-action:focus-visible { outline: none; }
.app-main .dnb-autopay .dnb-autopay-action:focus-visible::after { outline: 2px solid var(--dnp-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .app-main .dnb-autopay, .app-main .dnb-autopay .dnb-autopay-action i { transition: none; }
  .app-main .dnb-autopay:is(:hover, :focus-within) .dnb-autopay-action i { transform: none; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .dnb-autopay .dnb-autopay-action { transition: none; }
}
@media (forced-colors: active) { .app-main .dnb-autopay-status { border: 1px solid CanvasText; } }

/* Support Manager ticket forms: "Open Ticket" (client_tickets/add) and "Reply" (client_tickets/reply) - both stock
   plugin views using #create_ticket, styled here only. Ticket details/status/conversation are not targeted. Tabler/BS5 gives the BS4
   .form-group no margin and labels no gap, so fields ran together. One rhythm: 6px label gap, 20px between fields,
   12px inside the recipient panel. Behaviour fixes live in javascript/dnb-ticket-form.js. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .form-group { margin-bottom: 1.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .form-group > label,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row > label,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-attach-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dnp-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .md-editor .md-header { margin-bottom: 0.625rem; }
/* Drop zone: same box language as the inputs */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--dnp-border-strong) !important;
  border-radius: var(--dnp-radius-sm);
  background: var(--dnp-raised);
  color: var(--dnp-muted) !important;
  font-size: 0.875rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message * { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message i { margin-right: 0.375rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message:is(:hover, :focus-visible),
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket.dz-drag-hover .dz-message {
  border-color: #4ba3ef !important;
  background: var(--dnp-tint);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 2px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dropzone-previews:not(:empty) { margin-top: 0.5rem; }
/* Recipients: toggle, panel, rows joined to their remove button */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket [data-target="#recipients-section"] { display: inline-flex; align-items: center; gap: 0.375rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket [data-target="#recipients-section"]:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 2px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #recipients-section > .card {
  margin-top: 0.75rem !important;
  border: 1px solid var(--dnp-border) !important;
  background: var(--dnp-raised) !important;
  box-shadow: none !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #recipients-section .card-body { padding: 1rem !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #recipients-section .form-group { margin-bottom: 1rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #recipients-section .form-group.mb-0 { margin-bottom: 0; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .input-group { flex-wrap: nowrap; margin-bottom: 0.5rem !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .input-group-append { display: flex; margin-left: -1px; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .remove-recipient {
  min-width: 2.5rem;
  border: 1px solid var(--dnp-border-strong) !important;
  border-radius: 0 var(--dnp-radius-sm) var(--dnp-radius-sm) 0 !important;
  color: var(--dnp-muted) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .remove-recipient:hover { color: #d14343 !important; }
html.theme-dark body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients .remove-recipient:hover { color: #f87171 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket #email-recipients:not(:empty) + #add-recipient { margin-top: 0.25rem; }
/* Label + info icon row (dnb-ticket-form.js wraps "Additional Emails" and "Attachments") */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row > :is(label, .dnb-attach-label) { margin-bottom: 0 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row .dnb-info-tooltip { margin: 0; width: 1.5rem; height: 1.5rem; margin: -0.25rem 0; border-radius: 50%; font-size: 0.8125rem; color: var(--dnp-link) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row .dnb-info-tooltip i { color: inherit !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dnb-label-row .dnb-info-tooltip:focus-visible { outline: 2px solid var(--dnp-focus); outline-offset: 0; }
/* Reply page: the first label ("Add Reply") sits on the same rhythm */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off)[class*="client_tickets-reply"] #create_ticket > .form-group:first-of-type { margin-top: 0.25rem; }
/* Reply page: Reply + Close are a stock .btn-group (joined); separate them like other portal button pairs */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off)[class*="client_tickets-reply"] #create_ticket > .btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; float: none; margin-top: 0.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off)[class*="client_tickets-reply"] #create_ticket > .btn-group > .btn { margin-left: 0 !important; border-radius: var(--dnp-radius-sm) !important; flex: 0 0 auto; }
/* Department custom fields: the wrapper is empty when a department has none; don't reserve its 24px */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .form-group:has(> .custom_fields:empty) { display: none; }
/* Submit: clear of the recipient area */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket > button[type="submit"] { margin-top: 0.25rem; }
@media (prefers-reduced-motion: reduce) { body:is([class*="client_tickets-add"], [class*="client_tickets-reply"]) #create_ticket .dz-message { transition: none; } }

/* "Copied to clipboard" bubble for the service-password Copy button (structure.pdt; one reusable element on <body>) */
.dnb-copy-flash {
  position: absolute;
  z-index: 1085;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  background: #07111f;
  color: #ffffff;
  border: 1px solid #07111f;
  box-shadow: 0 6px 18px -6px rgba(7, 17, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.dnb-copy-flash.is-below { transform: translateY(-4px); }
.dnb-copy-flash.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dnb-copy-flash i { font-size: 0.875rem; color: #4ade80; }
.dnb-copy-flash.is-error i { color: #fbbf24; }
html.theme-dark .dnb-copy-flash { background: #182841; border-color: #364a66; color: #eef2f7; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6); }
@media (prefers-reduced-motion: reduce) { .dnb-copy-flash, .dnb-copy-flash.is-below { transform: none; transition: none; } }
@media (forced-colors: active) { .dnb-copy-flash { border-color: CanvasText; } }

/* ---------- Quick Access on inner pages (structure.pdt #dnp-qa-template → .inner-page > .col-md-3 > .dnp-qa-inner) ----
   Same card as the dashboard (#my-info rules re-targeted): 16px below the page submenu, same footer padding. */
.app-main .inner-page > .col-md-3 > .dnp-qa-inner { margin-top: 1rem; }
.app-main .dnp-qa-inner > .card-blesta { margin-bottom: 0; }
/* Shared Quick Access actions (helpers/quick_access_card.php, dashboard + inner pages), 2026-10-08: one compact container,
   buttons stacked with a 12px gap, no separator rows. Scoped to .dnb-qa-actions only.
   2026-10-09: the action area takes the card-content colour every other card footer uses (--dnp-raised: #f7f8f9 light,
   #182841 dark), on this one container only (no nested panel, no divider), with the card's bottom radius. */
.card-blesta > .dnb-qa-actions { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem 1rem 1rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main .card-blesta > .dnb-qa-actions {
  background-color: var(--dnp-raised);
  border-radius: 0 0 var(--dnp-radius) var(--dnp-radius);
}
.card-blesta > .dnb-qa-actions > .btn,
.card-blesta > .dnb-qa-actions > .dnb-quick-access-dropdown > .btn { min-height: 2.25rem; margin: 0; }
.card-blesta > .dnb-qa-actions > .dnb-quick-access-dropdown { margin: 0; padding: 0; border: 0; }
@media (max-width: 768px) { .app-main .inner-page > .col-md-3 > .dnp-qa-inner { margin-bottom: 1rem; } }

/* ---------- Greeting banner (client dashboard; structure.pdt) ---------- */
.dnp-greet {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 1.25rem;
  padding: 1.75rem 2rem;
  border-radius: 8px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(75, 163, 239, 0.38) 0%, rgba(75, 163, 239, 0) 55%),
    linear-gradient(120deg, #07111f 0%, #0d2240 52%, #1f69b0 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px -26px rgba(7, 17, 31, 0.7);
}
html.theme-dark .dnp-greet { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 36px -26px rgba(0, 0, 0, 0.9); }
.dnp-greet { display: flex; align-items: center; justify-content: center; min-height: 7.25rem; text-align: center; }
.dnp-greet-text { position: relative; z-index: 2; max-width: 40rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-greet .dnp-greet-title {
  margin: 0;
  font-family: var(--dnp-font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  overflow-wrap: break-word; /* random greetings + long first names wrap instead of overflowing */
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-greet .dnp-greet-sub {
  margin: 0.5rem 0 0;
  font-size: 0.975rem;
  line-height: 1.5;
  color: rgba(226, 236, 248, 0.82) !important;
}
.dnp-greet-mark {
  position: absolute;
  z-index: 0;
  right: -1.05rem;   /* 2026-10-08: mark scaled to 70% (was 11rem / -1.5rem); same share of it bleeds off the edge */
  top: 50%;
  width: 7.7rem;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}
/* Perimeter light, ported 1:1 from denobulus.com (.dnb-tracer in the "Denobulus UI & motion" CSS + dnb-motion.js):
   seven stacked strokes on one rounded rect, pathLength 1000, 9 s linear loop; only stroke-dashoffset animates. */
.dnp-greet .dnp-tracer-svg {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  overflow: visible;
  pointer-events: none;
}
.dnp-tracer-svg rect { fill: none; stroke-linecap: round; animation: dnp-trace 9s linear infinite; }
.dnp-tracer-svg .dnp-tracer-trail { stroke: #79bbf4; stroke-opacity: 0.18; stroke-width: 1.5; stroke-dasharray: 40 960; }
.dnp-tracer-svg .dnp-tracer-tail { stroke: #9ccdf7; stroke-opacity: 0.35; stroke-width: 1.75; stroke-dasharray: 22 978; animation-delay: -0.162s; }
.dnp-tracer-svg .dnp-tracer-glow { stroke: #cfe7fc; stroke-opacity: 0.7; stroke-width: 2; stroke-dasharray: 9 991; animation-delay: -0.279s; }
.dnp-tracer-svg .dnp-tracer-halo { stroke: #4ba3ef; stroke-opacity: 0.07; stroke-width: 22; stroke-dasharray: 0.5 999.5; animation-delay: -0.3555s; }
.dnp-tracer-svg .dnp-tracer-bloom { stroke: #4ba3ef; stroke-opacity: 0.16; stroke-width: 13; stroke-dasharray: 0.5 999.5; animation-delay: -0.3555s; }
.dnp-tracer-svg .dnp-tracer-spark { stroke: #79bbf4; stroke-opacity: 0.4; stroke-width: 7; stroke-dasharray: 0.5 999.5; animation-delay: -0.3555s; }
.dnp-tracer-svg .dnp-tracer-core { stroke: #ffffff; stroke-width: 3; stroke-dasharray: 0.5 999.5; animation-delay: -0.3555s; }
@keyframes dnp-trace { to { stroke-dashoffset: -1000; } }
@media (prefers-reduced-motion: reduce) { .dnp-tracer-svg { display: none; } }
@media (forced-colors: active) { .dnp-tracer-svg { display: none; } }
@media print { .dnp-tracer-svg { display: none; } }
@media (max-width: 575.98px) {
  .dnp-greet { padding: 1.25rem 1.25rem; min-height: 5.75rem; }
  .dnp-greet-mark { width: 5.25rem; right: -1.225rem; opacity: 0.1; }   /* 70% of 7.5rem / -1.75rem */
}

/* ---------- Refer a Friend sidebar card (structure.pdt, #dnpRefer) ---------- */
.dnp-refer {
  position: relative;
  flex: 0 0 auto;
  margin: 0.5rem 0.75rem 0.75rem;
  padding: 0.875rem 0.875rem 0.875rem;
  border: 1px solid rgba(75, 163, 239, 0.28);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(75, 163, 239, 0.18) 0%, rgba(38, 121, 199, 0.07) 100%), var(--dnp-chrome-raised, #0e1a2e);
  color: var(--dnp-chrome-text, #e2e8f0);
}
html.dnp-refer-dismissed .dnp-refer { display: none !important; }
.dnp-refer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(75, 163, 239, 0.18);
  color: #79bbf4;
  font-size: 0.875rem;
}
.dnp-refer p { margin: 0; }
.dnp-refer .dnp-refer-title { font-size: 0.875rem; font-weight: 600; color: #ffffff; line-height: 1.3; }
.dnp-refer .dnp-refer-text { margin-top: 0.25rem; font-size: 0.78rem; line-height: 1.45; color: #a9b6c8; }
.dnp-refer .dnp-refer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  background: #2679c7;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.dnp-refer .dnp-refer-cta:hover { background: #1f69b0; }
.dnp-refer .dnp-refer-cta:focus-visible { outline: 2px solid #79bbf4; outline-offset: 2px; }
.dnp-refer .dnp-refer-close {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.dnp-refer .dnp-refer-close:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.dnp-refer .dnp-refer-close:focus-visible { outline: 2px solid #79bbf4; outline-offset: 1px; color: #ffffff; }
/* Win over the legacy light-sidebar link/icon colours in custom.css (aside.app-sidebar a, i {… !important}) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-icon, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-icon i { color: #79bbf4 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-title { color: #ffffff !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-text { color: #a9b6c8 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer a.dnp-refer-cta, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer a.dnp-refer-cta:hover, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer a.dnp-refer-cta:focus, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer a.dnp-refer-cta span { color: #ffffff !important; text-decoration: none !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-close, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-close i { color: #94a3b8 !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-close:is(:hover, :focus-visible), :is(html.theme-light, html.theme-dark) body:not(.dnp-off) aside.app-sidebar .dnp-refer .dnp-refer-close:is(:hover, :focus-visible) i { color: #ffffff !important; }
/* Collapsed rail (desktop): no room for a card */
@media (min-width: 1025px) { .app-shell.sidebar-collapsed .dnp-refer { display: none; } }
/* Short windows: keep every navigation item reachable before showing a promotion */
@media (max-height: 600px) { .dnp-refer { display: none; } }
@media (prefers-reduced-motion: reduce) { .dnp-refer .dnp-refer-cta, .dnp-refer .dnp-refer-close { transition: none; } }

/* ---------- "Get Rewarded" header CTA (structure.pdt .dnp-reward-cta) ---------- */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header a.dnp-reward-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background-color: #2679c7 !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(75, 163, 239, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header a.dnp-reward-cta i { color: inherit !important; font-size: 0.95rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header a.dnp-reward-cta:hover { background-color: #1f69b0 !important; box-shadow: 0 4px 8px rgba(75, 163, 239, 0.35); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header a.dnp-reward-cta:focus-visible { outline: 2px solid #79bbf4; outline-offset: 2px; }
@media (max-width: 991.98px) {
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-content-header a.dnp-reward-cta { width: 40px; height: 40px; padding: 0; }
  .app-content-header a.dnp-reward-cta .dnp-reward-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
@media (prefers-reduced-motion: reduce) { .app-content-header a.dnp-reward-cta { transition: none; } }
/* Gift wiggle, shared by every referral gift icon (2026-10-10): ~0.75 s of small left/right turns + 2 px hop, then
   still for the rest of a 12 s cycle (one brief wiggle every 12 s, never continuous). Transform-only on an inline-block
   icon → no layout shift, compositor-only. Paused while the control is hovered/focused; off for reduced motion.
   Header CTA starts at 2.5 s, the sidebar card at 8.5 s, so the two never move at the same moment. */
.app-content-header a.dnp-reward-cta > i.fa-gift,
.dnp-refer .dnp-refer-icon > i.fa-gift {
  display: inline-block;
  transform-origin: 50% 85%;
  animation: dnp-gift-rattle 12s ease-in-out 2.5s infinite;
}
.dnp-refer .dnp-refer-icon > i.fa-gift { animation-delay: 8.5s; }
@keyframes dnp-gift-rattle {
  0%, 6.25%, 100% { transform: none; }
  0.8%  { transform: translateY(-1px) rotate(-12deg); }
  1.6%  { transform: translateY(-2px) rotate(10deg); }
  2.5%  { transform: translateY(-2px) rotate(-9deg); }
  3.3%  { transform: translateY(-1px) rotate(7deg); }
  4.2%  { transform: translateY(-1px) rotate(-5deg); }
  5.2%  { transform: rotate(3deg); }
}
.app-content-header a.dnp-reward-cta:is(:hover, :focus-visible) > i.fa-gift,
.dnp-refer:is(:hover, :focus-within) .dnp-refer-icon > i.fa-gift { animation-play-state: paused; }
/* Phones/tablets: the sidebar (and its card) is off-canvas until opened, so only animate while it is open.
   Dismissed / collapsed / short-screen cards are display:none above, which stops the animation by itself. */
@media (max-width: 1024px) {
  .app-shell:not(.app-sidebar-mobile-open) .dnp-refer .dnp-refer-icon > i.fa-gift { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-content-header a.dnp-reward-cta > i.fa-gift,
  .dnp-refer .dnp-refer-icon > i.fa-gift { animation: none; }
}

/* ---------- Refer a Friend pages (order plugin affiliate views are stock; styled here) ---------- */
.dnp-ref-intro {
  margin: 0 0 1.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--dnp-border);
  border-radius: 8px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(75, 163, 239, 0.14) 0%, rgba(75, 163, 239, 0) 60%),
    var(--dnp-surface);
  box-shadow: var(--dnp-shadow);
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-ref-intro .dnp-ref-eyebrow { margin: 0 0 0.375rem; color: var(--dnp-link) !important; font-size: 0.8125rem; font-weight: 600; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-ref-intro .dnp-ref-eyebrow i { margin-right: 0.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-ref-intro .dnp-ref-title {
  margin: 0;
  font-family: var(--dnp-font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dnp-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-ref-intro .dnp-ref-lead { margin: 0.5rem 0 0; max-width: 44rem; color: var(--dnp-muted) !important; font-size: 0.975rem; line-height: 1.55; }
.dnp-ref-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.dnp-ref-steps li { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; border: 1px solid var(--dnp-border); border-radius: 6px; background: var(--dnp-raised); color: var(--dnp-muted); font-size: 0.875rem; line-height: 1.4; }
.dnp-ref-steps strong { color: var(--dnp-text); font-weight: 600; }
.dnp-ref-step-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; background: var(--dnp-tint); color: var(--dnp-link); }
@media (max-width: 767.98px) {
  .dnp-ref-intro { padding: 1.25rem; }
  .dnp-ref-steps { grid-template-columns: 1fr; }
}
/* Signup box: Blesta's program text + enrollment button, centred and readable */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form > p { max-width: 46rem; margin-left: auto; margin-right: auto; color: var(--dnp-muted); line-height: 1.6; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form > p.text-center { margin-top: 1rem; margin-bottom: 0.25rem; }
/* Signup form only (the one ending in the centred enrollment button): one centred ~960px column. Program text and rules
   list share its left edge and rhythm; the support line just above the button is centred with it. (2026-10-10) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) { max-width: 60rem; margin-left: auto; margin-right: auto; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) > :is(p, ul, ol) { max-width: none; margin: 0 0 1rem; color: var(--dnp-muted); line-height: 1.6; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) > :is(ul, ol) { padding-left: 1.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) > :is(ul, ol) > li + li { margin-top: 0.375rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) > p:has(+ p.text-center) { text-align: center; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates form:has(> p.text-center) > p.text-center { margin: 1.25rem 0 0.25rem; }
/* Overview: stat boxes in the dashboard stat-card language (quiet surface, coloured top rule) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes { row-gap: 1rem; margin-bottom: 1.5rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card {
  height: 100%;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--dnp-border) !important;
  border-top: 3px solid var(--dnp-aff, #2679c7) !important;
  border-radius: 8px;
  background: var(--dnp-surface) !important;
  color: var(--dnp-text) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card.bg-success { --dnp-aff: #1f9d55; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card.bg-info { --dnp-aff: #2679c7; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card.bg-warning { --dnp-aff: #d97706; }
html.theme-dark body:not(.dnp-off) .affiliate_boxes .card.bg-success { --dnp-aff: #4ade80; }
html.theme-dark body:not(.dnp-off) .affiliate_boxes .card.bg-info { --dnp-aff: #79bbf4; }
html.theme-dark body:not(.dnp-off) .affiliate_boxes .card.bg-warning { --dnp-aff: #fbbf24; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card p { margin: 0; color: var(--dnp-muted) !important; font-size: 0.8125rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card p:first-child { font-weight: 600; color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .affiliate_boxes .card h2 { margin: 0.375rem 0 0.25rem; font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates h4 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; color: var(--dnp-text) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates #request-payout { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates .card.bg-light:has(.referral_link) {
  margin-top: 0;
  border: 1px solid var(--dnp-border) !important;
  border-radius: 8px;
  background: var(--dnp-raised) !important;
}
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates .card:has(.referral_link) .martop10 { margin-top: 0.75rem; color: var(--dnp-text); font-size: 0.875rem; line-height: 1.55; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #affiliates .dnp-ref-tip { display: block; margin-top: 0.375rem; color: var(--dnp-subtle); font-size: 0.78rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-copy-group { flex-wrap: nowrap; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-copy-group .referral_link { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .dnp-copy-group .dnp-copy-link { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }

/* ---------- Motion ---------- */
/* CTA sheen (same treatment as denobulus.com .dnb-sheen): a brief light sweep every 10 s, under the label.
   .dnb-sf-cta = the five /order/forms/ storefront buttons (stock forms.pdt markup, styled here, not edited). */
.dnp-sheen, .dnb-cart-btn-checkout, .dnb-sf-cta { position: relative; isolation: isolate; overflow: hidden; }
.dnp-sheen::before, .dnb-cart-btn-checkout::before, .dnb-sf-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 15%, rgba(214, 236, 255, 0.3) 50%, rgba(255, 255, 255, 0) 85%);
  transform: translateX(-110%);
  animation: dnp-sheen 10s cubic-bezier(0.45, 0, 0.25, 1) 2.5s infinite;
}
@keyframes dnp-sheen { 0% { transform: translateX(-110%); } 11%, 100% { transform: translateX(330%); } }
/* Landing header enters once; theme changes ease surfaces instead of snapping */
.dnp-landing, .dnp-quick, .dnp-greet { animation: dnp-enter 0.45s var(--dnp-ease) both; }
.dnp-quick { animation-delay: 0.06s; }
@keyframes dnp-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.dnp-theme-switching body,
html.dnp-theme-switching .app-main .card,
html.dnp-theme-switching .app-main .card > .card-header,
html.dnp-theme-switching .list-group-item,
html.dnp-theme-switching .form-control {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  .dnp-sheen::before, .dnb-cart-btn-checkout::before, .dnb-sf-cta::before { display: none; }
  .dnp-landing, .dnp-quick, .dnp-greet { animation: none; }
  .dnp-quick a:hover, :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .portal-box a:hover .card { transform: none; }
  html.dnp-theme-switching * { transition: none !important; }
}
@media (forced-colors: active) { .dnp-sheen::before, .dnb-cart-btn-checkout::before, .dnb-sf-cta::before { display: none; } }
@media print { .dnp-sheen::before, .dnb-cart-btn-checkout::before, .dnb-sf-cta::before { display: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  .dnp-landing { padding: 1.25rem; }
  .dnp-landing-actions, .dnp-landing-actions .btn { width: 100%; }
  .dnp-landing-actions .btn { justify-content: center; }
  .dnp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dnp-footer { justify-content: center; text-align: center; }
  .dnp-footer nav { justify-content: center; }
}

/* Denobulus 2026-10-11: free registration form (/order/signup/index/register, Blesta's stock "standard" order template)
   aligned with the denobulus_standard checkout sign-up — update-safe, scoped to that form only, no template edits. */
.signup_form form[action$="/order/signup/index/register"] {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
.signup_form form[action$="/order/signup/index/register"] > * { grid-column: 1 / -1; min-width: 0; }
.signup_form form[action$="/order/signup/index/register"] .form-group { margin-bottom: 1rem; }
.signup_form form[action$="/order/signup/index/register"] .form-group > label:not(.inline) { display: block; margin-bottom: 0.375rem; font-weight: 600; font-size: 0.875rem; }
.signup_form form[action$="/order/signup/index/register"] h4 { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; padding: 0; border: 0 !important; }
.signup_form form[action$="/order/signup/index/register"] > hr { border: 0; border-top: 1px solid var(--dnp-border, #dee2e6) !important; margin: 0.25rem 0 1.25rem; opacity: 1 !important; }
.signup_form form[action$="/order/signup/index/register"] .alert { margin-bottom: 1rem !important; }
.signup_form form[action$="/order/signup/index/register"] .form-group.well { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0; margin: 0.25rem 0 0.5rem; background: none; border: 0; box-shadow: none; }
.signup_form form[action$="/order/signup/index/register"] .form-group.well input[type="checkbox"] { margin-top: 0.2rem; flex: 0 0 auto; }
.signup_form form[action$="/order/signup/index/register"] .form-group.well label { margin: 0; font-weight: 400; }
/* footer (2026-10-11 rev.): one compact row — CAPTCHA, Create account 18px to its right, Terms notice right-aligned and
   vertically centred. DOM order stays CAPTCHA → notice → button (dense grid placement puts the button in column 2). */
.signup_form form[action$="/order/signup/index/register"] { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 1.125rem; grid-auto-flow: row dense; }
.signup_form form[action$="/order/signup/index/register"] > .row:has(.form-group.well) .form-group.well { margin-bottom: 0; }
.signup_form form[action$="/order/signup/index/register"] > .row:last-of-type { margin-bottom: 0; }
.signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 1; padding: 0; margin: 1rem 0 0; display: flex; align-items: center; align-self: center; min-height: 0; }
.signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 3; align-self: center; margin: 1rem 0 0; clear: none; }
.signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg .dnb-terms-notice { text-align: right; margin: 0 0 0 auto; max-width: 30rem; }
.signup_form form[action$="/order/signup/index/register"] > button[type="submit"] {
  grid-column: 2; justify-self: start; align-self: center; width: auto !important; margin: 1rem 0 0; float: none !important; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.625rem 1.25rem; font-weight: 600;
  background-color: var(--dnp-cta, #1d6fd1) !important; border-color: var(--dnp-cta, #1d6fd1) !important; color: var(--dnp-on-cta, #fff) !important; }
.signup_form form[action$="/order/signup/index/register"] > button[type="submit"] :is(i, span, svg) { color: var(--dnp-on-cta, #fff) !important; }
.signup_form form[action$="/order/signup/index/register"] > button[type="submit"]:hover,
.signup_form form[action$="/order/signup/index/register"] > button[type="submit"]:focus-visible { background-color: var(--dnp-cta-hover, #175bb0) !important; border-color: var(--dnp-cta-hover, #175bb0) !important; }
@media (max-width: 991.98px) {
  /* CAPTCHA + button stay side by side; the notice moves to its own line */
  .signup_form form[action$="/order/signup/index/register"] { grid-template-columns: auto minmax(0, 1fr); }
  .signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 1 / -1; margin-top: 0.75rem; }
  .signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg .dnb-terms-notice { text-align: left; margin: 0; max-width: none; }
}
@media (max-width: 575.98px) {
  /* phones: CAPTCHA, Terms notice, full-width button */
  .signup_form form[action$="/order/signup/index/register"] { grid-template-columns: minmax(0, 1fr); }
  .signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 1; max-width: 100%; overflow-x: auto; }
  .signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 1; margin-top: 0.75rem; }
  .signup_form form[action$="/order/signup/index/register"] > button[type="submit"] { grid-column: 1; justify-self: stretch; width: 100% !important; justify-content: center; margin-top: 0.75rem; }
}
/* storefront social block (stock-template order pages too): no "Continue with" label; the login page keeps its own */
body[class*="plugin-orderclient-"] .dnb-sa-label { display: none !important; }


/* ==========================================================================================================
   Denobulus 2026-10-11: service-category accents (owner palette; originals recorded in the customization register).
   One token per category, in a light-surface shade (>= 3:1 on white for icons/indicators) and a dark-surface shade
   (for the navy sidebar and dark mode). Buttons, checkout controls, backgrounds and status colours are NOT changed.
   ========================================================================================================== */
:root {
  --dnb-cat-hosting: #2688D8;   --dnb-cat-hosting-light: #2688D8;   --dnb-cat-hosting-dark: #5AA9EC;
  --dnb-cat-wordpress: #16A6B6; --dnb-cat-wordpress-light: #11808C; --dnb-cat-wordpress-dark: #3CC4D3;
  --dnb-cat-domains: #27AE70;   --dnb-cat-domains-light: #1E8A57;   --dnb-cat-domains-dark: #4CCB8C;
  --dnb-cat-design: #E59A38;    --dnb-cat-design-light: #A8661A;    --dnb-cat-design-dark: #F0B25E;
  --dnb-cat-care: #9564D8;      --dnb-cat-care-light: #8352CC;      --dnb-cat-care-dark: #B08CEA;
}
/* category hooks: each sets --dnb-cat-fg (surface-appropriate shade) for its element */
.dnb-cat-hosting   { --dnb-cat-fg: var(--dnb-cat-hosting-light); }
.dnb-cat-wordpress { --dnb-cat-fg: var(--dnb-cat-wordpress-light); }
.dnb-cat-domains   { --dnb-cat-fg: var(--dnb-cat-domains-light); }
.dnb-cat-design    { --dnb-cat-fg: var(--dnb-cat-design-light); }
.dnb-cat-care      { --dnb-cat-fg: var(--dnb-cat-care-light); }

/* 1) Sidebar (navy in both themes → dark-surface shades), matched by the category link target */
.app-sidebar .app-sidebar-nav-link:is([href*="/order/main/packages/hosting/"], [href*="/order/main/index/hosting"]) { --dnb-cat-fg: var(--dnb-cat-hosting-dark); }
.app-sidebar .app-sidebar-nav-link[href*="/managed-wordpress"] { --dnb-cat-fg: var(--dnb-cat-wordpress-dark); }
.app-sidebar .app-sidebar-nav-link:is([href*="/preconfig/domains"], [href*="/order/main/index/domains"]) { --dnb-cat-fg: var(--dnb-cat-domains-dark); }
.app-sidebar .app-sidebar-nav-link:is([href*="/order/main/packages/websites/"], [href*="/order/main/index/websites"]) { --dnb-cat-fg: var(--dnb-cat-design-dark); }
.app-sidebar .app-sidebar-nav-link[href*="/website-care"] { --dnb-cat-fg: var(--dnb-cat-care-dark); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar .app-sidebar-nav-link[href*="/order/"]:is([href*="hosting"], [href*="managed-wordpress"], [href*="domains"], [href*="websites"], [href*="website-care"]) i,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar .app-sidebar-nav-link[href*="/order/"]:is([href*="hosting"], [href*="managed-wordpress"], [href*="domains"], [href*="websites"], [href*="website-care"]):hover i,
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/order/"]:is([href*="hosting"], [href*="managed-wordpress"], [href*="domains"], [href*="websites"], [href*="website-care"]) i { color: var(--dnb-cat-fg) !important; }
/* active category: coloured indicator bar on the left (the active background highlight remains, so colour is not the only cue) */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-sidebar .app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/order/"]:is([href*="hosting"], [href*="managed-wordpress"], [href*="domains"], [href*="websites"], [href*="website-care"]) {
  box-shadow: inset 3px 0 0 var(--dnb-cat-fg) !important; }

/* 2) Storefront cards (/order/forms/ and order-form index cards): icon, watermark, ticks and a thin top rule.
   The CTA keeps the brand blue (rule above). */
body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/hosting"]) { --dnb-cat-fg: var(--dnb-cat-hosting-light); }
body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/managed-wordpress"], a[href*="/order/main/packages/managed-wordpress"]) { --dnb-cat-fg: var(--dnb-cat-wordpress-light); }
body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/domains"], a[href*="/order/config/preconfig/domains"]) { --dnb-cat-fg: var(--dnb-cat-domains-light); }
body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/websites"], a[href*="/order/main/packages/websites"]) { --dnb-cat-fg: var(--dnb-cat-design-light); }
body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/website-care"], a[href*="/order/main/packages/website-care"]) { --dnb-cat-fg: var(--dnb-cat-care-light); }
html.theme-dark body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/hosting"]) { --dnb-cat-fg: var(--dnb-cat-hosting-dark); }
html.theme-dark body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/managed-wordpress"], a[href*="/order/main/packages/managed-wordpress"]) { --dnb-cat-fg: var(--dnb-cat-wordpress-dark); }
html.theme-dark body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/domains"], a[href*="/order/config/preconfig/domains"]) { --dnb-cat-fg: var(--dnb-cat-domains-dark); }
html.theme-dark body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/websites"], a[href*="/order/main/packages/websites"]) { --dnb-cat-fg: var(--dnb-cat-design-dark); }
html.theme-dark body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card):has(a[href*="/order/main/index/website-care"], a[href*="/order/main/packages/website-care"]) { --dnb-cat-fg: var(--dnb-cat-care-dark); }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card)[class]:has(a[href*="/order/"]) :is(.dnb-sf-icon-wrap, .dnb-store-card-icon-wrap)[style*="--dnb-accent"] { --dnb-accent: var(--dnb-cat-fg, #2679c7) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card)[class] :is(.dnb-sf-watermark, .dnb-store-card-watermark) { color: var(--dnb-cat-fg, currentColor) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) :is(.dnb-sf-card, .dnb-store-card)[class] :is(.dnb-sf-features, .dnb-store-card-features) li .fa-check { color: var(--dnb-cat-fg, var(--dnp-link)) !important; }
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main :is(.dnb-sf-card, .dnb-store-card)[class]:has(a[href*="/order/"]) { border-top: 3px solid var(--dnb-cat-fg, var(--dnp-border)) !important; }

/* 3) Order pages of a category (detected from the active sidebar category): thin accent on the main card heading */
body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link:is([href*="/order/main/packages/hosting/"], [href*="/order/main/index/hosting"])) .app-main { --dnb-cat-fg: var(--dnb-cat-hosting-light); }
body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/managed-wordpress"]) .app-main { --dnb-cat-fg: var(--dnb-cat-wordpress-light); }
body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/preconfig/domains"]) .app-main { --dnb-cat-fg: var(--dnb-cat-domains-light); }
body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/order/main/packages/websites/"]) .app-main { --dnb-cat-fg: var(--dnb-cat-design-light); }
body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/website-care"]) .app-main { --dnb-cat-fg: var(--dnb-cat-care-light); }
html.theme-dark body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link:is([href*="/order/main/packages/hosting/"], [href*="/order/main/index/hosting"])) .app-main { --dnb-cat-fg: var(--dnb-cat-hosting-dark); }
html.theme-dark body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/managed-wordpress"]) .app-main { --dnb-cat-fg: var(--dnb-cat-wordpress-dark); }
html.theme-dark body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/preconfig/domains"]) .app-main { --dnb-cat-fg: var(--dnb-cat-domains-dark); }
html.theme-dark body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/order/main/packages/websites/"]) .app-main { --dnb-cat-fg: var(--dnb-cat-design-dark); }
html.theme-dark body[class*="plugin-orderclient-"]:has(.app-sidebar-nav-item.active > .app-sidebar-nav-link[href*="/website-care"]) .app-main { --dnb-cat-fg: var(--dnb-cat-care-dark); }
:is(html.theme-light, html.theme-dark) body[class*="plugin-orderclient-"]:not(.dnp-off) .app-main:is([style], :not([style])) > .row .card:not(.card-steps):first-of-type > .card-header {
  box-shadow: inset 3px 0 0 var(--dnb-cat-fg, transparent); }

/* Denobulus 2026-10-11 final: free registration footer — row 1: Create account, then the CAPTCHA 18px to its right;
   row 2: the Terms notice (12px muted, left-aligned, 8px below). Phones: CAPTCHA → notice → full-width button.
   DOM order stays CAPTCHA → notice → button: the CAPTCHA takes column 2, the notice the next full row, and dense
   placement back-fills the button into column 1 of the CAPTCHA row. Supersedes the three-column rev. above. */
.signup_form form[action$="/order/signup/index/register"] { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 1.125rem; row-gap: 0; grid-auto-flow: row dense; align-items: center; }
.signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 2; justify-self: start; align-self: center; margin: 1rem 0 0; padding: 0; max-width: 100%; }
.signup_form form[action$="/order/signup/index/register"] > button[type="submit"] { grid-column: 1; justify-self: start; align-self: center; width: auto !important; margin: 1rem 0 0; }
.signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 1 / -1; justify-self: start; align-self: start; margin: 0.5rem 0 0; }
.signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg .dnb-terms-notice { margin: 0; max-width: 38rem; text-align: left; font-size: 0.75rem; line-height: 1.5; color: var(--dnp-muted, #64748b); text-wrap: pretty; }
.signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg .dnb-terms-notice a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 575.98px) {
  .signup_form form[action$="/order/signup/index/register"] { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 1; margin-top: 0.75rem; }
  .signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 1; margin-top: 0.625rem; }
  .signup_form form[action$="/order/signup/index/register"] > button[type="submit"] { grid-column: 1; justify-self: stretch; width: 100% !important; justify-content: center; margin-top: 0.625rem; }
}
/* the generic Turnstile margin (line ~614) would add 20px inside the footer row; the row spacing handles it here */
.signup_form form[action$="/order/signup/index/register"] > .col-md-12 .cf-turnstile { margin: 0; width: auto; justify-content: flex-start; }
/* small tablets: button + 300px Turnstile need ~480px of form width; below 640px viewport use the stacked phone order */
@media (min-width: 576px) and (max-width: 639.98px) {
  .signup_form form[action$="/order/signup/index/register"] { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 1; margin-top: 0.75rem; }
  .signup_form form[action$="/order/signup/index/register"] > .dnb-terms-reg { grid-column: 1; margin-top: 0.625rem; }
  .signup_form form[action$="/order/signup/index/register"] > button[type="submit"] { grid-column: 1; justify-self: stretch; width: 100% !important; justify-content: center; margin-top: 0.625rem; }
}
/* 2026-10-11 owner preference: Turnstile LEFT, Create account RIGHT (>=640px); notice stays below; <640px unchanged */
@media (min-width: 640px) {
  .signup_form form[action$="/order/signup/index/register"] > .col-md-12 { grid-column: 1; }
  .signup_form form[action$="/order/signup/index/register"] > button[type="submit"] { grid-column: 2; }
}
/* 2026-10-11: free registration Contact Information — First | Last (50/50), Email full width; stacked below 768px.
   The stock markup wraps First+Last in one col-md-6 and Email in another; the two wrappers are flattened (display:
   contents) into a 2-column grid. Field names, IDs, labels and validation are untouched. */
.signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; margin-left: 0; margin-right: 0; }
.signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) > [class*="col-"] { padding-left: 0; padding-right: 0; max-width: none; }
.signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) > .col-md-6 { display: contents; }
@media (min-width: 768px) {
  .signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) > .col-md-12,
  .signup_form form[action$="/order/signup/index/register"] > .row:has(#first_name) .form-group:has(#email) { grid-column: 1 / -1; }
}

/* ---------- Global fluid layout + collapsed rail refinement (2026-10-12, owner request) ----------------------------
   ROOT CAUSE: custom.css `body:not(.login-page) .app-main { max-width: 2000px; margin: 0 auto }` capped and centred the
   content column on every signed-in page (2560px screen: 2000px column, ~150px empty each side). The content now fills
   the space beside the sidebar; custom.css keeps the padding (24px desktop, 16px small screens) and margin-left follows
   the sidebar width variable, so expanding/collapsing the rail resizes the content automatically. Long text stays
   readable through the per-component limits below; forms/cards keep their own grid columns. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):not(.login-page) .app-main {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
/* Readable measure for running text that would otherwise span the full width on very wide screens */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-main :is(.dnp-landing-lead, .card-body > p, .alert p) {
  max-width: 90ch;
}
/* Form and reading pages keep a comfortable width (left-aligned, 1320px = Bootstrap xxl container): profile, contacts,
   payment-method and manager forms, open/reply ticket (avatar column + reply text), Knowledge Base article.
   Lists, tables, the dashboard, services/invoices/domains and every order page use the full width. */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off):is(.client-client_main-edit, .client-client_contacts-add,
  .client-client_contacts-edit, .client-client_accounts-add, .client-client_accounts-addcc, .client-client_accounts-addach,
  .client-client_accounts-editcc, .client-client_accounts-editach, .client-client_accounts-verifyach,
  .client-client_managers-add, .client-client_managers-edit, .plugin-support_managerclient-client_tickets-add,
  .plugin-support_managerclient-client_tickets-reply, .plugin-support_managerclient-knowledgebase-view) .app-main > .inner-page {
  max-width: 1320px;
}

/* Collapsed desktop rail (56px, unchanged): 44 x 42px targets centred with a 6px inset, larger icons, 4px spacing.
   Labels stay in the accessibility tree (visually hidden instead of display:none), so icon-only links keep their
   names; the existing [data-tip] tooltips remain the visual label on hover/focus. */
@media (min-width: 1025px) {
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar > .app-sidebar-nav,
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-utilities .app-sidebar-nav,
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-bottom .app-sidebar-nav { padding-left: 6px !important; padding-right: 6px !important; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-item + .app-sidebar-nav-item { margin-top: 4px; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-link {
    width: 44px; min-height: 42px; height: 42px; margin: 0 auto; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
  }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-link > i:first-child {
    font-size: 1.0625rem; width: 1.25em; text-align: center; margin: 0; line-height: 1;
  }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-link > span {
    display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar .app-sidebar-nav-link:focus-visible {
    outline: 2px solid #79bbf4; outline-offset: 1px;
  }
  .app-shell.sidebar-collapsed .dnp-order-cta-wrap { padding: 0.75rem 6px 0.5rem; }
  :is(html.theme-light, html.theme-dark) body:not(.dnp-off) .app-shell.sidebar-collapsed aside.app-sidebar a.dnp-order-cta { width: 44px; min-height: 42px; height: 42px; }
}

/* Denobulus 2026-10-11: Website Care application form (plugin denobulus_website_care, view client_main_apply.pdt) —
   theme.css sets .text-secondary to #cbd5e1, nearly invisible on white; legends were 10px (fs-6). Scoped to .dnb-wc so
   the rest of the portal is unchanged. The staff-preview submit button keeps Bootstrap's disabled look. */
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-wc .text-secondary { color: var(--dnp-muted, #475569) !important; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-wc legend.form-label { font-size: 0.875rem !important; font-weight: 600; color: var(--dnp-text, #07111f); margin-bottom: 0.375rem; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-wc .form-check-label { color: var(--dnp-text, #07111f); }
.dnb-wc .form-control::placeholder { color: var(--dnp-subtle, #64748b); opacity: 1; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-wc .dnb-terms-notice { color: var(--dnp-muted, #475569) !important; }
.dnb-wc .btn[disabled] { cursor: not-allowed; }

/* Denobulus 2026-10-11: dashboard Contacts card — its list sits directly on the separate "Add Contact" footer, so square
   the list's bottom corners (the global .list-group radius rule rounds them). Scoped to the one .list-group followed by
   the footer holding the contacts/add link (#my-info is the whole sidebar column with other list-groups). */
:is(html.theme-light, html.theme-dark) body:not(.dnp-off) #my-info .card > .list-group:has(+ .card-footer a[href*="contacts/add"]) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Denobulus 2026-10-11: saved payment methods (/client/accounts/) — each method as a card-shaped visual (credit-card
   proportions, Denobulus navy gradient, chip, brand mark, masked number, holder, expiry) beside its status and actions.
   Uses only the masked data the view already receives; actions/forms unchanged. */
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-payment-card.dnb-pm { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: center; gap: 1.5rem; padding: 1.25rem; border: 1px solid var(--dnp-border, #e2e8f0); border-radius: var(--dnp-radius, 8px);
  background: var(--dnp-surface, #fff); box-shadow: none; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-payment-card.dnb-pm:hover { border-color: var(--dnp-border-strong, #cbd5e1); box-shadow: none; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-payment-card.dnb-pm.dnb-payment-card-default { border-color: var(--dnp-link, #1d64b8); box-shadow: 0 0 0 1px var(--dnp-link, #1d64b8) inset; }
.dnb-pm-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 20rem;
  aspect-ratio: 1.586; padding: 1.125rem 1.25rem; border-radius: 12px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(121, 187, 244, 0.28) 0%, rgba(121, 187, 244, 0) 55%),
              linear-gradient(135deg, #07111f 0%, #0d2142 55%, #163e74 100%);
  box-shadow: 0 10px 24px -12px rgba(7, 17, 31, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dnb-pm-visual::after { content: ""; position: absolute; inset: auto -15% -45% 30%; height: 80%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent); pointer-events: none; }
.dnb-pm-visual--ach { background: linear-gradient(135deg, #0b1b33 0%, #12304f 60%, #1b4a6e 100%); }
.dnb-pm-visual-top { display: flex; align-items: center; justify-content: space-between; }
.dnb-pm-chip { width: 2.375rem; height: 1.75rem; border-radius: 0.375rem;
  background: linear-gradient(135deg, #d9c27a 0%, #f3e3a8 45%, #b9974a 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); position: relative; }
.dnb-pm-chip::before, .dnb-pm-chip::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, 0.22); }
.dnb-pm-chip::before { top: 33%; } .dnb-pm-chip::after { top: 66%; }
.dnb-pm-bank { font-size: 1.25rem; opacity: 0.9; }
.dnb-pm-logo { font-size: 2.25rem; line-height: 1; color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.dnb-pm-logo:not(:has(i)) { font-size: 0.9375rem; text-transform: uppercase; }
.dnb-pm-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.125rem; letter-spacing: 0.12em; white-space: nowrap; }
.dnb-pm-visual-bottom { display: flex; justify-content: space-between; gap: 0.75rem; }
.dnb-pm-field { display: flex; flex-direction: column; min-width: 0; }
.dnb-pm-field--end { text-align: right; flex: 0 0 auto; }
.dnb-pm-lbl { font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.dnb-pm-val { font-size: 0.875rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnb-pm-info { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) h4.dnb-pm-title { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--dnp-text, inherit); }
.dnb-pm-status { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dnb-pm-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.dnb-pm-pill--default { background: color-mix(in srgb, var(--dnp-link, #1d64b8) 12%, transparent); color: var(--dnp-link, #1d64b8); }
.dnb-pm-pill--on { background: #dcfce7; color: #166534; }
.dnb-pm-pill--off { background: var(--dnp-raised, #f1f5f9); color: var(--dnp-muted, #475569); }
html.theme-dark .dnb-pm-pill--on { background: rgba(74, 222, 128, 0.16); color: #86efac; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-pm .dnb-payment-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.dnb-pm .dnb-payment-card-actions .btn { margin: 0; }
@media (max-width: 767.98px) {
  :is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-payment-card.dnb-pm { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .dnb-pm-visual { max-width: 22rem; }
}
@media (max-width: 380px) { .dnb-pm-number { font-size: 1rem; letter-spacing: 0.08em; } .dnb-pm-logo { font-size: 1.875rem; } }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .card-body h4.dnb-pm-title { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
/* Denobulus 2026-10-11: card brand comes from the saved account's Blesta type code (client_accounts.pdt). Unknown/"other"
   type → neutral graphite card with a generic card glyph; brands without a logo glyph show their name as text. */
.dnb-pm-visual.dnb-pm-brand-generic { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%),
  linear-gradient(135deg, #1f2937 0%, #374151 55%, #4b5563 100%); }
.dnb-pm-logo .dnb-pm-logo-generic { font-size: 1.75rem; opacity: 0.85; }
/* 2026-10-12: Social Auth "Soon" badge — white on red (was #eef2f7 in dark mode, 4.3:1 at 9px) */
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .dnb-sa-badge { color: #fff !important; }
/* 2026-10-12: login card footer links (Reset My Password / Forgot My Username) #6c757d on #f9fafb = 4.49:1 → portal muted */
html:not(.theme-dark) body:not(.dnp-off) .tabler-login-page .card-footer a:not(:hover) { color: var(--dnp-muted, #475569); }
/* 2026-10-12: required-field marker + password minimum hint (structure.pdt script) */
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) span.dnb-req { margin-left: 0.2rem; color: #b91c1c; font-weight: 700; }
html.theme-dark body:not(.dnp-off) span.dnb-req { color: #fca5a5; }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) p.dnb-req-legend { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--dnp-muted, #475569); }
:is(html.theme-light, html.theme-dark, html) body:not(.dnp-off) .form-text.dnb-pw-hint { margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.4; color: var(--dnp-muted, #475569); }
