/* ==========================================================================
   HostPawa design system: core
   --------------------------------------------------------------------------
   Loaded by every layout (public site, order flow, client area, admin,
   invoices). Tokens, base styles and the primitives shared by all of them.

   Everything is scoped to `html.hx`, which every layout sets.
   The brand colour comes from Theme.php (--color-primary and friends), so the
   admin colour settings keep working; all other values are defined here.

   Contents
     1. Tokens              5. Forms
     2. Base                6. Sections and cards
     3. Layout              7. Shared components
     4. Buttons and links   8. Motion

   Area styles build on this file:
     site.css, site-home.css, site-pages.css   public website
     components.css                            order flow, auth and shared widgets
     app.css                                   client area and admin shell
     client.css, admin.css                     area-specific screens
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
html.hx {
    --hx-brand: var(--color-primary, #0845fd);
    --hx-brand-rgb: var(--color-primary-rgb, 8, 69, 253);
    --hx-brand-strong: color-mix(in srgb, var(--hx-brand) 86%, #000);
    --hx-brand-text: var(--hx-brand);
    --hx-brand-on-night: color-mix(in srgb, var(--hx-brand) 50%, #fff);
    --hx-on-brand: var(--color-on-primary, #fff);
    --hx-accent: var(--color-accent, var(--hx-brand));

    --hx-bg: #ffffff;
    --hx-bg-alt: #f6f7f9;
    --hx-surface: #ffffff;
    --hx-surface-2: #f6f7f9;
    --hx-ink: #0b1020;
    --hx-text: #3d4555;
    --hx-muted: #667085;
    --hx-line: #e4e7ec;
    --hx-line-strong: #cdd2db;
    --hx-brand-tint: color-mix(in srgb, var(--hx-brand) 7%, var(--hx-surface));
    --hx-brand-line: color-mix(in srgb, var(--hx-brand) 30%, var(--hx-surface));

    --hx-night: #070b16;
    --hx-night-2: #0d1322;
    --hx-night-3: #151c2f;
    --hx-night-line: rgba(255, 255, 255, 0.1);
    --hx-night-line-strong: rgba(255, 255, 255, 0.18);
    --hx-night-ink: #f4f6fa;
    --hx-night-text: #c5ccda;
    --hx-night-muted: #939db1;

    --hx-ok: #12805c;
    --hx-ok-on-night: #4ad6a0;
    --hx-warn: #b45309;
    --hx-danger: #c62828;

    --hx-r-sm: 6px;
    --hx-r: 10px;
    --hx-r-lg: 14px;
    --hx-r-xl: 20px;

    --hx-shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.05);
    --hx-shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 8px 24px -8px rgba(11, 16, 32, 0.1);
    --hx-shadow-lg: 0 2px 4px rgba(11, 16, 32, 0.04), 0 24px 56px -16px rgba(11, 16, 32, 0.22);

    --hx-container: 1240px;
    --hx-gutter: clamp(1.25rem, 4vw, 2rem);
    --hx-section: clamp(4rem, 8vw, 6.5rem);
    --hx-header-h: 60px;

    --hx-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --hx-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hx-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --hx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Status colours. `-tint` and `-line` are backgrounds and borders for
       badges and notices; `-solid` is a fill that carries white text. */
    --hx-violet: #6d3fc4;
    --hx-ok-solid: #12805c;
    --hx-warn-solid: #b45309;
    --hx-danger-solid: #c62828;
    --hx-violet-solid: #6d3fc4;
    --hx-ok-tint: color-mix(in srgb, var(--hx-ok) 10%, var(--hx-surface));
    --hx-ok-line: color-mix(in srgb, var(--hx-ok) 32%, var(--hx-surface));
    --hx-warn-tint: color-mix(in srgb, var(--hx-warn) 10%, var(--hx-surface));
    --hx-warn-line: color-mix(in srgb, var(--hx-warn) 34%, var(--hx-surface));
    --hx-danger-tint: color-mix(in srgb, var(--hx-danger) 9%, var(--hx-surface));
    --hx-danger-line: color-mix(in srgb, var(--hx-danger) 32%, var(--hx-surface));
    --hx-violet-tint: color-mix(in srgb, var(--hx-violet) 9%, var(--hx-surface));
    --hx-violet-line: color-mix(in srgb, var(--hx-violet) 30%, var(--hx-surface));

    /* Channel triplets for rgba(): lines and washes follow the ink colour,
       shadows stay dark in both themes. */
    --hx-ink-rgb: 11, 16, 32;
    --hx-shadow-rgb: 11, 16, 32;

    /* Application shell */
    --hx-sidebar-w: 15.5rem;
    --hx-sidebar-w-collapsed: 4.25rem;
    --hx-topbar-h: 3.75rem;
}

html.hx[data-theme="dark"] {
    --hx-brand-text: color-mix(in srgb, var(--hx-brand) 58%, #fff);
    --hx-bg: #090d16;
    --hx-bg-alt: #0d121d;
    --hx-surface: #111724;
    --hx-surface-2: #161d2c;
    --hx-ink: #f1f3f8;
    --hx-text: #c3c9d6;
    --hx-muted: #8f99ad;
    --hx-line: #212939;
    --hx-line-strong: #2e3850;
    --hx-brand-tint: color-mix(in srgb, var(--hx-brand) 14%, var(--hx-surface));
    --hx-brand-line: color-mix(in srgb, var(--hx-brand) 45%, var(--hx-surface));
    --hx-night: #05080f;
    --hx-night-2: #0b101b;
    --hx-ok: #4ad6a0;
    --hx-warn: #f5b454;
    --hx-danger: #f58a8a;
    --hx-violet: #b79cf2;
    --hx-ok-solid: #15805e;
    --hx-warn-solid: #a85a12;
    --hx-danger-solid: #c23a3a;
    --hx-violet-solid: #7a52cc;
    --hx-ink-rgb: 241, 243, 248;
    --hx-shadow-rgb: 0, 0, 0;
    --hx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --hx-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -10px rgba(0, 0, 0, 0.6);
    --hx-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 64px -18px rgba(0, 0, 0, 0.75);
}

/* 2. Base
   ========================================================================== */
/* Reset. Kept at the specificity of bare element selectors so every component wins. */
:where(html.hx) *,
:where(html.hx) *::before,
:where(html.hx) *::after {
    box-sizing: border-box;
    margin: 0;
}
:where(html.hx) *:not(input):not(textarea):not(select):not(button) { padding: 0; }
:where(html.hx) img {
    display: block;
    max-width: 100%;
    height: auto;
}

html.hx {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hx-header-h) + 1rem);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html.hx[data-theme="dark"] { color-scheme: dark; }

html.hx body {
    width: 100%;
    font-family: var(--hx-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hx-text);
    background: var(--hx-bg);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.hx h1,
html.hx h2,
html.hx h3,
html.hx h4,
html.hx h5,
html.hx h6 {
    font-family: var(--hx-font-display);
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.15;
    color: var(--hx-ink);
    text-wrap: balance;
}

/* Default sizes and link colours sit at element-level specificity (:where)
   so components that set their own, including shared legacy ones, keep them. */
:where(html.hx) h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.06; }
:where(html.hx) h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); letter-spacing: -0.026em; }
:where(html.hx) h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.3; }
:where(html.hx) h4 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.35; }

html.hx p { text-wrap: pretty; }

html.hx :is(strong, b) { font-weight: 600; }
html.hx :is(code, kbd, samp, pre) { font-family: var(--hx-font-mono); }

