/* ==========================================================================
   QaziHost WHMCS theme  (child of twenty-one)
   Design tokens ported from qazi.host (app/globals.css) so the client area
   reads as the same product. Loaded after the parent's theme.min.css.
   Sections: 1 tokens · 2 base · 3 auth layout · 4 forms · 5 buttons ·
             6 alerts/misc · 7 wizard · 8 third-party (intl-tel, captcha, modal) ·
             9 animations · 10 responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
/* Montserrat (SIL OFL 1.1) - brand font, self-hosted since v1.0.0: one latin variable file, weights 300-700. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/Montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Scheme "Ember" (v1.0.0, owner 2026-09-25: the indigo #5b6cff is out, full makeover, light + dark).
       Brand orange (qazi.host logo) as the one primary colour on a neutral graphite base (dark) or a clean
       cool-grey base (light, html[data-theme="light"] below). Primary buttons: #c9501e with white text = 4.5:1.
       Every text token >= 4.5:1 on every surface. Change colours here only - never raw hex in rules. */
    color-scheme: dark;
    --qh-bg: #0e1116;          /* page */
    --qh-bg-2: #12161c;        /* side nav / top bar */
    --qh-surface: #161b22;     /* cards */
    --qh-surface-2: #1c222b;   /* inputs, hover rows */
    --qh-surface-3: #252c37;   /* dropdowns, active / raised */
    --qh-border: rgba(160, 170, 186, 0.12);
    --qh-border-2: rgba(160, 170, 186, 0.2);
    --qh-accent: #c9501e;      /* primary: CTA buttons, active nav (white text on it = 4.5:1) */
    --qh-accent-2: #9e3c14;    /* pressed / gradient end */
    --qh-accent-3: #b3461a;    /* hover - darker, so white text keeps >= 4.5:1 */
    --qh-accent-text: #ff8d5f; /* links / text in the brand colour */
    --qh-accent-rgb: 232, 98, 44;
    --qh-accent-soft: rgba(232, 98, 44, 0.14);
    --qh-on-accent: #ffffff;   /* text on solid colour buttons / chips (both modes) */
    --qh-glow: rgba(0, 0, 0, 0);
    --qh-text: #d3d8e0;        /* body */
    --qh-muted: #98a1af;       /* secondary */
    --qh-faint: #6c7584;       /* placeholders, meta - never for body copy */
    --qh-white: #eef1f5;       /* headings / strong text - becomes near-black in light mode */
    --qh-ink: #0e1116;         /* text on --qh-white chips (inverse chip in both modes) */
    --qh-fg-rgb: 255, 255, 255;   /* washes, hairlines and hover tints: white on dark, slate on light */
    --qh-bg-rgb: 14, 17, 22;      /* translucent page colour (sticky top bar, overlays) */
    --qh-shade-rgb: 0, 0, 0;      /* shadows */
    --qh-shade-k: 1;              /* shadow strength (light mode uses much softer shadows) */
    --qh-overlay: rgba(6, 8, 12, 0.7);      /* drawer / modal backdrop */
    --qh-overlay-solid: #05070a;            /* bootstrap .modal-backdrop (it adds its own opacity) */
    --qh-hover: rgba(255, 255, 255, 0.04);  /* row / item hover wash */
    --qh-danger-solid: #c93a32;   --qh-danger-solid-2: #ac2f28;   /* solid "Cancel" buttons, white text >= 4.5:1 */
    /* status - base + text shade + rgb triplet for tints */
    --qh-green: #3fb960;   --qh-green-2: #57cf83;  --qh-green-rgb: 63, 185, 96;
    --qh-red: #e5534b;     --qh-red-2: #f47a73;    --qh-red-rgb: 229, 83, 75;
    --qh-amber: #d6a031;   --qh-amber-2: #e8bb55;  --qh-amber-rgb: 214, 160, 49;
    --qh-blue: #4aa3f0;    --qh-blue-2: #82bff6;   --qh-blue-rgb: 74, 163, 240;
    /* soft category colours (dashboard tiles, panels, card top lines, icons) */
    --qh-c-green-rgb: 72, 199, 142;
    --qh-c-blue-rgb: 86, 170, 240;
    --qh-c-amber-rgb: 232, 176, 64;
    --qh-c-rose-rgb: 236, 104, 128;
    --qh-c-violet-rgb: 160, 140, 245;
    --qh-c-slate-rgb: 148, 160, 178;
    --qh-wa: #25D366;      --qh-wa-2: #1ebe57;
    --qh-radius-sm: 8px;
    --qh-radius: 10px;
    --qh-radius-lg: 12px;
    --qh-radius-xl: 16px;
    --qh-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --qh-font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --qh-font-mono: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Segoe UI Mono', Consolas, 'Liberation Mono', monospace;   /* IPs, licence keys, identifiers */
    --qh-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --qh-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --qh-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --qh-t-smooth: 0.3s var(--qh-ease);
    --qh-t-premium: 0.4s var(--qh-ease-spring);
    --qh-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.25);
    --qh-card-bg: linear-gradient(180deg, rgba(148, 163, 184, 0.05) 0%, rgba(148, 163, 184, 0) 55%), var(--qh-surface);
    --qh-shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --qh-shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.5);
    --qh-shadow-btn-hover: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Light mode (top-bar toggle -> cookie qh_theme=light -> <html data-theme="light">, rendered server side = no flash).
   Same tokens, light values: cool off-white page, white cards, graphite text, the same brand orange.
   Contrast (WCAG): text 14:1, muted 6:1, accent text 5.5:1, status text shades >= 5:1, white on orange 4.5:1. */
