/* ==========================================================================
   HostElevate UI layer (v2.3) — loaded last, after hostelevate.css.

   1. Tokens               6. Cards, buttons, inputs (shared)
   2. Icon rail            7. Brand gradient + amber helpers
   3. Flyout panels        8. Phones / dark mode
   4. Top bar              9. Client area pages (v2.2): support PIN, dashboard,
   5. Page head & content     services, invoices, tickets, domains, product, invoice
                           10. Visitors, sign-in pages, profile picture, Resolution Center (v2.3)
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------------ */
:root {
    --he-rail-w: 118px;
    --he-fly-w: 264px;
    --he-topbar-h: 42px;
    --he-grad: linear-gradient(118deg, var(--he-grad-start, #032A1E) 0%, var(--he-grad-end, #0E7A58) 100%);
    --he-grad-soft: linear-gradient(118deg, rgba(3, 42, 30, .06), rgba(14, 122, 88, .10));
    --he-amber: var(--nx-accent, #F59E0B);
    --he-amber-ink: #3B2500;
    --he-card-border: var(--nx-border);
    --he-ink: var(--nx-text);
    --he-side-gap: 20px;
}
/* Tones for icon circles: one colour per kind of thing, always on a pale tint. */
.t-green, .is-green   { --he-tone: #0B7A55; --he-tone-bg: #E2F3EB; }
.t-blue, .is-blue     { --he-tone: #2457D6; --he-tone-bg: #E6EDFD; }
.t-amber, .is-amber   { --he-tone: #B45309; --he-tone-bg: #FDF1D8; }
.t-violet, .is-violet { --he-tone: #6D3FD8; --he-tone-bg: #EFE8FD; }
.t-red, .is-red       { --he-tone: #C2312B; --he-tone-bg: #FCE7E6; }

/* 2. Icon rail --------------------------------------------------------------- */
body.he-rail { --he-rail-w: 118px; }
body.he-rail .nx-app-layout { flex-direction: row !important; }
body.he-rail .he-rail-nav {
    position: fixed;
    z-index: 1045;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--he-rail-w);
    display: flex;
    flex-direction: column;
    background: var(--nx-sidebar-bg);
    border-right: 1px solid var(--nx-border);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .14) transparent;
}
body.he-rail .he-rail-nav::-webkit-scrollbar { width: 5px; }
body.he-rail .he-rail-nav::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 4px; }
body.he-rail .nx-main-area { margin-left: var(--he-rail-w); width: calc(100% - var(--he-rail-w)); }

.he-rail-logo {
    flex: 0 0 auto;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.he-rail-logo-img { max-width: 70px; max-height: 46px; width: auto; height: auto; display: block; }
.he-rail-logo-mark {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-grad); color: #fff; font-weight: 700; font-size: 20px;
}
html.nx-dark .he-rail-logo-img.nx-logo-light-mode,
html:not(.nx-dark) .he-rail-logo-img.nx-logo-dark-mode { display: none; }

.he-rail-list { display: flex; flex-direction: column; }
.he-rail-foot { margin-top: auto; padding-top: 6px; }

.he-rail-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: clamp(84px, 11.4vh, 104px);
    padding: 14px 8px;
    text-align: center;
    text-decoration: none !important;
    color: var(--nx-text) !important;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
    outline-offset: -3px;
}
.he-rail-ico,
.he-rail-item .material-symbols-rounded.he-rail-ico {
    font-size: 27px;
    line-height: 1;
    color: #5D6964;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    transition: color .15s ease;
}
.he-rail-item i.he-rail-ico { font-size: 22px; }
.he-rail-label {
    display: block;
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.32;
    font-weight: 400;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
.he-rail-item:hover,
.he-rail-item.is-open { background: var(--he-hover); }
.he-rail-item.is-active {
    background: var(--nx-primary-light);
    color: var(--nx-link) !important;
}
.he-rail-item.is-active .he-rail-ico { color: var(--nx-link); font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.he-rail-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--he-grad);
}
.he-rail-badge {
    position: absolute;
    top: 14px;
    left: calc(50% + 9px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--nx-danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 18px;
}
.he-rail-store .he-rail-ico { color: var(--nx-link); }

/* 3. Flyout panels ------------------------------------------------------------ */
.he-fly {
    position: fixed;
    z-index: 1044;
    top: 0;
    bottom: 0;
    left: var(--he-rail-w);
    width: var(--he-fly-w);
    display: flex;
    flex-direction: column;
    background: var(--nx-card-bg);
    border-right: 1px solid var(--nx-border);
    box-shadow: 18px 0 40px rgba(10, 25, 20, .08);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .14s ease, transform .14s ease;
}
.he-fly[hidden] { display: none; }
.he-fly.is-open { opacity: 1; transform: none; }
.he-fly-head {
    flex: 0 0 auto;
    padding: 30px 26px 16px;
    font-family: var(--nx-heading-font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--nx-text);
    letter-spacing: -0.005em;
}
.he-fly-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 14px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .18) transparent;
    overscroll-behavior: contain;
}
.he-fly-list::-webkit-scrollbar { width: 6px; }
.he-fly-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 4px; }
.he-fly-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 1px 0;
    border-radius: 9px;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--nx-text) !important;
    text-decoration: none !important;
    transition: background-color .12s ease, color .12s ease;
}
.he-fly-ico,
.he-fly-link .material-symbols-rounded.he-fly-ico {
    flex: 0 0 auto;
    font-size: 19px;
    color: #8A9590;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.he-fly-link i.he-fly-ico { font-size: 15px; width: 19px; text-align: center; }
.he-fly-text { flex: 1 1 auto; min-width: 0; }
.he-fly-badge {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--nx-danger); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
}
.he-fly-link:hover { background: var(--he-hover); }
.he-fly-link:hover .he-fly-ico { color: var(--nx-link); }
.he-fly-link.is-active { background: var(--nx-primary-light); color: var(--nx-link) !important; }
.he-fly-link.is-active .he-fly-ico { color: var(--nx-link); }
.he-fly-sep { margin: 10px 12px; border: 0; border-top: 1px solid var(--nx-border); }
.he-fly-scrim { position: fixed; inset: 0; z-index: 1043; background: transparent; }
.he-fly-scrim[hidden] { display: none; }