:where(html.hx) a {
    color: var(--hx-brand-text);
    text-decoration: none;
    text-underline-offset: 0.2em;
    transition: color 0.16s ease;
}
:where(html.hx) a:hover { color: var(--hx-ink); }

html.hx :focus-visible {
    outline: 2px solid var(--hx-brand-text);
    outline-offset: 2px;
    border-radius: 4px;
}

html.hx ::selection {
    background: color-mix(in srgb, var(--hx-brand) 22%, transparent);
}

html.hx .hp-icon {
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.hx .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The theme switch shows the icon for the theme it switches to. */
html.hx .theme-toggle-icon {
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
html.hx:not([data-theme="dark"]) .theme-toggle-icon--moon,
html.hx[data-theme="dark"] .theme-toggle-icon--sun { display: inline-flex; }

html.hx .skip-link {
    border-radius: var(--hx-r);
    background: var(--hx-ink);
    color: var(--hx-bg);
}

html.hx .back-to-top {
    border-radius: var(--hx-r);
    background: var(--hx-surface);
    color: var(--hx-ink);
    border: 1px solid var(--hx-line-strong);
    box-shadow: var(--hx-shadow);
}
html.hx .back-to-top:hover {
    background: var(--hx-ink);
    color: var(--hx-bg);
    border-color: var(--hx-ink);
}

/* 3. Layout
   ========================================================================== */
html.hx .hx-container {
    width: 100%;
    max-width: calc(var(--hx-container) + (var(--hx-gutter) * 2));
    margin-inline: auto;
    padding-inline: max(var(--hx-gutter), env(safe-area-inset-left)) max(var(--hx-gutter), env(safe-area-inset-right));
}

html.hx .container {
    width: 100%;
    max-width: calc(var(--hx-container) + (var(--hx-gutter) * 2));
}

html.hx .hx-section {
    padding-block: var(--hx-section);
    position: relative;
}
html.hx .hx-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
html.hx .hx-section--flush-top { padding-top: 0; }
html.hx .hx-section--alt { background: var(--hx-bg-alt); }
html.hx .hx-section--line { border-top: 1px solid var(--hx-line); }

html.hx .hx-section--night {
    background: var(--hx-night);
    color: var(--hx-night-text);
    isolation: isolate;
    overflow: hidden;
}

/* Anything inside a night surface reads light. */
html.hx .hx-night h1,
html.hx .hx-night h2,
html.hx .hx-night h3,
html.hx .hx-night h4,
html.hx .hx-section--night h2,
html.hx .hx-section--night h3,
html.hx .hx-section--night h4 {
    color: var(--hx-night-ink);
}

html.hx .hx-head {
    max-width: 42rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
html.hx .hx-head--center {
    margin-inline: auto;
    text-align: center;
}
html.hx .hx-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
}
html.hx .hx-head--split > div { max-width: 42rem; }
html.hx .hx-head h2 + p,
html.hx .hx-head__lead {
    margin-top: 0.9rem;
    font-size: 1.0625rem;
    color: var(--hx-muted);
    max-width: 38rem;
}
html.hx .hx-head--center .hx-head__lead,
html.hx .hx-head--center h2 + p { margin-inline: auto; }
html.hx .hx-section--night .hx-head__lead,
html.hx .hx-section--night .hx-head h2 + p { color: var(--hx-night-muted); }

html.hx .hx-grid {
    display: grid;
    gap: 1.25rem;
}
html.hx .hx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.hx .hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.hx .hx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
    html.hx .hx-grid--3,
    html.hx .hx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    html.hx .hx-grid--2,
    html.hx .hx-grid--3,
    html.hx .hx-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* 4. Buttons and links
   ========================================================================== */
html.hx .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    font-family: var(--hx-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--hx-r);
    border: 1px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .btn:hover:not(:disabled):not(.is-disabled):not(.is-loading) {
    transform: translateY(-1px);
}
html.hx .btn:active:not(:disabled):not(.is-disabled):not(.is-loading) {
    transform: translateY(0) scale(0.985);
}
html.hx .btn-block {
    display: flex;
    width: 100%;
}
html.hx .btn-lg {
    min-height: 3.125rem;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}
html.hx .btn-sm {
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

html.hx .btn-primary {
    background-color: var(--hx-brand);
    color: var(--hx-on-brand);
    border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 16, 32, 0.18);
}
html.hx .btn-primary:hover,
html.hx .btn-primary:active {
    background-color: var(--hx-brand-strong);
    color: var(--hx-on-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px -4px rgba(var(--hx-brand-rgb), 0.55);
}

html.hx .btn-outline {
    background-color: var(--hx-surface);
    color: var(--hx-ink);
    border-color: var(--hx-line-strong);
    box-shadow: var(--hx-shadow-sm);
}
html.hx .btn-outline:hover,
html.hx .btn-outline:active {
    background-color: var(--hx-surface-2);
    color: var(--hx-ink);
    border-color: var(--hx-muted);
    box-shadow: var(--hx-shadow-sm);
}

html.hx .btn-ghost {
    background: transparent;
    color: var(--hx-ink);
    font-weight: 600;
}
html.hx .btn-ghost:hover,
html.hx .btn-ghost:active {
    background: var(--hx-surface-2);
    color: var(--hx-ink);
}

html.hx .btn-white {
    background-color: #fff;
    color: #0b1020;
    border-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
html.hx .btn-white:hover,
html.hx .btn-white:active {
    background-color: #e9edf5;
    border-color: #e9edf5;
    color: #0b1020;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.hx .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}
html.hx .btn-outline-light:hover,
html.hx .btn-outline-light:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.44);
    color: #fff;
    box-shadow: none;
}

html.hx .btn-danger {
    background-color: var(--hx-danger-solid);
    color: #fff;
}
html.hx .btn-danger:hover,
html.hx .btn-danger:active {
    background-color: color-mix(in srgb, var(--hx-danger-solid) 86%, #000);
    color: #fff;
}
html.hx .btn-success {
    background-color: var(--hx-ok-solid);
    color: #fff;
}
html.hx .btn-success:hover,
html.hx .btn-success:active {
    background-color: color-mix(in srgb, var(--hx-ok-solid) 86%, #000);
    color: #fff;
}

html.hx .btn[disabled],
html.hx .btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Busy state: the label hides and a spinner takes its place. */
html.hx :is(button, .btn, input[type="submit"], input[type="button"]).is-loading {
    position: relative;
    opacity: 0.85;
    color: transparent !important;
    cursor: wait;
    pointer-events: none;
}
html.hx :is(button, .btn).is-loading > *:not(.hp-btn-spinner) { visibility: hidden !important; }
html.hx .hp-btn-spinner,
html.hx :is(button, .btn).is-loading:not(:has(.hp-btn-spinner))::before {
    content: "";
    position: absolute;
    inset: 0;
    flex: none;
    width: 0.95em;
    height: 0.95em;
    margin: auto;
    border: 2px solid var(--hx-text);
    border-right-color: transparent;
    border-radius: 50%;
    visibility: visible !important;
    pointer-events: none;
    animation: hx-spin 0.7s linear infinite;
}
html.hx :is(.btn-primary, .btn-danger, .btn-success).is-loading .hp-btn-spinner,
html.hx :is(.btn-primary, .btn-danger, .btn-success).is-loading::before {
    border-color: #fff;
    border-right-color: transparent;
}
html.hx input:is([type="submit"], [type="button"]).is-loading {
    background-image: linear-gradient(90deg, transparent, color-mix(in srgb, currentColor 0%, rgba(255, 255, 255, 0.35)), transparent);
    background-size: 200% 100%;
    animation: hx-sweep 1s linear infinite;
}

/* Full-page busy overlay */
html.hx body.is-page-busy { cursor: wait; }
html.hx .hp-page-busy {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: color-mix(in srgb, var(--hx-bg) 62%, transparent);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
html.hx .hp-page-busy[hidden] { display: none; }
html.hx .hp-page-busy__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-width: 10rem;
    max-width: min(20rem, 92vw);
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    background: var(--hx-surface);
    box-shadow: var(--hx-shadow-lg);
    text-align: center;
}
html.hx .hp-page-busy__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--hx-line-strong);
    border-top-color: var(--hx-brand);
    border-radius: 50%;
    animation: hx-spin 0.7s linear infinite;
}
html.hx .hp-page-busy__label {
    color: var(--hx-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}
@keyframes hx-spin {
    to { transform: rotate(360deg); }
}
@keyframes hx-sweep {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Text link with a trailing arrow. */
html.hx .hx-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hx-brand-text);
    text-decoration: none;
}
html.hx .hx-link .hp-icon { transition: transform 0.2s var(--hx-ease); }
html.hx .hx-link:hover { color: var(--hx-ink); }
html.hx .hx-link:hover .hp-icon { transform: translateX(3px); }
html.hx .hx-night .hx-link,
html.hx .hx-section--night .hx-link { color: var(--hx-brand-on-night); }
html.hx .hx-night .hx-link:hover,
html.hx .hx-section--night .hx-link:hover { color: #fff; }

html.hx .read-more {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hx-brand-text);
}

html.hx .hx-header .hx-iconbtn {
    width: 2.25rem;
    height: 2.25rem;
}
html.hx .hx-iconbtn {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: var(--hx-r);
    background: transparent;
    color: var(--hx-text);
    cursor: pointer;
    position: relative;
    transition: background-color 0.16s ease, color 0.16s ease;
}
html.hx .hx-iconbtn:hover {
    background: var(--hx-surface-2);
    color: var(--hx-ink);
}

/* 5. Forms
   ========================================================================== */
html.hx input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"])),
html.hx select,
html.hx textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
    color: var(--hx-ink);
    background-color: var(--hx-surface);
    border: 1px solid var(--hx-line-strong);
    border-radius: var(--hx-r);
    box-shadow: var(--hx-shadow-sm);
}
html.hx select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--hx-muted) 50%), linear-gradient(135deg, var(--hx-muted) 50%, transparent 50%);
    background-position: right 1.05rem center, right 0.75rem center;
    background-size: 0.3125rem 0.3125rem;
    background-repeat: no-repeat;
}
html.hx select:disabled { cursor: default; }
html.hx textarea {
    min-height: 7.5rem;
    resize: vertical;
}
html.hx input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"])):hover,
html.hx select:hover,
html.hx textarea:hover {
    background-color: var(--hx-surface);
    border-color: var(--hx-muted);
}
html.hx input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"])):focus,
html.hx select:focus,
html.hx textarea:focus {
    background-color: var(--hx-surface);
    border-color: var(--hx-brand-text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-brand) 20%, transparent);
    outline: none;
}
html.hx ::placeholder {
    color: var(--hx-muted);
    opacity: 0.85;
}
html.hx label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .form-group {
    min-width: 0;
    margin-bottom: 1.125rem;
}
html.hx .form-group > label {
    display: block;
    margin-bottom: 0.4rem;
}
html.hx .form-group :is(input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"], [type="range"], [type="color"])), select, textarea) {
    width: 100%;
}
html.hx .form-group.has-error :is(input, select, textarea) { border-color: var(--hx-danger); }
html.hx :is(.field-hint, .form-hint) {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--hx-muted);
}
html.hx .domain-registry-fields {
    min-inline-size: 0;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}