html[data-theme="light"] {
    color-scheme: light;
    --qh-bg: #f3f4f7;
    --qh-bg-2: #ffffff;
    --qh-surface: #ffffff;
    --qh-surface-2: #f6f7f9;
    --qh-surface-3: #eceef3;
    --qh-border: rgba(16, 24, 40, 0.1);
    --qh-border-2: rgba(16, 24, 40, 0.17);
    --qh-accent-text: #b4461a;
    --qh-accent-soft: rgba(201, 80, 30, 0.1);
    --qh-text: #1f2733;
    --qh-muted: #5a6474;
    --qh-faint: #7d8696;
    --qh-white: #111827;
    --qh-ink: #ffffff;
    --qh-fg-rgb: 16, 24, 40;
    --qh-bg-rgb: 243, 244, 247;
    --qh-shade-rgb: 16, 24, 40;
    --qh-shade-k: 0.22;
    --qh-overlay: rgba(16, 24, 40, 0.45);
    --qh-overlay-solid: #101828;
    --qh-hover: rgba(16, 24, 40, 0.035);
    --qh-green: #1f9d55;   --qh-green-2: #1a7f45;  --qh-green-rgb: 31, 157, 85;
    --qh-red: #d64545;     --qh-red-2: #c0362f;    --qh-red-rgb: 214, 69, 69;
    --qh-amber: #c7891f;   --qh-amber-2: #93600d;  --qh-amber-rgb: 199, 137, 31;
    --qh-blue: #2f7fd8;    --qh-blue-2: #1f64b5;   --qh-blue-rgb: 47, 127, 216;
    --qh-c-green-rgb: 22, 150, 90;
    --qh-c-blue-rgb: 37, 120, 210;
    --qh-c-amber-rgb: 190, 128, 20;
    --qh-c-rose-rgb: 210, 60, 95;
    --qh-c-violet-rgb: 115, 85, 215;
    --qh-c-slate-rgb: 100, 116, 139;
    --qh-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 14px rgba(16, 24, 40, 0.04);
    --qh-card-bg: var(--qh-surface);
    --qh-shadow-pop: 0 12px 36px rgba(16, 24, 40, 0.14), 0 0 0 1px rgba(16, 24, 40, 0.06);
    --qh-shadow-btn: 0 1px 2px rgba(16, 24, 40, 0.12);
    --qh-shadow-btn-hover: 0 6px 16px rgba(16, 24, 40, 0.14);
}

/* light / dark switch: the icon shows the mode you switch TO; a short cross-fade while switching */
.qh-theme-toggle .qh-ico-moon { display: none; }
html[data-theme="light"] .qh-theme-toggle .qh-ico-sun { display: none; }
html[data-theme="light"] .qh-theme-toggle .qh-ico-moon { display: inline-block; }
.qh-theme-toggle i { transition: transform 0.35s var(--qh-ease-out); }
.qh-theme-toggle:hover i { transform: rotate(-20deg); }
html.qh-theme-switching, html.qh-theme-switching *, html.qh-theme-switching *::before, html.qh-theme-switching *::after {
    transition: background-color 0.3s var(--qh-ease), border-color 0.3s var(--qh-ease), color 0.3s var(--qh-ease), fill 0.3s var(--qh-ease), box-shadow 0.3s var(--qh-ease) !important;
}
@media (prefers-reduced-motion: reduce) {
    html.qh-theme-switching, html.qh-theme-switching * { transition: none !important; }
}
/* auth pages have no top bar: the switch sits in the top-right corner */
.qh-auth-theme {
    position: fixed; top: 14px; right: 14px; z-index: 20;
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--qh-surface); border: 1px solid var(--qh-border-2); color: var(--qh-muted);
    box-shadow: var(--qh-shadow-btn); cursor: pointer; font-size: 1rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.qh-auth-theme:hover { color: var(--qh-accent-text); border-color: rgba(var(--qh-accent-rgb), 0.5); }
.qh-auth-theme:focus-visible { outline: 2px solid var(--qh-accent-text); outline-offset: 2px; }

/* ---------------------------------------------------------------- 2. base */
.qh-body,
.qh-body input,
.qh-body button,
.qh-body select,
.qh-body textarea {
    font-family: var(--qh-font);
}

.qh-body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--qh-fg-rgb), 0.14) var(--qh-bg);
}
.qh-auth-body::-webkit-scrollbar { width: 11px; height: 11px; }
.qh-auth-body::-webkit-scrollbar-track { background: var(--qh-bg); }
.qh-auth-body::-webkit-scrollbar-thumb {
    background: rgba(var(--qh-fg-rgb), 0.14);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
    min-height: 48px;
}

/* ---------------------------------------------------------------- 3. auth layout */
.qh-auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--qh-bg);
    color: var(--qh-text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

.qh-auth {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* background: glows + grid ------------------------------------------------ */
.qh-auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(var(--qh-fg-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 85% 90%, transparent 0%, transparent 60%),
        var(--qh-bg);
}
.qh-grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(var(--qh-fg-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--qh-fg-rgb), 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 100%);
    opacity: 0.55;
    animation: qhGridDrift 40s linear infinite;
}
.qh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}
.qh-orb-1 { width: 620px; height: 620px; left: calc(50% - 310px); top: -300px; background: radial-gradient(circle, rgba(var(--qh-fg-rgb), 0.10) 0%, transparent 45%, transparent 70%); animation: qhFloat 18s ease-in-out infinite; }
.qh-orb-2 { width: 520px; height: 520px; right: -180px; bottom: -220px; background: radial-gradient(circle, transparent 0%, transparent 45%, transparent 70%); animation: qhFloat 22s ease-in-out infinite reverse; }

/* single centered column ---------------------------------------------------- */
.qh-auth-main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 20px 18px;
}
.qh-auth-logo { display: inline-flex; align-items: center; margin-bottom: 26px; transition: transform var(--qh-t-smooth), opacity var(--qh-t-smooth); }
.qh-auth-logo:hover { transform: translateY(-2px); }
.qh-auth-logo img { display: block; height: 38px; width: auto; }

.qh-auth-card-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qh-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--qh-card-bg); box-shadow: var(--qh-shadow-card);
    border: 1px solid var(--qh-border);
    border-radius: var(--qh-radius-xl);
    padding: 34px 36px 28px;
    box-shadow: var(--qh-shadow-card);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--qh-t-smooth), border-color var(--qh-t-smooth);
}
.qh-auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--qh-fg-rgb), 0.35) 30%, rgba(var(--qh-fg-rgb), 0.35) 70%, transparent);
    opacity: 0.9;
}
.qh-auth-card.is-success { border-color: rgba(var(--qh-green-rgb), 0.45); box-shadow: 0 24px 64px rgba(var(--qh-shade-rgb), calc(0.45 * var(--qh-shade-k))), 0 0 40px rgba(var(--qh-green-rgb), 0.12); }
.qh-auth-card.is-success::before { background: linear-gradient(90deg, transparent, rgba(var(--qh-green-rgb), 0.8) 30%, rgba(var(--qh-green-rgb), 0.8) 70%, transparent); }
.qh-page-clientregister .qh-auth-card { max-width: 500px; }

/* particles canvas (auth pages) - fixed behind everything, fades in once the runtime starts */
.qh-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.qh-particles.is-on { opacity: 1; }