/* 4. Top bar ------------------------------------------------------------------ */
body.he-rail .nx-topbar,
body.he-rail.nx-theme .nx-topbar {
    height: var(--he-topbar-h);
    min-height: var(--he-topbar-h);
    padding: 0 40px;
    background: var(--he-topbar-bg, var(--nx-header-bg));
    border-bottom: 0;
    box-shadow: none;
    position: relative;
    top: auto;
}
body.he-rail.nx-header-sticky .nx-topbar { position: sticky; top: 0; }
body.he-rail .nx-topbar .nx-content-container { max-width: none; height: 100%; }
body.he-rail .nx-topbar .nx-topbar-right { gap: 6px; margin-left: auto; }
body.he-rail .nx-topbar .nx-topbar-link,
body.he-rail .nx-topbar .nx-sh-tb-btn,
body.he-rail .nx-topbar .nx-sh-acct-btn-g4,
body.he-rail .nx-topbar .nx-topbar-mode-toggle {
    height: 32px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 8px;
    color: var(--he-topbar-text, #fff) !important;
    font-size: 14px;
    font-weight: 500;
    background: transparent !important;
}
body.he-rail .nx-topbar .material-symbols-rounded,
body.he-rail .nx-topbar .nx-topbar-mode-toggle .material-symbols-rounded { color: var(--he-topbar-text, #fff) !important; font-size: 21px; }
body.he-rail .nx-topbar .nx-topbar-link:hover,
body.he-rail .nx-topbar .nx-sh-tb-btn:hover,
body.he-rail .nx-topbar .nx-sh-acct-btn-g4:hover,
body.he-rail .nx-topbar .nx-topbar-mode-toggle:hover { background: rgba(255, 255, 255, .10) !important; }
body.he-rail .nx-topbar .nx-sh-count-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    border: 2px solid var(--he-topbar-bg, #032A1E);
    background: var(--he-amber) !important;
    color: var(--he-amber-ink) !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
}
body.he-rail .nx-topbar .nx-sh-tb-cart .position-relative,
body.he-rail .nx-topbar .nx-sh-tb-btn .position-relative { display: inline-flex; margin-right: 4px; }
body.he-rail .nx-topbar .nx-user-avatar {
    width: 28px !important; height: 28px !important; min-width: 28px;
    font-size: 12px !important;
    background: rgba(255, 255, 255, .16) !important;
    color: var(--he-topbar-text, #fff) !important;
    border: 0 !important;
}
body.he-rail .nx-topbar .nx-topbar-divider { background: rgba(255, 255, 255, .18); height: 22px; }
body.he-rail .nx-topbar .nx-topbar-logo-mobile { display: none !important; }
body.he-rail .nx-topbar .nx-topbar-hamburger .material-symbols-rounded { color: var(--he-topbar-text, #fff) !important; }

/* Account menu: tall list, scrolls with the page like the bar itself */
body.he-rail .nx-topbar .dropdown-menu {
    margin-top: 8px !important;
    padding: 8px;
    min-width: 248px;
    border-radius: 14px;
    border: 1px solid var(--nx-border);
    box-shadow: 0 18px 44px rgba(10, 25, 20, .14);
}
body.he-rail .nx-topbar .nx-sh-acct-menu .dropdown-item,
body.he-rail .nx-topbar .nx-sh-acct-menu .nx-secondary-nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 9px; font-size: 14px !important; color: var(--nx-text);
}
body.he-rail .nx-topbar .nx-sh-acct-menu .dropdown-item .material-symbols-rounded { color: #8A9590 !important; font-size: 19px !important; }
body.he-rail .nx-topbar .nx-sh-acct-menu .dropdown-item.text-danger,
body.he-rail .nx-topbar .nx-sh-acct-menu .dropdown-item.text-danger .material-symbols-rounded { color: var(--nx-danger) !important; }
body.he-rail .nx-topbar .nx-sh-menu-head {
    display: flex; align-items: center; gap: 12px;
    margin: -8px -8px 8px; padding: 16px 18px;
    border-radius: 14px 14px 0 0;
    background: var(--he-grad);
    color: #fff;
}
body.he-rail .nx-topbar .nx-sh-menu-head .nx-sh-menu-head-name { color: #fff; font-weight: 600; font-size: 15px; }
body.he-rail .nx-topbar .nx-sh-menu-head .nx-sh-menu-head-company { color: rgba(255, 255, 255, .72); font-size: 12px; display: block; }
body.he-rail .nx-topbar .nx-sh-menu-head .nx-sh-menu-head-avatar { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }

/* 5. Page head & content ----------------------------------------------------- */
body.he-rail .nx-content-wrapper { padding: 44px 48px 64px; background: var(--nx-bg); }
body.he-rail .nx-content-container { max-width: var(--nx-container-width); }
body.nx-theme .nx-page-head { margin: 0 0 34px; }
body.nx-theme .nx-page-title,
body.nx-theme .heo-title,
body.nx-theme .hc-page-title {
    font-size: var(--nx-font-size-h1);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--nx-text);
}
body.nx-theme .nx-crumbs { font-size: 13px; margin-top: 6px; }
body.nx-theme footer.nx-footer { background: transparent; border-top: 1px solid var(--nx-border); }
/* Footer text lines up with the page content (same side padding as .nx-content-wrapper). */
body.he-rail footer.nx-footer { padding: 0 48px; }
body.he-rail footer.nx-footer > .nx-content-container { max-width: var(--nx-container-width); margin: 0 auto; }
body.nx-theme footer.nx-footer .he-footer-min { border-top: 0; }

/* 6. Cards, buttons, inputs (shared) ----------------------------------------- */
body.nx-theme .card,
body.nx-theme .nx-card,
body.nx-theme .nx-ca-card,
body.nx-theme .nx-hp-panel {
    border-color: var(--he-card-border);
    border-radius: var(--nx-radius-card);
}
body.nx-theme .btn { font-weight: 500; }
body.nx-theme .btn-primary,
body.nx-theme .btn-success,
body.nx-theme .nx-btn-primary,
body.nx-theme .btn-primary:not(:disabled):not(.disabled):active {
    background: var(--he-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
}
body.nx-theme .btn-primary:hover,
body.nx-theme .btn-success:hover,
body.nx-theme .nx-btn-primary:hover,
body.nx-theme .btn-primary:focus {
    background: var(--he-grad) !important;
    filter: brightness(1.12) saturate(1.05);
    border-color: transparent !important;
    color: #fff !important;
}
body.nx-theme .form-control,
body.nx-theme .custom-select,
body.nx-theme select.form-control {
    border-color: var(--nx-border);
    border-radius: var(--nx-radius-input);
    min-height: 44px;
}
body.nx-theme .form-control:focus,
body.nx-theme .custom-select:focus {
    border-color: color-mix(in srgb, var(--nx-link) 55%, var(--nx-border));
    box-shadow: 0 0 0 3px rgba(var(--nx-primary-rgb), .10);
}

/* 7. Brand gradient + amber helpers ------------------------------------------- */
.he-grad { background: var(--he-grad) !important; color: #fff !important; }
.he-grad-art {
    position: relative;
    overflow: hidden;
    background: var(--he-grad);
    color: #fff;
}
.he-grad-art::before,
.he-grad-art::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}
.he-grad-art::before {
    width: 260px; height: 260px; right: -70px; top: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
}
.he-grad-art::after {
    width: 180px; height: 180px; left: -60px; bottom: -110px;
    background: radial-gradient(circle, rgba(245, 158, 11, .28) 0%, rgba(245, 158, 11, 0) 70%);
}
.he-grad-art > * { position: relative; z-index: 1; }
.btn.he-btn-amber,
body.nx-theme .btn.he-btn-amber {
    background: var(--he-amber) !important;
    border-color: var(--he-amber) !important;
    color: var(--he-amber-ink) !important;
    font-weight: 600;
}
body.nx-theme .btn.he-btn-amber:hover { filter: brightness(1.05); }
.he-chip-amber {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 6px;
    background: var(--he-amber); color: var(--he-amber-ink);
    font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}

/* 9. Client area pages (v2.2) ------------------------------------------------------ */

/* 9a. Shared: tone icon circles, gradient text, white/glass buttons, side columns */
.he-tone-ico,
body.nx-theme .he-stat .he-stat-ico,
html body.nx-theme .nx-ca-stat-ico[class*="nx-ca-stat-ico-"],
body.nx-theme .nx-ca-stat-ico {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-tone-bg, var(--nx-primary-light)) !important;
    color: var(--he-tone, var(--nx-link)) !important;
}
.he-tone-ico .material-symbols-rounded,
body.nx-theme .he-stat .he-stat-ico .material-symbols-rounded { font-size: 22px; color: inherit !important; }
body.nx-theme .nx-ca-stat-ico { font-size: 22px; }

.he-grad-art,
.he-grad-art :is(h1, h2, h3, h4, h5, p, small, strong, address) { color: #fff; }
body.nx-theme .he-grad-art .he-card-title { color: #fff; }
body.nx-theme .btn.he-btn-white {
    background: #fff !important; border: 1px solid #fff !important; color: var(--he-grad-start, #032A1E) !important; font-weight: 600;
}
body.nx-theme .btn.he-btn-white:hover { background: rgba(255, 255, 255, .9) !important; }
body.nx-theme .btn.he-btn-glass {
    background: rgba(255, 255, 255, .10) !important; border: 1px solid rgba(255, 255, 255, .30) !important; color: #fff !important; font-weight: 500;
}
body.nx-theme .btn.he-btn-glass:hover { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
body.nx-theme .btn.he-btn-amber { box-shadow: 0 6px 16px rgba(245, 158, 11, .28) !important; }
body.nx-theme .btn.he-btn-amber .material-symbols-rounded { color: inherit !important; }

.nx-side-col > * + * { margin-top: var(--he-side-gap); }
.nx-side-col .nx-side-group > * + * { margin-top: var(--he-side-gap); }
.nx-side-col.d-flex > * + * { margin-top: 0; }

/* 9b. Support PIN card */
.he-pin {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 16px 18px;
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-card);
    box-shadow: var(--nx-shadow);
}
.he-pin-ico {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-grad); color: #fff;
}
.he-pin-ico .material-symbols-rounded { font-size: 20px; color: #fff; }
.he-pin-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.he-pin-label { font-size: 12px; font-weight: 500; color: var(--nx-muted); text-transform: uppercase; letter-spacing: .06em; }
.he-pin-value { margin-top: 4px; font-size: 21px; font-weight: 700; letter-spacing: .16em; color: var(--nx-text); font-variant-numeric: tabular-nums; }
.he-pin-tools { display: inline-flex; gap: 6px; }
.he-pin-btn {
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--nx-border); border-radius: 9px;
    background: var(--nx-card-bg); color: var(--nx-muted);
    cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.he-pin-btn .material-symbols-rounded { font-size: 18px; }
.he-pin-btn:hover { background: var(--nx-primary-light); color: var(--nx-link); border-color: color-mix(in srgb, var(--nx-link) 30%, var(--nx-border)); }
.he-pin-btn.is-done { background: var(--nx-primary-light); color: var(--nx-success); }
.he-pin-btn:disabled { opacity: .6; cursor: wait; }
.he-pin-help { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--nx-muted); padding-top: 10px; border-top: 1px dashed var(--nx-border); }
.he-pin.is-busy .he-pin-value { opacity: .45; }

/* 9c. Dashboard */
body.nx-theme .he-profile.he-grad-art { border: 0; padding: 24px; box-shadow: 0 14px 32px rgba(3, 42, 30, .18); }
body.nx-theme .he-profile.he-grad-art .he-profile-avatar {
    width: 54px; height: 54px; flex-basis: 54px; font-size: 18px;
    background: rgba(255, 255, 255, .16) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .32);
}
body.nx-theme .he-profile.he-grad-art .he-profile-name { color: #fff; font-size: 17px; }
body.nx-theme .he-profile.he-grad-art .he-profile-sub { color: rgba(255, 255, 255, .74); }
body.nx-theme .he-profile.he-grad-art .he-profile-addr { color: rgba(255, 255, 255, .78); border-top-color: rgba(255, 255, 255, .18); }
body.nx-theme .he-profile.he-grad-art .he-profile-actions { margin-top: 18px; }
body.nx-theme .he-profile.he-grad-art .he-profile-actions .btn { flex: 1 1 0; }

body.nx-theme .he-stats { gap: 18px; }
body.nx-theme .he-stat {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "ico label" "ico num" "note note";
    column-gap: 14px; row-gap: 0;
    align-items: center;
    padding: 20px;
    box-shadow: var(--nx-shadow);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.nx-theme .he-stat .he-stat-ico { grid-area: ico; margin: 0; width: 48px; height: 48px; flex-basis: 48px; }
body.nx-theme .he-stat .he-stat-label { grid-area: label; align-self: end; font-size: 13px; }
body.nx-theme .he-stat .he-stat-num { grid-area: num; align-self: start; font-size: 26px; font-weight: 700; }
body.nx-theme .he-stat .he-stat-note { grid-area: note; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--nx-border); color: var(--he-tone); font-weight: 500; }
body.nx-theme .he-stat:hover { border-color: color-mix(in srgb, var(--he-tone, var(--nx-link)) 38%, var(--nx-border)); box-shadow: 0 10px 24px rgba(10, 25, 20, .07); transform: translateY(-1px); }
body.nx-theme .he-stat.is-attention .he-stat-num { color: var(--he-tone); }

body.nx-theme .he-card-flush .he-card-head { padding-top: 18px; padding-bottom: 18px; }
body.nx-theme .he-row-ico { background: var(--nx-primary-light); color: var(--nx-link); border-radius: 50%; }
body.nx-theme .he-row-ico .material-symbols-rounded { color: var(--nx-link); }
body.nx-theme .he-row:hover { background: color-mix(in srgb, var(--nx-primary-light) 45%, transparent); }
body.nx-theme .he-empty-ico { border-radius: 50%; background: var(--nx-primary-light); color: var(--nx-link); }

body.nx-theme .he-domain-card.he-grad-art { border: 0; padding: 26px 28px; gap: 18px; box-shadow: 0 14px 32px rgba(3, 42, 30, .16); }
.he-domain-card .he-domain-copy { display: flex; align-items: center; gap: 14px; }
.he-domain-card .he-domain-copy p { margin: 2px 0 0; color: rgba(255, 255, 255, .78); }
body.nx-theme .he-domain-card .he-card-title { font-size: 18px; margin: 0; }
.he-domain-badge {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.he-domain-badge .material-symbols-rounded { color: #fff; font-size: 24px; }
body.nx-theme .he-domain-card .he-input-ico .form-control { height: 48px; border: 0; background: #fff; color: #14201B; }
body.nx-theme .he-domain-card .he-domain-form .btn { height: 48px; padding: 0 22px; font-size: 15px; }

/* 9d. List pages: stat tiles, tabs, tables, sidebar cards */
body.nx-theme .nx-ca-stat-tile { padding: 20px 22px; box-shadow: var(--nx-shadow); }
body.nx-theme .nx-ca-stat-label { font-size: 13px; color: var(--nx-muted); font-weight: 500; }
html body.nx-theme .nx-ca-stat-num,
html body.nx-theme .nx-ca-stat-num[class*="nx-ca-stat-num-"] { color: var(--nx-text) !important; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
html body.nx-theme .nx-ca-stat-ico-green   { --he-tone: #0B7A55; --he-tone-bg: #E2F3EB; }
html body.nx-theme .nx-ca-stat-ico-danger  { --he-tone: #C2312B; --he-tone-bg: #FCE7E6; }
html body.nx-theme .nx-ca-stat-ico-warning { --he-tone: #B45309; --he-tone-bg: #FDF1D8; }
html body.nx-theme .nx-ca-stat-ico-primary { --he-tone: #2457D6; --he-tone-bg: #E6EDFD; }

html body.nx-theme .nx-u-tint-tile { border-radius: 50% !important; background: #E2F3EB !important; color: #0B7A55 !important; }
html body.nx-theme .nx-u-tint-tile .material-symbols-rounded { color: inherit !important; }
html body.nx-theme .nx-u-tint-tile.is-primary { background: #E6EDFD !important; color: #2457D6 !important; }
html body.nx-theme .nx-u-tint-tile.is-success { background: #E2F3EB !important; color: #0B7A55 !important; }
html body.nx-theme .nx-u-tint-tile.is-warning { background: #FDF1D8 !important; color: #B45309 !important; }
html body.nx-theme .nx-u-tint-tile.is-danger  { background: #EFE8FD !important; color: #6D3FD8 !important; }

body.nx-theme :is(.nx-prods-tab, .nx-doms-tab) { border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 500; }
html body.nx-theme .nx-status-tab:is(.nx-prods-tab-active, .nx-doms-tab-on),
html body.nx-theme .nx-status-tab:is(.nx-prods-tab-active, .nx-doms-tab-on):hover {
    background: var(--he-grad) !important; border-color: transparent !important; color: #fff !important;
}
html body.nx-theme .nx-status-tab:is(.nx-prods-tab-inactive, .nx-doms-tab-off):hover { border-color: color-mix(in srgb, var(--nx-link) 40%, var(--nx-border)) !important; color: var(--nx-link) !important; }

body.nx-theme :is(.nx-dt-card, .nx-inv-card, .nx-prods-table-card, .nx-doms-card) { box-shadow: var(--nx-shadow); overflow: hidden; }
body.nx-theme .nx-rtable thead th,
body.nx-theme .nx-rtable .nx-th { background: color-mix(in srgb, var(--nx-bg) 70%, var(--nx-card-bg)); font-size: 11.5px; letter-spacing: .06em; color: var(--nx-muted); }
body.nx-theme .nx-rtable tbody tr { transition: background-color .12s ease; }
body.nx-theme .nx-rtable tbody tr:hover { background: color-mix(in srgb, var(--nx-primary-light) 40%, transparent); }
body.nx-theme .nx-title-sm { font-weight: 600; }
body.nx-theme :is(.nx-prods-manage-btn, .nx-inv-btn-manage, .nx-doms-manage-btn) { border-radius: var(--nx-radius-button); font-weight: 500; }
body.nx-theme .nx-inv-btn-pay { background: var(--he-grad) !important; border-color: transparent !important; color: #fff !important; }

html body.nx-theme .nx-pd-side-card.nx-pd-side-card { padding: 0; margin: 0; box-shadow: var(--nx-shadow); overflow: hidden; }
html body.nx-theme .nx-pd-side-card .nx-pd-side-head { padding: 18px 20px 6px; margin: 0; background: transparent; border: 0; }
html body.nx-theme .nx-pd-side-card .nx-pd-side-body { padding: 8px 20px 18px; }
body.nx-theme .nx-pd-side-card .nx-pd-side-head .nx-card-title { font-size: 15px; font-weight: 600; }
body.nx-theme .nx-pd-side-card .card-minimise { display: none; }
body.nx-theme .nx-pd-sidelist { padding: 4px 8px 10px; }
body.nx-theme .nx-pd-sidelink {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px; margin: 1px 0; border: 0 !important; border-radius: 9px;
    font-size: 14px; color: var(--nx-text) !important; background: transparent;
}
body.nx-theme .nx-pd-sidelink .nx-pd-sidelink-ico,
body.nx-theme .nx-pd-sidelink .material-symbols-rounded.nx-pd-sidelink-ico {
    width: 20px; font-size: 20px; text-align: center;
    color: #7F8B86 !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
body.nx-theme .nx-pd-sidelink:hover { background: var(--he-hover); color: var(--nx-link) !important; }
body.nx-theme .nx-pd-sidelink:hover .nx-pd-sidelink-ico { color: var(--nx-link) !important; }
body.nx-theme .nx-pd-sidelink.active { background: var(--nx-primary-light) !important; color: var(--nx-link) !important; font-weight: 500; }
body.nx-theme .nx-pd-sidelink.active .nx-pd-sidelink-ico { color: var(--nx-link) !important; }

/* 9e. Invoices */
.nx-inv-stat-row > [class*="col-"] > * { height: 100%; }
body.nx-theme .he-inv-due {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 22px 24px; border-radius: var(--nx-radius-card);
    box-shadow: 0 14px 32px rgba(3, 42, 30, .16);
}
.he-inv-due-label { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.he-inv-due-value { margin-top: 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.he-inv-due-note { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.he-inv-due-note .material-symbols-rounded { font-size: 17px; color: #fff; }
body.nx-theme .he-inv-due .he-inv-due-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; }
body.nx-theme .he-inv-due .he-inv-due-btn .material-symbols-rounded { font-size: 18px; }
body.nx-theme .nx-inv-tile { padding: 22px 24px; box-shadow: var(--nx-shadow); }
body.nx-theme :is(.nx-inv-tile-value, .nx-inv-tile-value-success) { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
body.nx-theme .nx-inv-tile-label { font-size: 13px; font-weight: 500; color: var(--nx-muted); }
body.nx-theme .he-inv-list { padding: 0; }
body.nx-theme .he-inv-list > .nx-inv-border { padding: 18px 24px !important; }
body.nx-theme .nx-side-col .nx-inv-cc-number { white-space: nowrap; overflow: hidden; font-size: 13px; letter-spacing: 0; word-spacing: -3px; }
body.nx-theme .nx-side-col .nx-inv-cc-bottom { gap: 10px; }

/* 9f. Support tickets */
.he-tl-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-bottom: 28px; }
.he-tl-top.is-solo { grid-template-columns: minmax(0, 1fr); }
body.nx-theme .nx-tl-banner.he-tl-banner { padding: 26px 28px; border: 0; min-height: 0; box-shadow: 0 14px 32px rgba(3, 42, 30, .16); }
body.nx-theme .he-tl-banner .nx-tl-banner-title { font-size: 21px; font-weight: 700; color: #fff; }
body.nx-theme .he-tl-banner .nx-tl-banner-sub { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
body.nx-theme .he-tl-banner .he-tl-banner-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 14.5px; }
body.nx-theme .he-tl-banner .he-tl-banner-btn .material-symbols-rounded { font-size: 19px; }
.he-tl-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
body.nx-theme .nx-tl-dept-card.he-tl-dept {
    position: relative; flex-direction: row; align-items: center; gap: 14px;
    padding: 18px 40px 18px 18px; box-shadow: var(--nx-shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.nx-theme .he-tl-dept .nx-tl-dept-name { font-weight: 600; font-size: 14.5px; }
body.nx-theme .he-tl-dept .nx-tl-dept-desc { white-space: normal; font-size: 12.5px; line-height: 1.45; }
.he-tl-dept-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--nx-muted); transition: transform .15s ease, color .15s ease; }
body.nx-theme .he-tl-dept:hover { border-color: color-mix(in srgb, var(--he-tone, var(--nx-link)) 40%, var(--nx-border)); box-shadow: 0 10px 24px rgba(10, 25, 20, .07); }
.he-tl-dept:hover .he-tl-dept-go { color: var(--he-tone, var(--nx-link)); transform: translate(3px, -50%); }

/* 9g. Domains */
body.nx-theme .he-doms-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 26px 28px; margin-bottom: 26px;
    border-radius: var(--nx-radius-card); box-shadow: 0 14px 32px rgba(3, 42, 30, .16);
}
body.nx-theme .he-doms-banner-title { margin: 0; font-size: 21px; font-weight: 700; color: #fff; }
body.nx-theme .he-doms-banner-sub { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.he-doms-banner-form { flex: 0 1 460px; min-width: 0; }
.he-doms-search { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: calc(var(--nx-radius-input) + 4px); }
body.nx-theme .he-doms-search .he-doms-search-input { border: 0; box-shadow: none !important; min-height: 44px; background: transparent; color: #14201B; }
body.nx-theme .he-doms-search .he-doms-search-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; white-space: nowrap; font-size: 14.5px; }

/* 9h. Product details */
html body.nx-theme .nx-pd-hero.he-grad-art {
    background: var(--he-grad) !important; border: 0 !important; color: #fff !important;
    box-shadow: 0 14px 32px rgba(3, 42, 30, .16) !important;
}
html body.nx-theme .nx-pd-hero.he-grad-art::before,
html body.nx-theme .nx-pd-hero.he-grad-art::after { display: block !important; }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-icon { background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .22); }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-icon .material-symbols-rounded { color: #fff !important; }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-eyebrow { color: rgba(255, 255, 255, .74) !important; }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-title { color: #fff !important; }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-foot {
    background: rgba(0, 0, 0, .14) !important; color: #fff !important; border-top: 1px solid rgba(255, 255, 255, .14) !important;
}
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-foot .material-symbols-rounded { color: #fff !important; }
html body.nx-theme .nx-pd-hero.he-grad-art .nx-pd-hero-foot:hover { background: rgba(0, 0, 0, .22) !important; }

/* 9i. View invoice: balance card */
html body.nx-theme .nx-vi-due-card.he-grad-art { background: var(--he-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 14px 32px rgba(3, 42, 30, .18) !important; }
html body.nx-theme .nx-vi-due-card.he-grad-art :is(.nx-vi-due-label, .nx-vi-due-gw-label) { color: rgba(255, 255, 255, .78) !important; }
html body.nx-theme .nx-vi-due-card.he-grad-art .nx-vi-due-value { color: #fff !important; }
html body.nx-theme .nx-vi-due-card.he-grad-art .nx-vi-due-pill { background: rgba(255, 255, 255, .14); color: #fff; }
html body.nx-theme .nx-vi-due-card.he-grad-art .nx-vi-secure-note { color: rgba(255, 255, 255, .74) !important; }
html body.nx-theme .nx-vi-due-card.he-grad-art .material-symbols-rounded { color: inherit !important; }
/* A gateway form that is only a button sits straight on the card; forms with fields keep their white panel. */
html body.nx-theme .nx-vi-due-card.he-grad-art .nx-vi-payment-btn > form:not(:has(:is(input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]), select, textarea, p, table))) {
    background: transparent; padding: 0;
}
html body.nx-theme .nx-vi-due-card.he-grad-art .nx-vi-payment-btn :is(.btn, button, input[type="submit"], input[type="button"]) {
    width: 100%; min-height: 46px; border: 0 !important; border-radius: var(--nx-radius-button);
    background: var(--he-amber) !important; color: var(--he-amber-ink) !important; font-weight: 600;
    box-shadow: 0 6px 16px rgba(245, 158, 11, .30) !important;
}

/* 10. Visitors (not signed in), sign-in pages, profile picture, Resolution Center (v2.3) ---- */

/* 10a. Visitor shell: thin brand bar + white header, no rail */
body.he-guest .nx-app-layout { flex-direction: column !important; }
body.he-guest .nx-main-area { margin-left: 0 !important; width: 100% !important; }
body.he-guest .nx-content-wrapper { padding: 44px 32px 72px; background: var(--nx-bg); }
body.he-guest .nx-content-container { max-width: var(--nx-container-width); }
body.he-guest footer.nx-footer > .nx-content-container { max-width: calc(var(--nx-container-width) + 64px); margin: 0 auto; padding: 0 32px; }
.he-gwrap {
    max-width: calc(var(--nx-container-width) + 64px);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.he-gbar { height: 36px; background: var(--he-topbar-bg, #032A1E); color: #fff; }
.he-gbar .he-gwrap { justify-content: flex-end; }
.he-gbar-right { display: flex; align-items: center; gap: 2px; height: 100%; }
.he-gbar-link,
body.nx-theme .he-gbar-link {
    display: inline-flex; align-items: center; gap: 7px;
    height: 30px; padding: 0 10px; border: 0; border-radius: 7px;
    background: transparent; color: rgba(255, 255, 255, .92) !important;
    font-size: 13.5px; font-weight: 500; line-height: 1; text-decoration: none !important; cursor: pointer;
}
.he-gbar-link:hover,
.he-gbar-drop.is-open > .he-gbar-link { background: rgba(255, 255, 255, .12); color: #fff !important; }
.he-gbar-link .material-symbols-rounded { font-size: 19px; color: inherit; }
.he-gbar-ico { position: relative; display: inline-flex; margin-right: 6px; }
.he-gbar-count {
    position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--he-amber); color: var(--he-amber-ink); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
body.nx-theme .he-gbar .nx-topbar-mode-toggle { width: 30px; height: 30px; border-radius: 7px; }
body.nx-theme .he-gbar .nx-topbar-mode-toggle:hover { background: rgba(255, 255, 255, .12); }
body.nx-theme .he-gbar .nx-topbar-mode-toggle .material-symbols-rounded { color: #fff !important; font-size: 18px; }
.he-gbar .he-gdrop { height: 100%; }
body.nx-theme .he-gbar .nx-lang-switcher .btn,
body.nx-theme .he-gbar .dropdown > .btn { color: rgba(255, 255, 255, .92) !important; }

.he-ghead {
    position: relative;
    z-index: 1030;
    height: 76px;
    background: var(--nx-card-bg);
    border-bottom: 1px solid var(--nx-border);
    box-shadow: 0 8px 28px rgba(10, 25, 20, .04);
}
.he-glogo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none !important; margin-right: 18px; }
.he-glogo-img { display: block; max-height: 40px; max-width: 200px; width: auto; height: auto; }
.he-glogo-img.he-glogo-mark { max-height: 40px; }
.he-glogo-name { font-size: 20px; font-weight: 700; color: var(--nx-text); letter-spacing: -0.02em; }
.he-glogo-badge { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
html.nx-dark .he-glogo-img.nx-logo-light-mode,
html:not(.nx-dark) .he-glogo-img.nx-logo-dark-mode { display: none; }

.he-gnav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1 1 auto; min-width: 0; }
.he-gdrop { position: relative; display: flex; align-items: center; height: 100%; }
.he-gnav-link,
body.nx-theme .he-gnav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 4px;
    height: 100%; padding: 0 14px; border: 0; background: transparent;
    font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--nx-text);
    cursor: pointer; white-space: nowrap;
}
.he-gnav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
    border-radius: 3px 3px 0 0; background: var(--he-grad); opacity: 0; transition: opacity .15s ease;
}
.he-gnav-link:hover,
.he-gdrop.is-open > .he-gnav-link,
.he-gnav-link.is-active { color: var(--nx-link); }
.he-gdrop.is-open > .he-gnav-link::after,
.he-gnav-link.is-active::after { opacity: 1; }
.he-gchev { font-size: 18px; color: inherit; transition: transform .15s ease; }
.he-gdrop.is-open > button .he-gchev { transform: rotate(180deg); }

.he-gmenu {
    position: absolute;
    z-index: 1040;
    top: calc(100% - 4px);
    left: 0;
    min-width: 280px;
    padding: 8px;
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    box-shadow: 0 24px 54px rgba(10, 25, 20, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.he-gdrop.is-open > .he-gmenu { opacity: 1; visibility: visible; transform: none; }
.he-gmenu-scroll { max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .2) transparent; }
.he-gmenu-scroll::-webkit-scrollbar { width: 6px; }
.he-gmenu-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .2); border-radius: 4px; }
.he-gmenu-right { left: auto; right: 0; }
.he-gmenu-sm { min-width: 150px; }
.he-gbar .he-gmenu { top: calc(100% + 2px); }
.he-gmenu-link,
body.nx-theme .he-gmenu-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 9px;
    color: var(--nx-text) !important; font-size: 14.5px; line-height: 1.35;
    text-decoration: none !important; white-space: nowrap;
    transition: background-color .12s ease, color .12s ease;
}
.he-gmenu-link:hover,
.he-gmenu-link:focus-visible { background: var(--nx-primary-light); color: var(--nx-link) !important; outline: none; }
.he-gmenu-link.is-active { color: var(--nx-link) !important; font-weight: 500; }
.he-gmenu-ico { flex: 0 0 auto; font-size: 20px; color: #7F8B86; transition: color .12s ease; }
.he-gmenu-link:hover .he-gmenu-ico,
.he-gmenu-link.is-active .he-gmenu-ico { color: var(--nx-link); }
.he-gmenu-sep { margin: 6px 10px; border: 0; border-top: 1px solid var(--nx-border); }

.he-gactions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }
.he-gbtn,
body.nx-theme .he-gbtn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
    font-size: 15.5px; font-weight: 500; line-height: 1; text-decoration: none !important; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
body.nx-theme .he-gbtn-line { background: var(--nx-card-bg); border-color: var(--nx-border); color: var(--nx-text) !important; }
body.nx-theme .he-gbtn-line:hover,
body.nx-theme .he-gbtn-line.is-current { border-color: color-mix(in srgb, var(--nx-link) 55%, var(--nx-border)); color: var(--nx-link) !important; }
body.nx-theme .he-gbtn-soft { background: var(--nx-primary-light); color: var(--nx-link) !important; }
body.nx-theme .he-gbtn-soft:hover,
body.nx-theme .he-gbtn-soft.is-current,
body.nx-theme .he-gbtn-solid { background: var(--he-grad); color: #fff !important; }
body.nx-theme .he-gbtn-solid:hover { filter: brightness(1.1); }
.he-gburger { display: none; }

/* Phone menu for visitors */
.he-gmobile .nx-mobile-navbar-body { padding: 6px 0 12px; }
.he-gm-group { padding: 10px 14px 6px; border-bottom: 1px solid var(--nx-border); }
.he-gm-group:last-child { border-bottom: 0; }
.he-gm-title { padding: 4px 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted); }
.he-gm-link,
body.nx-theme .he-gm-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 9px;
    color: var(--nx-text) !important; font-size: 15px; text-decoration: none !important;
}
.he-gm-link:hover { background: var(--nx-primary-light); color: var(--nx-link) !important; }
.he-gm-link .material-symbols-rounded { font-size: 20px; color: #7F8B86; }
.he-gm-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-top: 1px solid var(--nx-border); }
.he-gm-foot .he-gbtn { width: 100%; height: 44px; padding: 0 12px; }
@media (min-width: 992px) {
    .he-gmobile,
    .he-guest-layout .nx-mobile-backdrop { display: none !important; }
}
@media (max-width: 1199.98px) {
    .he-gwrap { gap: 14px; }
    .he-gnav-link, body.nx-theme .he-gnav-link { padding: 0 10px; font-size: 15px; }
    .he-gbtn, body.nx-theme .he-gbtn { height: 42px; padding: 0 18px; font-size: 15px; }
}
@media (max-width: 991.98px) {
    .he-gwrap { padding: 0 16px; }
    .he-ghead { height: 64px; }
    .he-gnav { display: none; }
    .he-gburger,
    body.nx-theme .he-gburger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 10px; background: transparent; color: var(--nx-text);
    }
    .he-gburger .material-symbols-rounded { font-size: 26px; }
    .he-glogo { margin-right: 0; }
    .he-glogo-img { max-height: 34px; max-width: 150px; }
    body.nx-theme .he-gactions .he-gbtn-line { display: none; }
    body.nx-theme .he-gactions .he-gbtn { height: 40px; padding: 0 16px; font-size: 14.5px; }
    body.he-guest .nx-content-wrapper { padding: 28px 16px 56px; }
}

/* 10b. Sign-in pages: one centred card */
.he-auth { display: flex; justify-content: center; padding: 8px 0 12px; }
.he-auth-card {
    width: 100%;
    max-width: 560px;
    padding: 44px 52px 0;
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(10, 25, 20, .05);
}
.he-auth-clientregister .he-auth-card { max-width: 960px; }
.he-auth-card > .nx-auth,
.he-auth-card .nx-auth { max-width: none; padding: 0; margin: 0; border: 0; box-shadow: none; background: transparent; }
.he-auth-card > :last-child:not(.he-auth-foot):not(.he-login):not(.he-register) { margin-bottom: 40px; }
body.nx-theme .he-auth-title {
    margin: 0 0 30px;
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--nx-text);
}
body.nx-theme .he-auth-card .nx-auth-title { text-align: center; font-size: 30px; }
.he-field { margin-bottom: 20px; min-width: 0; }
body.nx-theme .he-label {
    display: block; margin: 0 0 8px;
    font-size: 14.5px; font-weight: 400; color: color-mix(in srgb, var(--nx-text) 72%, var(--nx-muted));
}
.he-label sup { top: -.35em; margin-left: 2px; font-size: 11px; color: var(--nx-muted); }
.he-optional { color: var(--nx-muted); font-size: 13px; }
.he-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.he-label-row .he-label { margin-bottom: 8px; }
body.nx-theme .he-input,
body.nx-theme .he-field .form-control,
body.nx-theme .he-field select.form-control {
    height: 54px;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--nx-border);
    border-radius: 12px !important;
    background-color: var(--nx-card-bg);
    color: var(--nx-text);
    font-size: 15px;
    box-shadow: none;
}
body.nx-theme .he-field textarea.form-control { height: auto; min-height: 110px; padding: 14px 18px; }
body.nx-theme .he-input:focus,
body.nx-theme .he-field .form-control:focus {
    border-color: color-mix(in srgb, var(--nx-link) 60%, var(--nx-border));
    box-shadow: 0 0 0 4px rgba(var(--nx-primary-rgb), .10);
}
body.nx-theme .he-input::placeholder { color: color-mix(in srgb, var(--nx-muted) 80%, transparent); }
body.nx-theme .he-link { color: var(--nx-link); font-weight: 500; text-decoration: none; }
body.nx-theme .he-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.he-input-reveal { position: relative; }
body.nx-theme .he-input-reveal .he-input { padding-right: 54px; }
.he-reveal,
body.nx-theme .he-reveal {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; color: var(--nx-muted); cursor: pointer;
}
.he-reveal:hover { background: var(--he-hover); color: var(--nx-text); }
.he-reveal .material-symbols-rounded { font-size: 21px; }
.he-check { display: flex; align-items: center; gap: 12px; margin: 2px 0 24px; font-size: 15px; color: var(--nx-text); cursor: pointer; }
.he-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--nx-link); cursor: pointer; }
.btn.he-btn-grad,
body.nx-theme .btn.he-btn-grad {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 22px; border: 0 !important; border-radius: 12px;
    background: var(--he-grad) !important; color: #fff !important; font-weight: 500;
    box-shadow: 0 10px 24px rgba(3, 42, 30, .18) !important;
}
body.nx-theme .btn.he-btn-grad:hover { filter: brightness(1.1) saturate(1.05); color: #fff !important; }
body.nx-theme .btn.he-btn-grad.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; box-shadow: none !important; }
body.nx-theme .btn.he-btn-block { display: flex; width: 100%; height: 56px; font-size: 17px; }
.he-auth-or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--nx-muted); font-size: 13px; }
.he-auth-or::before,
.he-auth-or::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--nx-border); }
.he-auth-social .social-signin-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.he-auth-social .social-signin-btns > * { max-width: 100%; margin: 0 auto !important; }
.he-auth-social .sub-heading,
.he-auth-social .nx-section-label { display: none; }
.he-auth-foot {
    margin: 30px -52px 0;
    padding: 22px 52px 26px;
    border-top: 1px solid var(--nx-border);
    text-align: center;
    font-size: 15px;
    color: color-mix(in srgb, var(--nx-text) 72%, var(--nx-muted));
}
.he-auth-card .alert { border-radius: 12px; }

/* Register */
.he-register #registration { margin: 0; }
.he-reg-sec { margin-bottom: 26px; }
body.nx-theme .he-reg-h { margin: 0 0 18px; font-size: 22px; font-weight: 500; color: var(--nx-text); letter-spacing: -0.01em; }
.he-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.he-grid-2.he-grid-tight { column-gap: 20px; }
.he-span-2 { grid-column: 1 / -1; }
.he-reg-social { margin-bottom: 24px; }
body.nx-theme .he-field .intl-tel-input,
body.nx-theme .he-field .iti { display: block; width: 100%; }
body.nx-theme #registration .he-field .field { padding-left: 18px; }
body.nx-theme #registration .he-field .intl-tel-input input.field { padding-left: 96px; }
body.nx-theme #registration .he-field .intl-tel-input .selected-flag { border-radius: 12px 0 0 12px; height: 100%; }
body.nx-theme #registration .he-field #stateselect { height: 54px; border-radius: 12px; }
.he-reg-gen { display: flex; align-items: flex-start; }
.he-gen-btn,
body.nx-theme .he-gen-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent;
    font-size: 15px; font-weight: 600; color: var(--nx-text); cursor: pointer;
}
.he-gen-btn .material-symbols-rounded { font-size: 20px; color: var(--nx-muted); }
.he-gen-btn:hover { color: var(--nx-link); }
.he-reg-strength .password-strength-meter .progress { height: 6px; border-radius: 3px; background: var(--nx-primary-light); margin-bottom: 6px; }
.he-reg-strength #passwordStrengthTextLabel { margin: 0; text-align: left !important; }
.he-optin { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: 12px; background: color-mix(in srgb, var(--nx-bg) 60%, var(--nx-card-bg)); }
.he-optin p { margin: 4px 0 0; font-size: 13.5px; color: var(--nx-muted); }
.he-reg-tos { margin: 4px 0 22px; }
.he-custom-field .form-control { height: 54px; border-radius: 12px; }
.he-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--nx-muted); }

@media (max-width: 767.98px) {
    .he-auth-card { padding: 30px 20px 0; border-radius: 16px; }
    .he-auth-foot { margin: 26px -20px 0; padding: 18px 20px 22px; }
    body.nx-theme .he-auth-title { font-size: 28px; margin-bottom: 24px; }
    .he-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .he-grid-2.he-grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 10c. Profile picture */
.nx-user-avatar { position: relative; overflow: hidden; }
.nx-user-avatar.has-photo .nx-user-avatar-initials { visibility: hidden; }
body.nx-theme .he-avatar-lg .nx-user-avatar-initials,
body.nx-theme .he-profile.he-grad-art .nx-user-avatar-initials,
body.he-rail .nx-topbar .nx-user-avatar .nx-user-avatar-initials,
body.he-rail .nx-topbar .nx-sh-menu-head .nx-user-avatar-initials,
body.nx-theme .nx-sh-menu-head-avatar .nx-user-avatar-initials { color: #fff; }
body.nx-theme .nx-user-avatar .he-avatar-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block !important;
}
.he-avatar-card { padding: 22px 24px; margin-bottom: 24px; }
.he-avatar-row { display: flex; align-items: center; gap: 22px; }
body.nx-theme .he-avatar-lg {
    width: 88px; height: 88px; flex: 0 0 88px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-grad) !important; color: #fff !important; font-size: 28px; font-weight: 600;
    box-shadow: 0 0 0 4px var(--nx-primary-light);
}
.he-avatar-copy { min-width: 0; }
.he-avatar-copy .nx-card-title { margin: 0 0 4px; }
.he-avatar-copy p { margin: 0; font-size: 13.5px; color: var(--nx-muted); }
.he-avatar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.he-avatar-form { margin: 0; }
.he-avatar-form.is-busy { opacity: .6; pointer-events: none; }
.he-avatar-pick { cursor: pointer; }
.he-avatar-pick .material-symbols-rounded,
.he-avatar-remove .material-symbols-rounded { font-size: 18px; }
body.nx-theme .he-avatar-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 10px; }
.he-avatar-note,
.he-avatar-error { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.he-avatar-error { margin: 12px 0 0; background: #FCE7E6; color: #C2312B; }
.he-avatar-note.is-ok { background: #E2F3EB; color: #0B7A55; }
.he-avatar-note.is-err { background: #FCE7E6; color: #C2312B; }
.he-avatar-note .material-symbols-rounded { font-size: 19px; }
.he-profile-photo { position: relative; display: inline-flex; flex: 0 0 auto; border-radius: 50%; text-decoration: none !important; }
.he-photo-badge {
    position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-amber); color: var(--he-amber-ink); border: 2px solid #0A4E37;
}
.he-photo-badge .material-symbols-rounded { font-size: 13px; color: inherit; }
.he-profile-addphoto,
body.nx-theme .he-profile-addphoto { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: #FCD34D; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) {
    .he-avatar-row { flex-direction: column; align-items: flex-start; }
}

/* 10d. Resolution Center */
.he-res-hero {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
    margin-bottom: 24px; padding: 28px 30px; border-radius: var(--nx-radius-card);
    box-shadow: 0 14px 32px rgba(3, 42, 30, .16);
}
.he-res-hero-copy { display: flex; align-items: flex-start; gap: 16px; }
.he-res-hero-copy p { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.he-res-badge {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
}
.he-res-badge .material-symbols-rounded { font-size: 26px; color: #fff; }
.he-res-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.he-res-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.he-res-steps li span {
    width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--he-amber); color: var(--he-amber-ink); font-size: 12.5px; font-weight: 700;
}
.he-res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.he-res-card,
body.nx-theme .he-res-card {
    display: flex; flex-direction: column; gap: 14px; padding: 22px;
    background: var(--nx-card-bg); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-card);
    color: var(--nx-text) !important; text-decoration: none !important; box-shadow: var(--nx-shadow);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.he-res-card:hover { border-color: color-mix(in srgb, var(--he-tone, var(--nx-link)) 40%, var(--nx-border)); box-shadow: 0 12px 28px rgba(10, 25, 20, .08); transform: translateY(-2px); }
.he-res-card-body { display: flex; flex-direction: column; gap: 6px; }
.he-res-card-title { font-size: 16px; font-weight: 600; }
.he-res-card-text { font-size: 13.5px; line-height: 1.55; color: var(--nx-muted); }
.he-res-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--nx-link); }
.he-res-go .material-symbols-rounded { font-size: 18px; transition: transform .15s ease; }
.he-res-card:hover .he-res-go .material-symbols-rounded { transform: translateX(3px); }
.he-res-card .he-tone-ico { width: 48px; height: 48px; flex: 0 0 48px; }
@media (max-width: 1199.98px) {
    .he-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .he-res-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
    .he-res-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 8. Phones / dark mode -------------------------------------------------------- */
@media (max-width: 767.98px) {
    body.he-rail .he-rail-nav,
    body.he-rail .he-fly,
    body.he-rail .he-fly-scrim { display: none !important; }
    body.he-rail .nx-main-area { margin-left: 0; width: 100%; }
    body.he-rail .nx-topbar { padding: 0 14px; }
    body.he-rail .nx-topbar .nx-topbar-logo-mobile { display: flex !important; }
    body.he-rail .nx-topbar .nx-topbar-logo-mobile img { max-height: 30px; }
    body.he-rail .nx-topbar .he-tb-label { display: none; }
    body.he-rail .nx-content-wrapper { padding: 26px 16px 90px; }
    body.he-rail footer.nx-footer { padding: 0 16px; }
    body.nx-theme .nx-page-title { font-size: 26px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.he-rail .nx-content-wrapper { padding: 34px 28px 56px; }
    body.he-rail footer.nx-footer { padding: 0 28px; }
}
@media (max-height: 760px) and (min-width: 768px) {
    .he-rail-item { padding: 10px 6px; gap: 7px; }
    .he-rail-logo { height: 80px; }
}
@media (max-width: 991.98px) {
    /* Side cards (PIN, payment method) become their own rows on phones: keep them inset like the content. */
    .row > .nx-side-col > :not(.nx-side-group) { flex: 0 0 auto; width: calc(100% - 30px); max-width: none; margin: 0 15px 20px; }
    .row > .nx-side-col > .he-pin { order: -1; padding: 16px 18px; }
    .row > .nx-side-col > .nx-inv-side-card { padding: 20px; }
}
@media (max-width: 1199.98px) {
    .he-tl-top { grid-template-columns: minmax(0, 1fr); }
    body.nx-theme .he-doms-banner { flex-direction: column; align-items: stretch; }
    .he-doms-banner-form { flex-basis: auto; }
}
@media (max-width: 767.98px) {
    body.nx-theme .he-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.nx-theme .he-stat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ico" "label" "num" "note"; padding: 16px; row-gap: 2px; }
    body.nx-theme .he-stat .he-stat-ico { width: 40px; height: 40px; margin-bottom: 8px; }
    body.nx-theme .he-stat .he-stat-num { font-size: 22px; }
    body.nx-theme .he-domain-card.he-grad-art,
    body.nx-theme .he-doms-banner,
    body.nx-theme .nx-tl-banner.he-tl-banner { padding: 20px; }
    body.nx-theme .he-domain-card .he-domain-form .btn { flex: 1 1 0; }
    .he-tl-depts { grid-template-columns: minmax(0, 1fr); }
    body.nx-theme .nx-inv-tile { padding: 16px; }
    body.nx-theme :is(.nx-inv-tile-value, .nx-inv-tile-value-success) { font-size: 19px; }
    body.nx-theme .he-inv-due-value { font-size: 26px; }
    .he-doms-search { flex-wrap: wrap; }
    body.nx-theme .he-doms-search .he-doms-search-btn { flex: 1 1 100%; justify-content: center; min-height: 42px; }
    /* the closed phone menu sits off-screen; keep its shadow from showing at the left edge */
    body.nx-theme:not(.nx-mobile-nav-open) .nx-mobile-navbar { box-shadow: none; }
}
html.nx-dark .he-rail-ico,
html.nx-dark .he-fly-ico { color: var(--nx-muted); }
html.nx-dark .he-fly { box-shadow: 18px 0 40px rgba(0, 0, 0, .45); }
html.nx-dark :is(.t-green, .is-green, .nx-ca-stat-ico-green)     { --he-tone: #4ADE9B; --he-tone-bg: rgba(74, 222, 155, .12); }
html.nx-dark :is(.t-blue, .is-blue, .nx-ca-stat-ico-primary)     { --he-tone: #7FA6FF; --he-tone-bg: rgba(127, 166, 255, .12); }
html.nx-dark :is(.t-amber, .is-amber, .nx-ca-stat-ico-warning)   { --he-tone: #FBBF4D; --he-tone-bg: rgba(251, 191, 77, .12); }
html.nx-dark :is(.t-violet, .is-violet)                          { --he-tone: #B69CFF; --he-tone-bg: rgba(182, 156, 255, .12); }
html.nx-dark :is(.t-red, .is-red, .nx-ca-stat-ico-danger)        { --he-tone: #F87171; --he-tone-bg: rgba(248, 113, 113, .12); }
html.nx-dark body.nx-theme .nx-u-tint-tile { background: rgba(74, 222, 155, .12) !important; color: #4ADE9B !important; }