html.hx .domain-registry-fields__title {
    display: block;
    margin: 0 0 0.4rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .phone-input {
    background-color: var(--hx-surface);
    border-color: var(--hx-line-strong);
    border-radius: var(--hx-r);
    box-shadow: var(--hx-shadow-sm);
}

/* 6. Sections and cards
   ========================================================================== */
html.hx .section { padding: var(--hx-section) 0; }
html.hx .section-header {
    max-width: 42rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}
html.hx .section-header h2 { margin-bottom: 0; }
html.hx .section-header p {
    margin-top: 0.9rem;
    font-size: 1.0625rem;
    color: var(--hx-muted);
}

/* Glow media cards — animated stage + copy band (shared public/client language) */
@keyframes hx-glow-drift {
    from { transform: translate(0, 0) scale(1); opacity: 0.55; }
    to { transform: translate(16%, 10%) scale(1.14); opacity: 0.95; }
}

html.hx :is(.hx-card, .client-showcase-card) {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    align-content: start;
    overflow: hidden;
    padding: 0;
    background: var(--hx-surface);
    border: 1px solid color-mix(in srgb, var(--hx-line) 80%, transparent);
    border-radius: var(--hx-r-lg);
    color: var(--hx-text);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    outline: none;
    transition:
        border-color 0.22s ease,
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx a.hx-card:hover,
html.hx :is(.hx-card, .client-showcase-card):hover,
html.hx :is(.hx-card, .client-showcase-card):focus-within {
    border-color: color-mix(in srgb, var(--hx-brand) 26%, var(--hx-line));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
    color: var(--hx-text);
}
html.hx :is(.hx-card__media, .client-showcase-card__media) {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 10.5rem;
    padding: 1.25rem 1.1rem 0.55rem;
    overflow: hidden;
    color: var(--hx-brand-text);
    background:
        radial-gradient(circle at 32% 28%, rgba(var(--hx-brand-rgb), 0.14), transparent 58%),
        radial-gradient(circle at 78% 72%, rgba(59, 130, 246, 0.1), transparent 52%),
        color-mix(in srgb, var(--hx-bg-alt) 78%, var(--hx-surface));
}
html.hx :is(.hx-card__media, .client-showcase-card__media)::before {
    content: "";
    position: absolute;
    inset: -28% auto auto -18%;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(var(--hx-brand-rgb), 0.1);
    filter: blur(8px);
    animation: hx-glow-drift 7s ease-in-out infinite alternate;
    pointer-events: none;
}
html.hx :is(.hx-card__stage, .client-showcase-card__stage) {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(100%, 11rem);
    min-height: 6.5rem;
    padding: 0.25rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx :is(.hx-card, .client-showcase-card):hover :is(.hx-card__stage, .client-showcase-card__stage),
html.hx :is(.hx-card, .client-showcase-card):focus-within :is(.hx-card__stage, .client-showcase-card__stage) {
    transform: translateY(-3px);
}
html.hx :is(.hx-card__stage, .client-showcase-card__stage) :is(.hp-animated-icon, .hx-card__lord, .client-showcase-card__lord, lord-icon, .hp-icon) {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    flex-shrink: 0;
}
html.hx :is(.hx-card__stage, .client-showcase-card__stage) .hp-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--hx-brand-text);
}
html.hx :is(.hx-card__body, .client-showcase-card__body) {
    display: grid;
    gap: 0.45rem;
    padding: 1.05rem 1.15rem 1.25rem;
    min-width: 0;
}
html.hx :is(.hx-card, .client-showcase-card) :is(h2, h3, .hx-card__title) {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hx-ink);
}
html.hx :is(.hx-card, .client-showcase-card) p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--hx-muted);
}
html.hx :is(.hx-card, .client-showcase-card) .hx-link,
html.hx .client-showcase-card__link {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hx-brand-text);
    text-decoration: none;
}
html.hx a.hx-card:hover .hx-link .hp-icon,
html.hx .hx-card:hover .hx-link .hp-icon {
    transform: translateX(3px);
}
html.hx .client-showcase-card__link:hover {
    text-decoration: underline;
}