/* register page: denser rhythm so the whole form fits a desktop viewport without scrolling */
.qh-page-clientregister .qh-auth-logo { margin-bottom: 14px; }
.qh-page-clientregister .qh-auth-logo img { height: 32px; }
.qh-page-clientregister .qh-auth-card { padding: 22px 30px 20px; }
.qh-auth-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; margin-bottom: 12px; }
.qh-auth-head-row .qh-auth-title { font-size: 1.4rem; }
.qh-auth-switch-inline { font-size: 0.8rem; color: var(--qh-muted); white-space: nowrap; }
.qh-auth-switch-inline a { font-weight: 600; margin-left: 2px; }
.qh-page-clientregister .qh-field { margin-bottom: 8px; }
.qh-page-clientregister .qh-label,
.qh-auth-body.qh-page-clientregister #registration label.qh-label { margin-bottom: 4px; font-size: 0.8rem; }
.qh-auth-body.qh-page-clientregister #registration .field.qh-input,
.qh-auth-body.qh-page-clientregister #registration select.field { padding-top: 10px; padding-bottom: 10px; font-size: 0.93rem; }
.qh-page-clientregister .qh-strength-wide { margin: -1px 0 8px; }
.qh-auth-body.qh-page-clientregister .qh-strength .progress { height: 5px; }
.qh-page-clientregister .qh-strength-label { margin-top: 3px; font-size: 0.72rem; }
.qh-consent.qh-consent-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6px 14px; margin: 2px 0 12px; }
.qh-consent-row .qh-check { font-size: 0.8rem; align-items: center; line-height: 1.35; }
.qh-consent-row .qh-check-box { margin-top: 0; }
@media (max-width: 575.98px) {
    .qh-consent.qh-consent-row { grid-template-columns: 1fr; }
    .qh-auth-head-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .qh-auth-head-row .qh-auth-title { font-size: 1.35rem; }
}
.qh-divider-tight { margin: 12px 0 10px; }
.qh-page-clientregister .qh-social { margin-bottom: 2px; }
.qh-page-clientregister .qh-auth-foot { margin-top: 14px; }

/* short desktop viewports: trim chrome so the register form still fits */
@media (min-width: 992px) and (max-height: 760px) {
    .qh-page-clientregister .qh-auth-main { padding-top: 8px; padding-bottom: 6px; }
    .qh-page-clientregister .qh-auth-logo { margin-bottom: 8px; }
    .qh-page-clientregister .qh-auth-logo img { height: 26px; }
    .qh-page-clientregister .qh-auth-card { padding: 14px 26px 12px; }
    .qh-page-clientregister .qh-auth-head-row { margin-bottom: 4px; }
    .qh-page-clientregister .qh-consent.qh-consent-row { margin-bottom: 6px; }
    .qh-page-clientregister .qh-divider-tight { margin: 5px 0 4px; }
    .qh-page-clientregister .qh-social { margin-bottom: 0; }
    .qh-page-clientregister .qh-auth-head-row .qh-auth-title { font-size: 1.3rem; }
    .qh-page-clientregister .qh-field { margin-bottom: 5px; }
    .qh-page-clientregister .qh-label,
    .qh-auth-body.qh-page-clientregister #registration label.qh-label { margin-bottom: 3px; }
    .qh-auth-body.qh-page-clientregister #registration .field.qh-input,
    .qh-auth-body.qh-page-clientregister #registration select.field { padding-top: 8px; padding-bottom: 8px; }
    .qh-page-clientregister .qh-btn { padding-top: 10px; padding-bottom: 10px; }
    .qh-page-clientregister .qh-strength-wide { display: none; }
    .qh-page-clientregister .qh-consent-row { margin-bottom: 8px; }
    .qh-page-clientregister .qh-divider-tight { margin: 8px 0 6px; }
    .qh-page-clientregister .qh-auth-foot { display: none; }
}

/* consent rows on the minimal register form */
.qh-consent { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 14px; }
.qh-consent .qh-check { font-size: 0.86rem; }
.qh-linkbtn[title] { width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--qh-muted); }
.qh-linkbtn[title]:hover { color: var(--qh-accent-text); background: rgba(var(--qh-fg-rgb), 0.05); }

.qh-auth-head { margin-bottom: 22px; text-align: center; }
.qh-auth-title {
    font-family: var(--qh-font-display);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--qh-white);
    margin: 0;
    line-height: 1.2;
}
.qh-auth-sub { color: var(--qh-muted); margin: 6px 0 0; font-size: 0.92rem; }

.qh-auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-top: 26px;
    color: var(--qh-faint);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}
.qh-auth-foot > * { position: relative; padding: 0 12px; }
.qh-auth-foot > * + *::before { content: ''; position: absolute; left: -2px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: rgba(var(--qh-fg-rgb), 0.22); transform: translateY(-50%); }
.qh-auth-foot a { color: var(--qh-muted) !important; text-decoration: none; transition: color 0.2s; }
.qh-auth-foot a:hover { color: var(--qh-white) !important; }

/* links ------------------------------------------------------------------- */
.qh-auth-body a { color: var(--qh-accent-text); text-decoration: none; transition: color 0.2s; }
.qh-auth-body a:hover { color: var(--qh-accent-text); text-decoration: none; }
.qh-link-muted { color: var(--qh-muted) !important; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.qh-link-muted:hover { color: var(--qh-white) !important; }
.qh-link-small { font-size: 0.82rem; font-weight: 600; }
.qh-linkbtn { background: none; border: 0; padding: 0; color: var(--qh-accent-text); cursor: pointer; font-family: inherit; }
.qh-linkbtn:hover { color: var(--qh-accent-text); }
.qh-auth-switch { text-align: center; color: var(--qh-muted); margin: 16px 0 0; font-size: 0.9rem; }
.qh-auth-switch a { font-weight: 600; margin-left: 4px; }

/* ---------------------------------------------------------------- 4. forms */
.qh-form { margin: 0; }
.qh-field { margin-bottom: 13px; }
.qh-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--qh-text);
    margin-bottom: 7px;
}
.qh-auth-body #registration label.qh-label { color: var(--qh-text); font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 7px; }
.qh-label em { font-style: normal; color: var(--qh-faint); font-weight: 500; }
.qh-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.qh-label-row .qh-label { margin-bottom: 7px; }

.qh-input-wrap { position: relative; }
.qh-input-ico {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--qh-faint);
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}
.qh-input-wrap:focus-within .qh-input-ico,
.qh-input-wrap.has-value .qh-input-ico { color: var(--qh-accent-text); }

.qh-auth-body .qh-input,
.qh-auth-body .qh-input-wrap > select,
.qh-auth-body .qh-customfield .form-control,
.qh-auth-body .qh-input-wrap .form-control,
.qh-auth-body #registration .field.qh-input,
.qh-auth-body #registration select.field,
.qh-auth-body #registration .qh-input-wrap .form-control {
    display: block;
    width: 100%;
    height: auto;
    padding: 12px 16px 12px 44px;
    background: rgba(var(--qh-fg-rgb), 0.03);
    border: 1px solid rgba(var(--qh-fg-rgb), 0.10);
    border-radius: var(--qh-radius);
    color: var(--qh-white);
    font-size: 0.97rem;
    font-family: inherit;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.qh-auth-body .qh-customfield .form-control { padding-left: 16px; }