/* Legacy icon slot → treat as media stage when markup is not yet migrated */
html.hx .hx-card > .hx-card__icon {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 10.5rem;
    margin: 0;
    padding: 1.25rem 1.1rem 0.55rem;
    overflow: hidden;
    color: var(--hx-brand-text);
    background:
        radial-gradient(circle at 32% 28%, rgba(var(--hx-brand-rgb), 0.14), transparent 58%),
        radial-gradient(circle at 78% 72%, rgba(59, 130, 246, 0.1), transparent 52%),
        color-mix(in srgb, var(--hx-bg-alt) 78%, var(--hx-surface));
}
html.hx .hx-card > .hx-card__icon::before {
    content: "";
    position: absolute;
    inset: -28% auto auto -18%;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(var(--hx-brand-rgb), 0.1);
    filter: blur(8px);
    animation: hx-glow-drift 7s ease-in-out infinite alternate;
    pointer-events: none;
}
html.hx .hx-card > .hx-card__icon > * {
    position: relative;
    z-index: 1;
}
html.hx .hx-card > :not(.hx-card__icon):not(.hx-card__media):not(.hx-card__body) {
    margin-left: 1.15rem;
    margin-right: 1.15rem;
}
html.hx .hx-card > :not(.hx-card__icon):not(.hx-card__media):not(.hx-card__body):nth-child(2) {
    margin-top: 1.05rem;
}
html.hx .hx-card > :not(.hx-card__icon):not(.hx-card__media):not(.hx-card__body):last-child {
    margin-bottom: 1.25rem;
}

html[data-theme="dark"] :is(.hx-card, .client-showcase-card) {
    background: var(--hx-surface);
    border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] :is(.hx-card__media, .client-showcase-card__media),
html[data-theme="dark"] .hx-card > .hx-card__icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--hx-brand-rgb), 0.2), transparent 55%),
        var(--hx-night);
}
html[data-theme="dark"] :is(.hx-card, .client-showcase-card) :is(h2, h3, .hx-card__title) {
    color: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    html.hx :is(.hx-card, .client-showcase-card),
    html.hx :is(.hx-card__stage, .client-showcase-card__stage) {
        transition: none !important;
    }
    html.hx :is(.hx-card__media, .client-showcase-card__media)::before,
    html.hx .hx-card > .hx-card__icon::before {
        animation: none;
    }
    html.hx :is(.hx-card, .client-showcase-card):hover,
    html.hx :is(.hx-card, .client-showcase-card):focus-within,
    html.hx :is(.hx-card, .client-showcase-card):hover :is(.hx-card__stage, .client-showcase-card__stage),
    html.hx :is(.hx-card, .client-showcase-card):focus-within :is(.hx-card__stage, .client-showcase-card__stage) {
        transform: none;
    }
}

/* Hairline grid: cells separated by rules rather than boxed as cards. */
html.hx .hx-cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--hx-line);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    overflow: hidden;
}
html.hx .hx-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.hx .hx-cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.hx .hx-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: clamp(1.25rem, 2.4vw, 1.875rem);
    background: var(--hx-surface);
    overflow: hidden;
    transition: background-color 0.25s ease;
}
html.hx .hx-cell::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--hx-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
html.hx .hx-cell:hover::after,
html.hx .hx-cell:focus-within::after {
    transform: scaleX(1);
}
html.hx .hx-cell__icon {
    margin-bottom: 0.75rem;
    color: var(--hx-brand-text);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .hx-cell:hover .hx-cell__icon,
html.hx .hx-cell:focus-within .hx-cell__icon {
    transform: translateY(-2px);
}
html.hx .hx-cell h3 { font-size: 1.0625rem; }
html.hx .hx-cell p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--hx-muted);
}
html.hx .hx-section--night .hx-cells {
    background: var(--hx-night-line);
    border-color: var(--hx-night-line);
}
html.hx .hx-section--night .hx-cell { background: var(--hx-night); }
html.hx .hx-section--night .hx-cell p { color: var(--hx-night-muted); }
html.hx .hx-section--night .hx-cell__icon { color: var(--hx-brand-on-night); }

@media (max-width: 960px) {
    html.hx .hx-cells,
    html.hx .hx-cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    html.hx .hx-cells,
    html.hx .hx-cells--2,
    html.hx .hx-cells--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Stat strip */
html.hx .hx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    border-bottom: 1px solid var(--hx-line);
    background: var(--hx-bg);
}
html.hx .hx-stats__wrap { border-bottom: 1px solid var(--hx-line); }
html.hx .hx-stats__wrap .hx-stats { border-bottom: 0; }
html.hx .hx-stat {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    padding: 1.55rem 1.5rem 1.65rem 0;
    overflow: hidden;
    transition: background-color 0.25s ease;
}
html.hx .hx-stat + .hx-stat {
    padding-left: 1.5rem;
    border-left: 1px solid var(--hx-line);
}
html.hx .hx-stat::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--hx-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
html.hx .hx-stat + .hx-stat::after {
    left: 1.5rem;
}
html.hx .hx-stat:hover::after,
html.hx .hx-stat:focus-within::after {
    transform: scaleX(1);
}
html.hx .hx-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0.05rem;
    border-radius: var(--hx-r-sm, 0.45rem);
    color: var(--hx-brand-text);
    background: color-mix(in srgb, var(--hx-brand) 10%, transparent);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}
html.hx .hx-stat:hover .hx-stat__icon,
html.hx .hx-stat:focus-within .hx-stat__icon {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--hx-brand) 16%, transparent);
}
html.hx .hx-stat__icon .hp-icon {
    display: block;
}
html.hx .hx-stat__body {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    flex: 1 1 auto;
}
html.hx .hx-stat__value {
    font-family: var(--hx-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--hx-ink);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    transition: color 0.2s ease;
}
html.hx .hx-stat:hover .hx-stat__value,
html.hx .hx-stat:focus-within .hx-stat__value {
    color: var(--hx-brand-text);
}
html.hx .hx-stat__value--compact {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    letter-spacing: -0.015em;
    line-height: 1.35;
}
html.hx .hx-stat__value-row {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
}
html.hx .hx-stat__value-row .hx-stat__value {
    flex: 1 1 auto;
    min-width: 0;
}
html.hx .hx-stat__email {
    color: inherit;
    text-decoration: none;
}
html.hx .hx-stat__email:hover {
    color: var(--hx-brand-text);
    text-decoration: underline;
}
html.hx .hx-stat__copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-top: 0.05rem;
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-sm, 0.45rem);
    background: var(--hx-surface);
    color: var(--hx-muted);
    cursor: pointer;
}
html.hx .hx-stat__copy:hover {
    color: var(--hx-brand-text);
    border-color: color-mix(in srgb, var(--hx-brand) 30%, var(--hx-line));
}
html.hx .hx-stat__label {
    font-size: 0.875rem;
    color: var(--hx-muted);
}
@media (max-width: 900px) {
    html.hx .hx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    html.hx .hx-stats { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-stat { padding: 1.1rem 0 1.2rem; }
    html.hx .hx-stat + .hx-stat {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--hx-line);
    }
    html.hx .hx-stat + .hx-stat::after {
        left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.hx .hx-stat,
    html.hx .hx-stat::after,
    html.hx .hx-stat__icon,
    html.hx .hx-stat__value {
        transition: none !important;
    }
    html.hx .hx-stat:hover .hx-stat__icon,
    html.hx .hx-stat:focus-within .hx-stat__icon {
        transform: none;
    }
}

/* Numbered steps */
html.hx .hx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
    counter-reset: hx-step;
}
html.hx .hx-step {
    position: relative;
    padding-top: 1.5rem;
    border-top: 2px solid color-mix(in srgb, var(--hx-line-strong) 70%, transparent);
}
html.hx .hx-step::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--hx-brand);
    transform-origin: left center;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .hx-step:hover::before,
html.hx .hx-step:focus-within::before {
    width: 100%;
}
html.hx .hx-step__num {
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--hx-brand-text);
    transition: color 0.25s ease;
}
html.hx .hx-step:hover .hx-step__num,
html.hx .hx-step:focus-within .hx-step__num {
    color: var(--hx-brand);
}
html.hx .hx-step h3 {
    font-size: 1.125rem;
    transition: color 0.25s ease;
}
html.hx .hx-step:hover h3,
html.hx .hx-step:focus-within h3 {
    color: var(--hx-ink);
}
html.hx .hx-step p {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--hx-muted);
}
@media (prefers-reduced-motion: reduce) {
    html.hx .hx-step::before,
    html.hx .hx-step__num,
    html.hx .hx-step h3 {
        transition: none;
    }
}

/* Two-column detail block */
html.hx .hx-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}
html.hx .hx-split__lead {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--hx-muted);
    max-width: 36rem;
}
@media (max-width: 900px) {
    html.hx .hx-split { grid-template-columns: minmax(0, 1fr); }
}

html.hx .hx-checks {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
html.hx .hx-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--hx-text);
}
html.hx .hx-checks .hp-icon {
    flex: none;
    margin-top: 0.2rem;
    color: var(--hx-brand-text);
}
html.hx .hx-checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; }
@media (max-width: 600px) {
    html.hx .hx-checks--cols { grid-template-columns: minmax(0, 1fr); }
}
html.hx .hx-night .hx-checks li,
html.hx .hx-section--night .hx-checks li { color: var(--hx-night-text); }
html.hx .hx-night .hx-checks .hp-icon,
html.hx .hx-section--night .hx-checks .hp-icon { color: var(--hx-ok-on-night); }

html.hx .hx-panel {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    transition: border-color 0.22s ease, box-shadow 0.28s ease;
}
html.hx .hx-panel:hover {
    border-color: color-mix(in srgb, var(--hx-brand) 18%, var(--hx-line));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
html.hx .hx-panel--muted { background: var(--hx-surface-2); }
html.hx .hx-panel__title {
    margin-bottom: 1rem;
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-muted);
}
html.hx .hx-rows { display: grid; }
html.hx .hx-rows li {
    display: grid;
    gap: 0.15rem;
    padding-block: 0.875rem;
    border-top: 1px solid var(--hx-line);
}
html.hx .hx-rows li:first-child { border-top: 0; padding-top: 0; }
html.hx .hx-rows li:last-child { padding-bottom: 0; }
html.hx .hx-rows strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .hx-rows span {
    font-size: 0.875rem;
    color: var(--hx-muted);
}

html.hx .hx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--hx-muted);
    border: 1px solid var(--hx-line-strong);
    border-radius: var(--hx-r-sm);
    white-space: nowrap;
}
html.hx .hx-badge--brand {
    color: var(--hx-brand-text);
    background: var(--hx-brand-tint);
    border-color: var(--hx-brand-line);
}
html.hx .hx-badge--ok {
    color: var(--hx-ok);
    border-color: color-mix(in srgb, var(--hx-ok) 40%, transparent);
    background: color-mix(in srgb, var(--hx-ok) 9%, transparent);
}

/* Closing call to action */
html.hx .hx-cta { padding-block: clamp(3rem, 6vw, 5rem) var(--hx-section); }
html.hx .hx-cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--hx-night);
    color: var(--hx-night-text);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-xl);
}
html.hx .hx-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 38rem;
}
html.hx .hx-cta__copy h2 { color: var(--hx-night-ink); }
html.hx .hx-cta__copy p {
    margin-top: 0.9rem;
    font-size: 1.0625rem;
    color: var(--hx-night-text);
}
html.hx .hx-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

html.hx .cta-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    text-align: left;
    background: var(--hx-night);
    color: var(--hx-night-text);
    box-shadow: none;
    clip-path: none;
}
html.hx .cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
}
html.hx .cta-banner h2 {
    max-width: 24ch;
    margin: 0;
    color: var(--hx-night-ink);
}
html.hx .cta-banner p {
    max-width: 38rem;
    margin: 0.9rem 0 0;
    font-size: 1.0625rem;
    color: var(--hx-night-text);
}

/* Generic table */
html.hx .hx-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    background: var(--hx-surface);
    -webkit-overflow-scrolling: touch;
}
html.hx .hx-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
html.hx .hx-table th,
html.hx .hx-table td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--hx-line);
}
html.hx .hx-table thead th {
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-muted);
    background: var(--hx-surface-2);
}
html.hx .hx-table tbody th {
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .hx-table tbody tr:last-child th,
html.hx .hx-table tbody tr:last-child td { border-bottom: 0; }
html.hx .hx-table tbody tr {
    transition: background-color 0.18s ease;
}
html.hx .hx-table tbody tr:hover {
    background-color: color-mix(in srgb, var(--hx-brand) 5%, var(--hx-surface));
}

/* 7. Shared components
   ========================================================================== */

/* Domain search (markup shared with the client area) */
html.hx .domain-search-form {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
    flex-wrap: nowrap;
}
html.hx .search-input-wrap {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line-strong);
    border-radius: 12px;
    box-shadow: var(--hx-shadow-sm);
    overflow: visible;
}
/* Keep off-screen helpers from widening the page on small screens: the
   visually hidden native select is pinned inside its picker, and tooltip
   popups take no space until the script anchors them. */
html.hx .domain-tld-select--native {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 0;
}
html.hx.hx-js .feature-help-tip__popup:not(.is-anchored) { display: none; }
html.hx .search-input-wrap:focus-within {
    background: var(--hx-surface);
    border-color: var(--hx-brand-text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-brand) 20%, transparent);
}
html.hx .search-input-wrap input,
html.hx .search-input-wrap input:hover,
html.hx .search-input-wrap input:focus {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 1.125rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.2;
    background: transparent;
    border: 0;
    border-radius: 11px 0 0 11px;
    box-shadow: none;
}
html.hx .domain-tld-picker {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    height: auto;
    padding: 0.4rem 0.4rem 0.4rem 0;
    border-left: 1px solid var(--hx-line);
}
html.hx .domain-tld-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 2.55rem;
    min-height: 2.55rem;
    margin: 0;
    padding: 0 0.85rem;
    font-weight: 600;
    line-height: 1;
    background: var(--hx-surface-2);
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
}
html.hx .domain-tld-trigger:hover,
html.hx .domain-tld-picker.is-open .domain-tld-trigger {
    background: color-mix(in srgb, var(--hx-brand) 12%, var(--hx-surface-2));
}
html.hx .domain-tld-trigger-value {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
html.hx .domain-tld-trigger-meta {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--hx-muted);
    background: none;
}
html.hx .domain-tld-trigger-caret {
    width: 0.4rem;
    height: 0.4rem;
    margin: 0;
    border-width: 0 1.5px 1.5px 0;
    border-color: var(--hx-muted);
    transform: translateY(-0.5px) rotate(45deg);
}
html.hx .domain-tld-picker.is-open .domain-tld-trigger-caret {
    margin: 0;
    transform: translateY(0.5px) rotate(-135deg);
}
html.hx .domain-search-form .btn,
html.hx .domain-search-form .btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 3.5rem;
    min-height: 3.5rem;
    padding: 0 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.2;
    box-sizing: border-box;
}
html.hx .domain-tld-panel {
    padding: 1rem;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    box-shadow: var(--hx-shadow-lg);
    text-align: left;
}
html.hx .domain-tld-panel-head strong {
    font-family: var(--hx-font-display);
    font-weight: 500;
    color: var(--hx-ink);
}
html.hx .domain-tld-filter input {
    background: var(--hx-surface);
    border: 1px solid var(--hx-line-strong);
    border-radius: var(--hx-r);
}
html.hx .domain-tld-group-label {
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--hx-muted);
}
html.hx .domain-tld-chip {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line-strong);
    border-radius: 8px;
}
html.hx .domain-tld-chip:hover {
    background: var(--hx-surface-2);
    border-color: var(--hx-muted);
}
html.hx .domain-tld-chip.is-active {
    background: var(--hx-ink);
    border-color: var(--hx-ink);
    color: var(--hx-bg);
}
html.hx .domain-tld-panel-link {
    font-weight: 600;
    color: var(--hx-brand-text);
}
html.hx .domain-search-ext-hint,
html.hx .domain-search-ext-hint--shop {
    margin: 0.875rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 0.875rem;
    color: var(--hx-muted);
    text-align: left;
}
html.hx .domain-search-ext-hint strong { color: var(--hx-ink); }
html.hx .domain-search-ext-hint a {
    color: var(--hx-brand-text);
    font-weight: 600;
}