.qh-auth-body .qh-input::placeholder { color: var(--qh-faint); opacity: 1; }
.qh-auth-body .qh-input:focus,
.qh-auth-body .qh-input-wrap > select:focus,
.qh-auth-body .qh-customfield .form-control:focus,
.qh-auth-body #registration .field.qh-input:focus,
.qh-auth-body #registration select.field:focus {
    outline: none;
    background: rgba(var(--qh-fg-rgb), 0.045);
    border-color: var(--qh-accent);
    box-shadow: 0 0 0 3px rgba(var(--qh-fg-rgb), 0.10);
}
/* Browser autofill: Chrome/Edge paint a light background and dark text over our dark inputs, which made the
   value unreadable. The inset box-shadow covers the autofill colour; !important beats the #registration rules. */
.qh-auth-body input.qh-input:-webkit-autofill,
.qh-auth-body input.qh-input:-webkit-autofill:hover,
.qh-auth-body input.qh-input:-webkit-autofill:focus,
.qh-auth-body input.qh-input:-webkit-autofill:active,
.qh-auth-body #registration input.field.qh-input:-webkit-autofill,
.qh-auth-body #registration input.field.qh-input:-webkit-autofill:hover,
.qh-auth-body #registration input.field.qh-input:-webkit-autofill:focus,
.qh-auth-body select.qh-input:-webkit-autofill,
.qh-auth-body #registration select.field:-webkit-autofill {
    -webkit-text-fill-color: var(--qh-white) !important;
    color: var(--qh-white) !important;
    caret-color: var(--qh-white);
    background-color: var(--qh-surface-2) !important;
    background-clip: content-box !important;
    -webkit-box-shadow: 0 0 0 1000px var(--qh-surface-2) inset !important;
    box-shadow: 0 0 0 1000px var(--qh-surface-2) inset !important;
    border-color: rgba(var(--qh-fg-rgb), 0.18) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
.qh-auth-body input.qh-input:-webkit-autofill:focus,
.qh-auth-body #registration input.field.qh-input:-webkit-autofill:focus {
    border-color: var(--qh-accent) !important;
    -webkit-box-shadow: 0 0 0 3px rgba(var(--qh-fg-rgb), 0.10), 0 0 0 1000px var(--qh-surface-2) inset !important;
    box-shadow: 0 0 0 3px rgba(var(--qh-fg-rgb), 0.10), 0 0 0 1000px var(--qh-surface-2) inset !important;
}
/* Firefox */
.qh-auth-body input.qh-input:autofill,
.qh-auth-body #registration input.field.qh-input:autofill {
    background-color: var(--qh-surface-2) !important;
    color: var(--qh-white) !important;
    box-shadow: 0 0 0 1000px var(--qh-surface-2) inset !important;
    filter: none;
}
.qh-input-wrap.is-invalid .qh-input,
.qh-input-wrap.is-invalid > select { border-color: var(--qh-red); box-shadow: 0 0 0 3px rgba(var(--qh-red-rgb), 0.14); }
.qh-input-wrap.is-invalid .qh-input-ico { color: var(--qh-red); }
.qh-field-msg { color: var(--qh-red); font-size: 0.8rem; margin: 6px 0 0; }
.qh-help { display: block; color: var(--qh-faint); font-size: 0.8rem; margin-top: 6px; }

/* selects: custom caret */
.qh-select-wrap::after,
.qh-input-wrap-state:has(select)::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--qh-muted);
    border-bottom: 2px solid var(--qh-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.qh-auth-body .qh-input-wrap > select { padding-right: 40px; cursor: pointer; }
.qh-auth-body .qh-input-wrap > select option { background: var(--qh-surface-2); color: var(--qh-text); }

/* reveal password */
.qh-reveal-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--qh-faint);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
}
.qh-reveal-pw:hover, .qh-reveal-pw.is-on { color: var(--qh-text); background: rgba(var(--qh-fg-rgb), 0.06); }
.qh-input-wrap .qh-reveal-pw + .qh-input, .qh-input-wrap:has(.qh-reveal-pw) .qh-input { padding-right: 48px; }

/* checkbox */
.qh-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--qh-muted); font-size: 0.9rem; margin: 0; font-weight: 500; user-select: none; }
.qh-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qh-check-box {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid rgba(var(--qh-fg-rgb), 0.2);
    background: rgba(var(--qh-fg-rgb), 0.03);
    position: relative;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.qh-check-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s var(--qh-ease-spring);
}
.qh-check input:checked + .qh-check-box { background: var(--qh-accent); border-color: transparent; box-shadow: 0 4px 12px var(--qh-glow); }
.qh-check input:checked + .qh-check-box::after { transform: rotate(45deg) scale(1); }
.qh-check input:focus-visible + .qh-check-box { box-shadow: 0 0 0 3px rgba(var(--qh-accent-rgb), 0.35); }
.qh-check:hover .qh-check-box { border-color: rgba(var(--qh-fg-rgb), 0.35); }
.qh-check:hover { color: var(--qh-text); }
.qh-check-block { display: flex; padding: 10px 12px; border: 1px solid var(--qh-border); border-radius: var(--qh-radius); margin-bottom: 10px; background: rgba(var(--qh-fg-rgb), 0.02); line-height: 1.45; }
.qh-check-block small { display: block; margin-top: 2px; line-height: 1.4; }
.qh-check-block strong { color: var(--qh-text); }
.qh-check-block small { color: var(--qh-faint); }
.qh-check input.is-invalid + .qh-check-box, .qh-check.is-invalid .qh-check-box { border-color: var(--qh-red); box-shadow: 0 0 0 3px rgba(var(--qh-red-rgb), 0.14); }

.qh-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; }
.qh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.qh-subhead { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--qh-muted); margin: 8px 0 14px; padding-top: 14px; border-top: 1px solid var(--qh-border); }