html.hx .domain-check-result {
    margin-top: 0.875rem;
    padding: 0.8rem 1rem;
    font-size: 0.9375rem;
    text-align: left;
    border: 1px solid transparent;
    border-radius: var(--hx-r);
}
html.hx .domain-check-result.is-neutral,
html.hx .domain-check-result.is-loading {
    background: var(--hx-surface-2);
    border-color: var(--hx-line);
    color: var(--hx-text);
}
html.hx .domain-check-result.is-available {
    background: color-mix(in srgb, var(--hx-ok) 10%, var(--hx-surface));
    border-color: color-mix(in srgb, var(--hx-ok) 35%, var(--hx-surface));
    color: var(--hx-ink);
}
html.hx .domain-check-result.is-unavailable,
html.hx .domain-check-result.is-error {
    background: color-mix(in srgb, var(--hx-danger) 9%, var(--hx-surface));
    border-color: color-mix(in srgb, var(--hx-danger) 32%, var(--hx-surface));
    color: var(--hx-ink);
}
html.hx .domain-check-result.is-in-cart,
html.hx .domain-check-result.is-in-system {
    background: var(--hx-brand-tint);
    border-color: var(--hx-brand-line);
    color: var(--hx-ink);
}

html.hx .domain-prices {
    gap: 0.75rem;
    margin-top: 1.25rem;
}
html.hx .domain-prices-label {
    margin: 0;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--hx-muted);
}
html.hx .domain-prices-row {
    justify-content: flex-start;
    gap: 0.5rem;
}
html.hx .domain-price-item {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    transition: border-color 0.14s ease, background-color 0.14s ease;
}
html.hx .domain-price-item:hover,
html.hx .domain-price-item:focus-visible {
    border-color: var(--hx-brand-text);
    background: var(--hx-brand-tint);
}
html.hx .domain-price-tld {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .domain-price-tld::before { content: "."; margin-right: -0.35rem; }
html.hx .domain-price-amount {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hx-muted);
}
html.hx .domain-price-more,
html.hx .domain-prices-row .domain-price-more {
    align-self: center;
    margin-left: 0.5rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hx-brand-text);
    text-decoration: none;
}
html.hx .tld-badge {
    padding: 0.1rem 0.35rem;
    font-family: var(--hx-font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
}

@media (max-width: 640px) {
    html.hx .domain-search-form { flex-wrap: wrap; }
    html.hx .domain-search-form .btn,
    html.hx .domain-search-form .btn-lg {
        flex: 1 1 100%;
        height: 3.25rem;
        min-height: 3.25rem;
    }
    html.hx .search-input-wrap {
        height: 3.25rem;
        min-height: 3.25rem;
    }
    html.hx .search-input-wrap input { padding: 0 0.875rem; font-size: 1rem; }
    html.hx .domain-tld-trigger { padding: 0 0.75rem; }
}

/* Billing period toggle */
html.hx .billing-toggle {
    gap: 0.125rem;
    padding: 0.25rem;
    background: var(--hx-surface-2);
    border: 1px solid var(--hx-line);
    border-radius: 12px;
}
html.hx .billing-toggle__btn {
    padding: 0.5rem 1rem;
    font-family: var(--hx-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hx-muted);
    border-radius: 8px;
}
html.hx .billing-toggle__btn.is-active {
    background: var(--hx-surface);
    color: var(--hx-ink);
    box-shadow: var(--hx-shadow-sm), 0 0 0 1px var(--hx-line);
}
html.hx .billing-toggle__save {
    padding: 0.1rem 0.35rem;
    font-family: var(--hx-font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--hx-ok);
    background: color-mix(in srgb, var(--hx-ok) 12%, transparent);
    border-radius: 4px;
}

/* Pricing cards (markup shared with the client order page) */
html.hx .pricing-board {
    align-items: stretch;
    gap: 1.75rem;
}
html.hx .pricing-board > .billing-toggle { align-self: center; }
html.hx .pricing-cards { gap: 1.25rem; }
html.hx .pricing-card {
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    box-shadow: none;
    overflow: visible;
    transition:
        border-color 0.22s ease,
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .pricing-card:hover {
    transform: translateY(-3px);
    border-color: var(--hx-line-strong);
    box-shadow: var(--hx-shadow);
}
html.hx .pricing-card.popular {
    border-color: var(--hx-brand-text);
    box-shadow: 0 0 0 1px var(--hx-brand-text), var(--hx-shadow);
}
html.hx .pricing-card.popular:hover { box-shadow: 0 0 0 1px var(--hx-brand-text), var(--hx-shadow-lg); }
html.hx .pricing-card__header {
    gap: 1.25rem;
    min-height: 0;
    padding: 1.75rem 1.75rem 0;
    color: var(--hx-ink);
    background: none;
    clip-path: none;
}
html.hx .pricing-card__header::before { display: none; }
html.hx .pricing-card h3 {
    max-width: none;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--hx-ink);
}
html.hx .popular-badge {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    padding: 0.2rem 0.5rem;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--hx-brand-text);
    background: var(--hx-brand-tint);
    border: 1px solid var(--hx-brand-line);
    border-radius: var(--hx-r-sm);
}
html.hx .pricing-card__price {
    align-items: baseline;
    gap: 0.5rem;
    color: var(--hx-ink);
}
html.hx .pricing-card .currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--hx-ink);
}
html.hx .pricing-card .amount,
html.hx .pricing-cards--count-4 .amount {
    font-size: clamp(2.25rem, 3.4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--hx-ink);
}
html.hx .pricing-card__period {
    padding: 0;
    font-size: 0.875rem;
    color: var(--hx-muted);
    opacity: 1;
}
html.hx .plan-price-strike {
    font-size: 0.875rem;
    color: var(--hx-muted);
}
html.hx .pricing-card__body {
    gap: 0.75rem;
    margin-top: 0;
    padding: 1rem 1.75rem 1.75rem;
    background: none;
}
html.hx .plan-renewal,
html.hx .plan-pricing-note,
html.hx .plan-equivalent,
html.hx .plan-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: left;
    color: var(--hx-muted);
}
html.hx .plan-desc { font-size: 0.875rem; }
html.hx .plan-features-block {
    gap: 0.875rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hx-line);
    width: 100%;
}
html.hx .plan-features { gap: 0.7rem; }
html.hx .plan-features li {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--hx-text);
}
html.hx .pricing-card .check { color: var(--hx-brand-text); }
html.hx .pricing-card .check circle { display: none; }
html.hx .plan-features-more {
    font-size: 0.875rem;
    color: var(--hx-brand-text);
}
html.hx .pricing-card__footer {
    gap: 1rem;
    padding-top: 1.25rem;
}
html.hx .pricing-card__cta,
html.hx .pricing-card__cta.btn-outline {
    min-height: 2.875rem;
    background: var(--hx-surface);
    border-color: var(--hx-line-strong);
    border-radius: var(--hx-r);
    color: var(--hx-ink);
    box-shadow: var(--hx-shadow-sm);
}
html.hx .pricing-card__cta.btn-outline:hover {
    background: var(--hx-surface-2);
    border-color: var(--hx-muted);
    color: var(--hx-ink);
}
html.hx .pricing-card.popular .pricing-card__cta.btn-outline {
    background: var(--hx-brand);
    border-color: transparent;
    color: var(--hx-on-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 16, 32, 0.18);
}
html.hx .pricing-card.popular .pricing-card__cta.btn-outline:hover {
    filter: none;
    background: var(--hx-brand-strong);
    color: var(--hx-on-brand);
}
html.hx .pricing-card__cta-check { display: none; }
html.hx .pricing-card__cta.is-added .pricing-card__cta-check,
html.hx .pricing-card__cta.is-in-cart .pricing-card__cta-check { display: inline; }