/* ---------------------------------------------------------------- 5. buttons */
.qh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--qh-radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--qh-t-premium), box-shadow var(--qh-t-premium), background var(--qh-t-smooth), border-color var(--qh-t-smooth), color var(--qh-t-smooth), opacity 0.2s;
    will-change: transform;
    overflow: hidden;
}
.qh-btn:active { transform: scale(0.96); }
.qh-btn:disabled { cursor: default; }
.qh-btn-block { width: 100%; }
.qh-btn-primary {
    background: var(--qh-accent);
    color: var(--qh-on-accent);
    box-shadow: var(--qh-shadow-btn);
}
.qh-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);  /* shine on the orange button - white in both modes */
    transform: translateX(-120%);
    transition: transform 0.6s var(--qh-ease);
}
.qh-btn-primary:hover:not(:disabled) { background: var(--qh-accent-3); transform: translateY(-3px); box-shadow: var(--qh-shadow-btn-hover); color: var(--qh-on-accent); }
.qh-btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }
.qh-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--qh-accent-rgb), 0.35), var(--qh-shadow-btn); }
.qh-btn-ghost { background: transparent; border-color: rgba(var(--qh-fg-rgb), 0.18); color: var(--qh-text); }
.qh-btn-ghost:hover { border-color: rgba(var(--qh-fg-rgb), 0.4); background: rgba(var(--qh-fg-rgb), 0.05); color: var(--qh-white); transform: translateY(-2px); }

.qh-btn-label { position: relative; z-index: 1; transition: opacity 0.2s; }
.qh-btn-spinner, .qh-btn-check {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: opacity 0.2s, transform 0.3s var(--qh-ease-spring);
    z-index: 1;
}
.qh-btn-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--qh-on-accent); }
.qh-btn.is-loading { pointer-events: none; }
.qh-btn.is-loading .qh-btn-label { opacity: 0.45; padding-right: 26px; }
.qh-btn.is-loading .qh-btn-spinner { opacity: 1; left: auto; right: 18px; transform: translate(0, -50%) scale(1); animation: qhSpin 0.8s linear infinite; }
.qh-btn.is-success { background: var(--qh-green); box-shadow: 0 8px 24px rgba(var(--qh-green-rgb), 0.35); pointer-events: none; }
.qh-btn.is-success .qh-btn-label { padding-right: 26px; }
.qh-btn.is-success .qh-btn-check { opacity: 1; left: auto; right: 18px; transform: translate(0, -50%) scale(1); animation: qhCheckPop 0.45s var(--qh-ease-spring); }

/* ---------------------------------------------------------------- 6. alerts, dividers, social */
.qh-alert, .qh-auth-body .alert {
    padding: 12px 16px;
    border-radius: var(--qh-radius);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 16px;
    border: 1px solid transparent;
}
.qh-alert[hidden] { display: none !important; }
.qh-alert-error, .qh-auth-body .alert-danger { background: rgba(var(--qh-red-rgb), 0.10); border-color: rgba(var(--qh-red-rgb), 0.35); color: var(--qh-red-2); }
.qh-alert-info, .qh-auth-body .alert-info { background: rgba(var(--qh-fg-rgb), 0.06); border-color: rgba(var(--qh-fg-rgb), 0.28); color: var(--qh-white); }
.qh-alert-success, .qh-auth-body .alert-success { background: rgba(var(--qh-green-rgb), 0.10); border-color: rgba(var(--qh-green-rgb), 0.35); color: var(--qh-green-2); }
.qh-alert-warning, .qh-auth-body .alert-warning { background: rgba(var(--qh-amber-rgb), 0.10); border-color: rgba(var(--qh-amber-rgb), 0.35); color: var(--qh-amber-2); }
.qh-alert ul, .qh-auth-body .alert ul { margin: 6px 0 0; padding-left: 18px; }
.qh-alert strong { color: inherit; }
.qh-flash:empty { display: none; }

.qh-divider { display: flex; align-items: center; gap: 14px; color: var(--qh-faint); font-size: 0.76rem; margin: 14px 0 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.qh-divider::before, .qh-divider::after { content: ''; flex: 1; height: 1px; background: var(--qh-border); }

.qh-social { display: flex; flex-direction: column; align-items: center; }
.qh-social .social-signin-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.qh-social .sub-heading, .qh-social .sub-heading-borderless { display: none; }
.qh-social .providerLinkingFeedback:empty { display: none; }
.qh-social .providerLinkingFeedback .alert { margin-top: 12px; width: 100%; }

.qh-captcha { display: flex; justify-content: center; margin: 4px 0 18px; }
.qh-captcha .recaptcha-container { margin: 0 auto; }
.qh-captcha > div { width: 100%; }
.qh-captcha .row { margin: 0; }

/* ---------------------------------------------------------------- 7. wizard */
.qh-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    counter-reset: qhstep;
    position: relative;
}
.qh-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--qh-radius);
    border: 1px solid var(--qh-border);
    background: rgba(var(--qh-fg-rgb), 0.02);
    color: var(--qh-faint);
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color var(--qh-t-smooth), color var(--qh-t-smooth), background var(--qh-t-smooth);
}
.qh-step-num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 650;
    background: rgba(var(--qh-fg-rgb), 0.06);
    color: var(--qh-muted);
    transition: background var(--qh-t-smooth), color var(--qh-t-smooth), box-shadow var(--qh-t-smooth);
}
.qh-step.is-active { border-color: rgba(var(--qh-fg-rgb), 0.3); color: var(--qh-white); background: var(--qh-accent-soft); }
.qh-step.is-active .qh-step-num { background: var(--qh-accent); color: var(--qh-on-accent); box-shadow: 0 4px 12px var(--qh-glow); }
.qh-step.is-done { color: var(--qh-text); cursor: pointer; }
.qh-step.is-done .qh-step-num { background: rgba(var(--qh-green-rgb), 0.18); color: var(--qh-green-2); }
.qh-step.is-done .qh-step-num::before { content: '\2713'; }
.qh-step.is-done .qh-step-num { font-size: 0; }
.qh-step.is-done .qh-step-num::before { font-size: 0.8rem; }

.qh-wizard-track { position: relative; }
.qh-wizard-step { display: none; }
.qh-wizard-step.is-active { display: block; animation: qhStepIn 0.45s var(--qh-ease-out) both; }
.qh-wizard-nav { margin-top: 8px; }
.qh-wizard-nav-split { display: flex; justify-content: space-between; gap: 12px; }
.qh-wizard-nav-split .qh-btn-primary { flex: 1; }