@media (max-width: 1040px) {
    html.hx .pricing-cards--count-3,
    html.hx .pricing-cards--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    html.hx .pricing-cards,
    html.hx .pricing-cards--count-2,
    html.hx .pricing-cards--count-3,
    html.hx .pricing-cards--count-4 {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
    }
}

/* FAQ — marketing hairline variant (keeps shared open/close motion) */
html.hx .faq-list {
    max-width: 48rem;
    gap: 0;
    border-top: 1px solid var(--hx-line);
}
html.hx .faq-item {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--hx-line);
    border-radius: 0;
    box-shadow: none;
}
html.hx .faq-item[open] {
    border-color: transparent;
    border-bottom-color: var(--hx-line);
    box-shadow: none;
}
html.hx .faq-item::before {
    top: auto;
    bottom: -1px;
    width: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
}
html.hx .faq-item[open]::before {
    width: 100%;
    transform: scaleX(1);
}
html.hx .faq-item > summary {
    gap: 1.5rem;
    padding: 1.25rem 0;
    font-family: var(--hx-font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    line-height: 1.4;
    color: var(--hx-ink);
}
html.hx .faq-item > summary:hover { color: var(--hx-brand-text); }
html.hx .faq-toggle,
html.hx .faq-item[open] > summary .faq-toggle {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    background: color-mix(in srgb, var(--hx-brand) 8%, transparent);
    color: var(--hx-muted);
}
html.hx .faq-item[open] > summary .faq-toggle {
    color: var(--hx-brand-text);
    background: color-mix(in srgb, var(--hx-brand) 14%, transparent);
}
html.hx .faq-item > summary:hover .faq-toggle { color: var(--hx-brand-text); }
html.hx .faq-answer {
    max-width: 42rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--hx-muted);
}
html.hx .faq-answer__inner {
    padding: 0 0 1.5rem;
}
html.hx .faq-group { max-width: 48rem; }
html.hx .faq-group-title {
    font-family: var(--hx-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

html.hx .hx-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
}
html.hx .hx-faq .hx-head {
    position: sticky;
    top: calc(var(--hx-header-h) + 2rem);
    margin-bottom: 0;
}
html.hx .hx-faq .faq-list {
    max-width: none;
    margin: 0;
}
@media (max-width: 900px) {
    html.hx .hx-faq { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-faq .hx-head { position: static; }
}

/* Order assurances under the pricing cards */
html.hx .store-trust-strip { margin: 0; }
html.hx .store-trust-strip__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hx-line);
}
html.hx .store-trust-strip__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}
html.hx .store-trust-strip__icon {
    width: auto;
    height: auto;
    margin-top: 0.15rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--hx-brand-text);
}
html.hx .store-trust-strip__body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.625rem;
}
html.hx .store-trust-strip__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .store-trust-strip__link,
html.hx .store-trust-strip__meta {
    font-size: 0.8125rem;
    color: var(--hx-muted);
}
html.hx .store-trust-strip__link { text-decoration: underline; text-decoration-color: var(--hx-line-strong); }
html.hx .store-trust-strip__link:hover { color: var(--hx-brand-text); }

html.hx .empty-state {
    padding: 2.5rem 1.5rem;
    background: var(--hx-surface-2);
    border: 1px dashed var(--hx-line-strong);
    border-radius: var(--hx-r-lg);
    color: var(--hx-muted);
}

/* Status badges. One shape everywhere; the status class only picks the tone,
   and the border follows the text colour. */
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge, .client-upgrade-badge, .feature-type-badge, .feature-vis-badge) {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
    border-radius: 5px;
    background: var(--hx-surface-2);
    color: var(--hx-muted);
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge, .feature-type-badge, .feature-vis-badge):is(.active, .paid, .success, .completed, .sent, .is-on, .is-paid, .is-good, .is-active, .ticket-answered, .domain-req-approved, .partner-active, .partner-comm-available, .partner-payout-paid, .ns-resolved, .sync-action-updated, .sync-run-completed, .clients-status--active, .badge-published, .badge-success, .badge-active, .badge-hired, .tld-badge-featured, .feature-type-badge--quantity, .feature-vis-badge--hint) {
    background: var(--hx-ok-tint);
    color: var(--hx-ok);
}
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge, .feature-type-badge, .feature-vis-badge):is(.unpaid, .pending, .queued, .grace, .is-warn, .is-overdue, .ticket-customer-reply, .ticket-priority-medium, .domain-req-needs-docs, .partner-pending, .partner-comm-pending, .partner-payout-pending, .ns-scheduled, .sync-action-mismatch, .sync-run-running, .clients-status--inactive, .badge-draft, .badge-warning, .badge-popular, .tld-badge-sale) {
    background: var(--hx-warn-tint);
    color: var(--hx-warn);
}
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge, .feature-type-badge, .feature-vis-badge):is(.suspended, .failed, .redemption, .is-bad, .is-unpaid, .ticket-priority-high, .domain-req-rejected, .partner-suspended, .partner-payout-rejected, .ns-open, .ns-priority-high, .sync-action-failed, .sync-run-failed, .badge-danger, .badge-rejected, .tld-badge-hot, .feature-vis-badge--muted) {
    background: var(--hx-danger-tint);
    color: var(--hx-danger);
}
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge, .client-upgrade-badge, .feature-type-badge, .feature-vis-badge):is(.ticket-open, .ticket-in-progress, .domain-req-pending, .partner-comm-paid, .ns-priority-medium, .sync-action-synced, .migration-active, .badge-admin, .badge-linked, .badge-new, .tld-badge-new, .feature-type-badge--text, .client-upgrade-badge) {
    background: var(--hx-brand-tint);
    color: var(--hx-brand-text);
}
html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill):is(.refunded, .is-refunded, .ticket-on-hold, .tld-badge-restricted) {
    background: var(--hx-violet-tint);
    color: var(--hx-violet);
}
html.hx .badge-status.ns-affects-you {
    border-color: transparent;
    background: var(--hx-brand);
    color: var(--hx-on-brand);
}
:where(html.hx) :is(.tld-badge, .client-upgrade-badge) { margin-left: 0.35rem; }