/* signup: one question per step (clientregister.tpl) */
.qh-progress { margin: 0 0 18px; }
.qh-progress-bar { display: flex; gap: 6px; }
.qh-progress-bar span { flex: 1; height: 4px; border-radius: 999px; background: rgba(var(--qh-fg-rgb), 0.10); overflow: hidden; position: relative; }
.qh-progress-bar span::after { content: ""; position: absolute; inset: 0; background: var(--qh-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--qh-ease-out); }
.qh-progress-bar span.is-done::after, .qh-progress-bar span.is-active::after { transform: scaleX(1); }
.qh-progress-bar span.is-done::after { background: var(--qh-green); }
.qh-progress-label { margin: 8px 0 0; color: var(--qh-faint); font-size: 0.78rem; }
.qh-progress-label b { color: var(--qh-text); font-weight: 650; }
.qh-step-head { margin: 0 0 16px; }
.qh-step-title { margin: 0; color: var(--qh-white); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
.qh-step-sub { margin: 4px 0 0; color: var(--qh-muted); font-size: 0.88rem; line-height: 1.5; }
.qh-step-sub strong { color: var(--qh-white); white-space: nowrap; }
.qh-step-error { margin: -4px 0 12px; padding: 9px 12px; border: 1px solid rgba(var(--qh-red-rgb), 0.35); border-radius: var(--qh-radius-sm); background: rgba(var(--qh-red-rgb), 0.10); color: var(--qh-red-2); font-size: 0.84rem; line-height: 1.45; }
.qh-step-error[hidden] { display: none !important; }
.qh-wizard.is-back .qh-wizard-step.is-active { animation-name: qhStepBack; }
@keyframes qhStepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.qh-signup .qh-wizard-nav { margin-top: 4px; }
.qh-signup .qh-wizard-nav .qh-btn-ghost { display: inline-flex; align-items: center; gap: 8px; }
.qh-signup .qh-step-actions { margin-top: 12px; }
.qh-signup .qh-social, .qh-signup .qh-divider { margin-top: 14px; }
.qh-signup .generate-password { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; }

/* strength meter (driven by WHMCS PasswordStrength.js) */
.qh-strength { margin-top: 8px; }
.qh-strength-wide { margin: -2px 0 12px; }
.qh-auth-body .qh-strength .progress { height: 6px; background: rgba(var(--qh-fg-rgb), 0.07); border-radius: 999px; overflow: hidden; box-shadow: none; }
.qh-auth-body .qh-strength .progress-bar { transition: width 0.4s var(--qh-ease), background-color 0.3s; border-radius: 999px; }
.qh-auth-body .qh-strength .bg-danger { background: var(--qh-red) !important; }
.qh-auth-body .qh-strength .bg-warning { background: var(--qh-amber) !important; }
.qh-auth-body .qh-strength .bg-success { background: var(--qh-green) !important; }
.qh-strength-label { margin: 6px 0 0; font-size: 0.78rem; color: var(--qh-faint); }

/* ---------------------------------------------------------------- 8. third-party inside the auth pages */
/* intl-tel-input (WHMCS phone field; the bundled build uses the legacy .intl-tel-input class names) */
.qh-auth-body .intl-tel-input, .qh-auth-body .iti { width: 100%; display: block; }
.qh-auth-body .intl-tel-input .flag-container, .qh-auth-body .iti__flag-container { z-index: 3; }
.qh-auth-body .intl-tel-input .selected-flag, .qh-auth-body .iti__selected-flag { border-radius: var(--qh-radius) 0 0 var(--qh-radius); padding: 0 6px 0 12px; background: transparent !important; height: 100%; }
.qh-auth-body .intl-tel-input.separate-dial-code .selected-flag { width: auto; min-width: 64px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; background-color: rgba(var(--qh-fg-rgb), 0.04) !important; border-right: 1px solid var(--qh-border); }
.qh-auth-body .intl-tel-input.separate-dial-code .selected-flag .iti-flag { flex: 0 0 auto; }
.qh-auth-body .intl-tel-input.allow-dropdown .flag-container:hover .selected-flag, .qh-auth-body .iti__selected-flag:hover { background: rgba(var(--qh-fg-rgb), 0.07) !important; outline: none; }
.qh-auth-body .intl-tel-input .selected-dial-code { color: var(--qh-muted); font-size: 0.85rem; }
.qh-auth-body .intl-tel-input .iti-arrow, .qh-auth-body .iti__arrow { border-top-color: var(--qh-muted); }
.qh-auth-body .intl-tel-input .iti-arrow.up, .qh-auth-body .iti__arrow--up { border-bottom-color: var(--qh-muted); border-top: 0; }
.qh-auth-body .intl-tel-input .country-list, .qh-auth-body .iti__country-list {
    background: var(--qh-surface-2);
    border: 1px solid var(--qh-border-2);
    border-radius: var(--qh-radius);
    box-shadow: 0 12px 32px rgba(var(--qh-shade-rgb), calc(0.5 * var(--qh-shade-k)));
    color: var(--qh-text);
    margin-top: 6px;
    max-height: 240px;
    scrollbar-width: thin;
}
.qh-auth-body .intl-tel-input .country-list .country, .qh-auth-body .iti__country { padding: 8px 12px; }
.qh-auth-body .intl-tel-input .country-list .country.highlight, .qh-auth-body .intl-tel-input .country-list .country:hover, .qh-auth-body .iti__country.iti__highlight { background: rgba(var(--qh-fg-rgb), 0.06); }
.qh-auth-body .intl-tel-input .country-list .dial-code, .qh-auth-body .iti__dial-code { color: var(--qh-muted); }
.qh-auth-body .intl-tel-input .country-list .divider, .qh-auth-body .iti__divider { border-bottom-color: var(--qh-border); }
.qh-auth-body .qh-input-wrap-tel > .qh-input { padding-left: 16px; }
/* room for the wider flag + dial-code box (the plugin's own .iti-sdc-N padding rules lose to the #registration selectors) */
.qh-auth-body .intl-tel-input.separate-dial-code .qh-input,
.qh-auth-body #registration .intl-tel-input.separate-dial-code .field.qh-input { padding-left: 88px !important; }
.qh-auth-body #registration .intl-tel-input.separate-dial-code.iti-sdc-4 .field.qh-input { padding-left: 98px !important; }
/* invalid state must beat the #registration overrides above */
.qh-auth-body .qh-input-wrap.is-invalid .qh-input,
.qh-auth-body #registration .qh-input-wrap.is-invalid .field.qh-input,
.qh-auth-body #registration .qh-input-wrap.is-invalid select.field { border-color: var(--qh-red); box-shadow: 0 0 0 3px rgba(var(--qh-red-rgb), 0.14); }

/* Bootstrap modal (generate password) */
.qh-auth-body .modal-content { background: var(--qh-surface); color: var(--qh-text); border: 1px solid var(--qh-border-2); border-radius: var(--qh-radius-lg); box-shadow: 0 24px 64px rgba(var(--qh-shade-rgb), calc(0.6 * var(--qh-shade-k))); }
.qh-auth-body .modal-header { border-bottom-color: var(--qh-border); }
.qh-auth-body .modal-footer { border-top-color: var(--qh-border); }
.qh-auth-body .modal-header.bg-primary { background: var(--qh-accent) !important; }
.qh-auth-body .modal .close { color: var(--qh-white); opacity: 0.8; text-shadow: none; }
.qh-auth-body .modal .form-control { background: rgba(var(--qh-fg-rgb), 0.04); border: 1px solid rgba(var(--qh-fg-rgb), 0.12); color: var(--qh-white); border-radius: var(--qh-radius-sm); }
.qh-auth-body .modal .form-control:focus { border-color: var(--qh-accent); box-shadow: 0 0 0 3px rgba(var(--qh-fg-rgb), 0.10); }
.qh-auth-body .modal .btn-default { background: rgba(var(--qh-fg-rgb), 0.06); border-color: rgba(var(--qh-fg-rgb), 0.14); color: var(--qh-text); }
.qh-auth-body .modal .btn-default:hover { background: rgba(var(--qh-fg-rgb), 0.12); color: var(--qh-white); }
.qh-auth-body .modal .btn-primary { background: var(--qh-accent); border: 0; }
.qh-auth-body .modal-backdrop { background: #000; }
.qh-auth-body .modal-backdrop.show { opacity: 0.75; }
.qh-auth-body .modal .col-form-label { color: var(--qh-muted); }

/* WHMCS full page overlay */
.qh-auth-body #fullpage-overlay { background: rgba(var(--qh-bg-rgb), 0.85); }

/* verification / admin return links on auth pages */
.qh-auth-body .btn-return-to-admin { position: fixed; right: 16px; bottom: 16px; z-index: 50; }

/* twenty-one leftovers that may render inside the card */
.qh-auth-body .card { background: transparent; border: 0; box-shadow: none; }
.qh-auth-body .card-body { padding: 0; }
.qh-auth-body .card-footer { background: transparent; border-top: 1px solid var(--qh-border); padding: 16px 0 0; color: var(--qh-muted); }
.qh-auth-body .text-muted { color: var(--qh-muted) !important; }
.qh-auth-body h1, .qh-auth-body h2, .qh-auth-body h3, .qh-auth-body h4, .qh-auth-body h5, .qh-auth-body h6, .qh-auth-body .h3 { color: var(--qh-white); font-weight: 650; letter-spacing: -0.01em; }
.qh-auth-body .form-control-label, .qh-auth-body label { color: var(--qh-text); font-weight: 600; font-size: 0.85rem; }
.qh-auth-body .input-group .form-control,
.qh-auth-body form .form-control:not(.qh-input) {
    background: rgba(var(--qh-fg-rgb), 0.03);
    border: 1px solid rgba(var(--qh-fg-rgb), 0.10);
    color: var(--qh-white);
    border-radius: var(--qh-radius);
    padding: 13px 16px;
    height: auto;
    box-shadow: none;
}
.qh-auth-body form .form-control:not(.qh-input):focus { border-color: var(--qh-accent); box-shadow: 0 0 0 3px rgba(var(--qh-fg-rgb), 0.10); background: rgba(var(--qh-fg-rgb), 0.045); }
.qh-auth-body .input-group-text { background: rgba(var(--qh-fg-rgb), 0.04); border: 1px solid rgba(var(--qh-fg-rgb), 0.10); color: var(--qh-faint); border-radius: var(--qh-radius) 0 0 var(--qh-radius); }
.qh-auth-body .input-group-merge .form-control { border-left: 0; border-radius: 0 var(--qh-radius) var(--qh-radius) 0; }
.qh-auth-body .btn-primary:not(.qh-btn) { background: var(--qh-accent); border: 0; border-radius: var(--qh-radius-sm); font-weight: 600; padding: 12px 22px; box-shadow: var(--qh-shadow-btn); }
.qh-auth-body .btn-primary:not(.qh-btn):hover { transform: translateY(-2px); box-shadow: var(--qh-shadow-btn-hover); }
.qh-auth-body .btn-default:not(.qh-btn) { background: transparent; border: 1px solid rgba(var(--qh-fg-rgb), 0.18); color: var(--qh-text); border-radius: var(--qh-radius-sm); font-weight: 600; }
.qh-auth-body .btn-default:not(.qh-btn):hover { background: rgba(var(--qh-fg-rgb), 0.05); border-color: rgba(var(--qh-fg-rgb), 0.35); color: var(--qh-white); }
.qh-auth-body .mw-540 { max-width: none; }
.qh-auth-body p { color: var(--qh-muted); }
.qh-auth-body .verification-banner { display: none; }

/* password reset: WhatsApp (OTP, whatsappreminder addon) / Email tabs - password-reset-email-prompt.tpl */
.qh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: rgba(var(--qh-fg-rgb), 0.04); border: 1px solid var(--qh-border); border-radius: var(--qh-radius); }
.qh-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; background: transparent; border: 0; border-radius: var(--qh-radius-sm); color: var(--qh-muted); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background var(--qh-t-smooth), color var(--qh-t-smooth), box-shadow var(--qh-t-smooth); }
.qh-seg-btn:hover { color: var(--qh-text); }
.qh-seg-btn.is-active { background: var(--qh-surface-2); color: var(--qh-white); box-shadow: var(--qh-shadow-btn); }
.qh-seg-btn .fa-whatsapp { color: var(--qh-wa); font-size: 1.05em; }
.qh-seg-btn:focus-visible { outline: 2px solid var(--qh-accent); outline-offset: 1px; }
.qh-seg-panel[hidden] { display: none !important; }
.qh-seg-panel .qh-alert { margin-bottom: 14px; }
.qh-step-note { margin: 0 0 14px; font-size: 0.88rem; line-height: 1.55; }
.qh-step-note strong { color: var(--qh-white); white-space: nowrap; }
.qh-step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; }
.qh-step-actions form { margin: 0; }
.qh-step-actions .qh-linkbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.qh-step-actions .qh-linkbtn:disabled { color: var(--qh-faint); cursor: not-allowed; }
.qh-otp-input { font-family: var(--qh-font-mono); font-size: 1.35rem !important; letter-spacing: 0.45em; text-align: center; }
.qh-choice-list { display: grid; gap: 8px; }
.qh-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--qh-border); border-radius: var(--qh-radius-sm); background: rgba(var(--qh-fg-rgb), 0.02); cursor: pointer; font-weight: 500; }
.qh-choice:has(input:checked) { border-color: var(--qh-accent); background: var(--qh-accent-soft); color: var(--qh-white); }
.qh-choice input { accent-color: var(--qh-accent); }
.qh-choice span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--qh-font-mono); font-size: 0.84rem; }
.qh-page-password-reset-container .generate-password { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; }
.qh-page-password-reset-container .qh-auth-switch a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- 9. animations */
/* Entrance stagger is CSS-only (no JS needed, starts at first paint): each .qh-reveal carries
   style="--i:N" in the template. fill-mode "backwards" keeps the pre-animation state until the delay
   ends, then the element returns to its normal styles, so hover transitions keep working. */
.qh-auth-body .qh-reveal { animation: qhReveal 0.6s var(--qh-ease-out) backwards; animation-delay: calc(80ms + var(--i, 0) * 45ms); }
.qh-card-enter { animation: qhCardIn 0.7s var(--qh-ease-out) backwards; }
@keyframes qhReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qh-shake { animation: qhShake 0.5s var(--qh-ease) both; }

@keyframes qhCardIn { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes qhStepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes qhFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(30px, -26px, 0) scale(1.06); } 66% { transform: translate3d(-22px, 18px, 0) scale(0.97); } }
@keyframes qhGridDrift { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 56px 0; } }
@keyframes qhShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@keyframes qhSpin { to { transform: translate(0, -50%) rotate(360deg); } }
@keyframes qhCheckPop { 0% { transform: translate(0, -50%) scale(0.3); } 70% { transform: translate(0, -50%) scale(1.25); } 100% { transform: translate(0, -50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .qh-reveal, .qh-card-enter, .qh-wizard-step.is-active, .qh-shake { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
    .qh-orb, .qh-grid { animation: none !important; }
    .qh-btn, .qh-auth-perks li, .qh-auth-logo { transition: none !important; }
}

/* ---------------------------------------------------------------- 10. responsive */
/* Desktop: the page never scrolls; if a form is ever taller than the viewport only the column scrolls. */
@media (min-width: 992px) {
    .qh-auth-body { overflow: hidden; }
    .qh-auth { height: 100vh; height: 100dvh; overflow: hidden; }
    .qh-auth-main { height: 100vh; height: 100dvh; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(var(--qh-fg-rgb), 0.14) transparent; }
    .qh-auth-main::-webkit-scrollbar { width: 8px; }
    .qh-auth-main::-webkit-scrollbar-thumb { background: rgba(var(--qh-fg-rgb), 0.14); border-radius: 999px; }
}

/* Short desktop viewports (laptops, browser chrome): compact a little more. */
@media (min-width: 992px) and (max-height: 820px) {
    .qh-auth-main { padding: 16px 20px 12px; }
    .qh-auth-logo { margin-bottom: 18px; }
    .qh-auth-logo img { height: 34px; }
    .qh-auth-card { padding: 26px 30px 22px; border-radius: 20px; }
    .qh-auth-head { margin-bottom: 16px; }
    .qh-auth-title { font-size: 1.5rem; }
    .qh-field { margin-bottom: 10px; }
    .qh-label, .qh-auth-body #registration label.qh-label { margin-bottom: 5px; font-size: 0.82rem; }
    .qh-auth-body .qh-input,
    .qh-auth-body .qh-input-wrap > select,
    .qh-auth-body #registration .field.qh-input,
    .qh-auth-body #registration select.field { padding-top: 10px; padding-bottom: 10px; font-size: 0.93rem; }
    .qh-btn { padding: 11px 20px; }
    .qh-row-between { margin: 0 0 12px; }
    .qh-divider { margin: 10px 0 10px; }
    .qh-auth-switch { margin-top: 12px; font-size: 0.86rem; }
    .qh-steps { margin-bottom: 12px; }
    .qh-step { padding: 7px 10px; }
    .qh-check-block { padding: 8px 10px; margin-bottom: 8px; }
    .qh-strength { margin-top: 6px; }
    .qh-strength-label { margin-top: 3px; font-size: 0.74rem; }
    .qh-auth-foot { margin-top: 16px; font-size: 0.74rem; }
}

/* Tablet / phone: natural document scroll, compact chrome. */
@media (max-width: 991.98px) {
    .qh-auth { min-height: auto; }
    .qh-auth-main { min-height: 100vh; min-height: 100dvh; padding: 22px 14px 16px; justify-content: flex-start; }
    .qh-auth-logo { margin-bottom: 20px; }
    .qh-auth-logo img { height: 34px; }
    .qh-auth-card { padding: 26px 22px 22px; }
    .qh-auth-foot { margin-top: 20px; }
    .qh-orb { opacity: 0.35; filter: blur(60px); }
}

@media (max-width: 575.98px) {
    .qh-auth-body { font-size: 14.5px; }
    .qh-auth-main { padding: 18px 12px 14px; }
    .qh-auth-logo { margin-bottom: 16px; }
    .qh-auth-logo img { height: 30px; }
    .qh-auth-card { padding: 22px 16px 18px; border-radius: 18px; }
    .qh-auth-head { margin-bottom: 16px; }
    .qh-auth-title { font-size: 1.45rem; }
    .qh-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .qh-steps { gap: 6px; margin-bottom: 14px; }
    .qh-step { padding: 8px 6px; justify-content: center; }
    .qh-step-name { display: none; }
    .qh-step.is-active .qh-step-name { display: inline; }
    .qh-wizard-nav-split { flex-direction: column-reverse; gap: 8px; }
    .qh-wizard-nav-split .qh-btn { width: 100%; }
    .qh-auth-foot { font-size: 0.74rem; }
    .qh-auth-foot > * { padding: 0 9px; }
    .qh-row-between { flex-wrap: wrap; }
    .qh-social .social-signin-btns { width: 100%; }
}

@media (max-width: 380px) {
    .qh-auth-card { padding: 20px 14px 16px; }
}

/* primary / solid buttons keep pure white text on orange */
.qh-btn-primary, .qh-btn-primary:hover, .qh-btn-wa, .qh-btn-wa:hover, .qh-auth-body .btn-primary { color: var(--qh-on-accent); }

/* ---------------------------------------------------------------- v1.0.0 type weights (owner 2026-09-25: less bold, more professional)
   Only 400-650 anywhere: body 400, UI text + buttons 500, emphasis / titles 600, big display numbers 650. */
html .qh-body strong, html .qh-body b, html .qh-body th, html .qh-body dt,
html .qh-body .font-weight-bold, html .qh-body .font-weight-bolder { font-weight: 600 !important; }
html .qh-body .font-weight-light, html .qh-body .font-weight-lighter { font-weight: 400 !important; }
html .qh-body h1, html .qh-body h2, html .qh-body h3, html .qh-body h4, html .qh-body h5, html .qh-body h6,
html .qh-body .h1, html .qh-body .h2, html .qh-body .h3, html .qh-body .h4, html .qh-body .h5, html .qh-body .h6 { font-weight: 600; }
html .qh-body .btn, html .qh-body .qh-btn, html .qh-body .qh-top-btn, html .qh-body #order-standard_cart .btn { font-weight: 500; }
html .qh-body .qh-btn-primary, html .qh-body .btn-primary, html .qh-body .btn-success { font-weight: 600; }
html .qh-body .label, html .qh-body .badge, html .qh-body .qh-status-pill { font-weight: 600; }