/* Notices */
html.hx .alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r);
    background: var(--hx-surface-2);
    color: var(--hx-text);
    font-size: 0.875rem;
    line-height: 1.5;
    animation: hx-alert-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hx-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
html.hx .alert-success {
    background: var(--hx-ok-tint);
    border-color: var(--hx-ok-line);
    color: var(--hx-ok);
}
html.hx :is(.alert-error, .alert-danger) {
    background: var(--hx-danger-tint);
    border-color: var(--hx-danger-line);
    color: var(--hx-danger);
}
html.hx .alert-warning {
    background: var(--hx-warn-tint);
    border-color: var(--hx-warn-line);
    color: var(--hx-warn);
}
html.hx .alert-info {
    background: var(--hx-brand-tint);
    border-color: var(--hx-brand-line);
    color: var(--hx-brand-text);
}
html.hx .alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
}
html.hx .alert a:hover {
    text-decoration-style: solid;
}

/* Support ticket thread (public ticket view, client area and admin) */
html.hx .ticket-thread {
    display: grid;
    gap: 1rem;
    max-width: 48rem;
}
html.hx .ticket-msg {
    overflow: hidden;
    border: 1px solid var(--hx-line);
    border-left: 3px solid var(--hx-line-strong);
    border-radius: var(--hx-r-lg);
    background: var(--hx-surface);
    box-shadow: var(--hx-shadow-sm);
}
html.hx .ticket-msg.is-staff { border-left-color: var(--hx-brand); }
html.hx .ticket-msg.is-note {
    border-left-color: var(--hx-warn-solid);
    background: var(--hx-warn-tint);
}
html.hx .ticket-msg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--hx-line);
    background: var(--hx-surface-2);
    color: var(--hx-muted);
    font-size: 0.8125rem;
}
html.hx .ticket-msg.is-note .ticket-msg-head { background: transparent; }
html.hx .ticket-msg-head strong {
    color: var(--hx-ink);
    font-size: 0.9375rem;
}
html.hx .ticket-msg-head time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}
html.hx .ticket-msg-role {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--hx-line-strong);
    border-radius: 5px;
    background: var(--hx-surface);
    color: var(--hx-muted);
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
html.hx .ticket-msg.is-staff .ticket-msg-role {
    border-color: var(--hx-brand-line);
    background: var(--hx-brand-tint);
    color: var(--hx-brand-text);
}
html.hx .ticket-msg.is-note .ticket-msg-role {
    border-color: var(--hx-warn-line);
    background: var(--hx-warn-tint);
    color: var(--hx-warn);
}
html.hx .ticket-msg-body {
    max-width: 42rem;
    padding: 1rem 1.1rem 1.15rem;
    color: var(--hx-ink);
    font-size: 0.9375rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
}
html.hx .ticket-msg-body p { margin: 0 0 0.9rem; }
html.hx .ticket-msg-body :is(h2, h3, h4) {
    margin: 1.1rem 0 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
}
html.hx .ticket-msg-body :is(h2, h3, h4):first-child { margin-top: 0; }
html.hx .ticket-msg-body .ticket-list {
    display: grid;
    gap: 0.28rem;
    margin: 0 0 0.7rem;
    padding-left: 1.25rem;
}
html.hx .ticket-msg-body .ticket-quote {
    margin: 0 0 0.7rem;
    padding: 0.15rem 0 0.15rem 0.85rem;
    border-left: 3px solid var(--hx-line-strong);
    color: var(--hx-muted);
}
html.hx .ticket-msg-body .ticket-code {
    display: block;
    margin: 0 0 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--hx-r);
    background: var(--hx-night-2);
    color: var(--hx-night-text);
    font-size: 0.8125rem;
    line-height: 1.45;
    overflow-x: auto;
    white-space: pre-wrap;
}
html.hx .ticket-msg-body .ticket-icode {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--hx-surface-2);
    font-size: 0.88em;
}
html.hx .ticket-msg-body :is(p, .ticket-list, .ticket-quote, .ticket-code):last-child { margin-bottom: 0; }
html.hx .ticket-msg-body a {
    color: var(--hx-brand-text);
    word-break: break-all;
}
html.hx .ticket-msg-edited {
    font-style: italic;
    cursor: help;
}
html.hx .ticket-msg-edit-toggle {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hx-brand-text);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
html.hx .ticket-msg-edit { padding: 0.3rem 1rem 0.9rem; }
html.hx .ticket-msg-edit textarea {
    width: 100%;
    min-height: 8rem;
}
html.hx .ticket-msg-edit-hint {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.8125rem;
    color: var(--hx-muted);
}
html.hx .ticket-msg-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
@media (max-width: 820px) {
    html.hx .ticket-msg-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    html.hx .ticket-msg-head time { margin-left: 0; }
}

/* 8. Motion
   ========================================================================== */
html.hx.hx-js .hx-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.7s var(--hx-ease);
    transition-delay: var(--hx-delay, 0s);
}
html.hx.hx-js .hx-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Sibling stagger without per-item markup */
html.hx.hx-js .hx-reveal:nth-child(1) { --hx-delay: 0s; }
html.hx.hx-js .hx-reveal:nth-child(2) { --hx-delay: 0.05s; }
html.hx.hx-js .hx-reveal:nth-child(3) { --hx-delay: 0.1s; }
html.hx.hx-js .hx-reveal:nth-child(4) { --hx-delay: 0.15s; }
html.hx.hx-js .hx-reveal:nth-child(5) { --hx-delay: 0.2s; }
html.hx.hx-js .hx-reveal:nth-child(6) { --hx-delay: 0.25s; }
html.hx.hx-js .hx-reveal:nth-child(7) { --hx-delay: 0.3s; }
html.hx.hx-js .hx-reveal:nth-child(8) { --hx-delay: 0.35s; }

html.hx .hx-checks .hp-icon {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .hx-checks li:hover .hp-icon {
    transform: scale(1.08);
}

html.hx :where(.badge, .badge-status, .client-pill, .clients-status, .tld-badge, .inv-status-pill, .client-domain-badge):is(.active, .paid, .success, .completed, .is-on, .is-paid, .is-good, .is-active, .badge-success, .badge-active) {
    animation: hx-status-glow 2.4s ease-in-out infinite;
}
@keyframes hx-status-glow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent); }
    50% { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }
}

html.hx .hx-link {
    transition: color 0.18s ease;
}
html.hx .hx-link .hp-icon {
    transition: transform 0.22s var(--hx-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (prefers-reduced-motion: reduce) {
    html.hx { scroll-behavior: auto; }
    html.hx *,
    html.hx *::before,
    html.hx *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    html.hx.hx-js .hx-reveal {
        opacity: 1;
        transform: none;
    }
    html.hx .btn:hover:not(:disabled):not(.is-disabled):not(.is-loading),
    html.hx .btn:active:not(:disabled):not(.is-disabled):not(.is-loading),
    html.hx .pricing-card:hover,
    html.hx .hx-cell:hover .hx-cell__icon,
    html.hx .hx-cell:focus-within .hx-cell__icon,
    html.hx .hx-checks li:hover .hp-icon {
        transform: none;
    }
    html.hx .hx-cell:hover::after,
    html.hx .hx-cell:focus-within::after {
        transform: none;
    }
}
