/*!
 * Tenzix skin for the WHMCS Twenty-One theme
 * Mirrors the design system of tenzix.com: Geist type, square corners,
 * hairline borders, a single blue accent and dark navigation chrome.
 */

/* ------------------------------------------------------------------
 * Fonts
 * ------------------------------------------------------------------ */
@font-face {
    font-family: "Geist Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
    font-family: "Geist Mono Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}

/* ------------------------------------------------------------------
 * Tokens (copied from the marketing site)
 * ------------------------------------------------------------------ */
:root {
    --font-sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease-sui: cubic-bezier(.51, 0, .08, 1);

    --bg: #f4f5f7;
    --surface: #fff;
    --surface-2: #e0e2e6;
    --line: #1315181f;
    --line-strong: #13151847;
    --dot: #a1a7b2;
    --fg: #000;
    --fg-muted: #4b515b;
    --fg-subtle: #5d6573;
    --accent: #2563eb;
    --accent-soft: #2563eb1a;
    --accent-fill: #2563eb;
    --accent-fill-hover: #1d4ed8;
    --accent-fg: #fff;
    --success: #15803d;
    --danger: #d62d2d;
    --warn: #a35a00;

    /* dark tone, used by header, hero and footer */
    --d-bg: #000;
    --d-surface: #131518;
    --d-surface-2: #222529;
    --d-line: #ffffff1a;
    --d-line-strong: #ffffff38;
    --d-dot: #4b515b;
    --d-fg: #fff;
    --d-fg-muted: #a1a7b2;
    --d-fg-subtle: #89919f;
    --d-accent: #5b9bff;
    --d-signal: #5b9bff;
    --d-warn: #fbbf24;
    --d-danger: #ff6b6b;
}

/* ------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body,
body.primary-bg-color {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--accent);
}

::selection { background: var(--accent-fill); color: #fff; }

/* Square corners everywhere, like the marketing site */
*, *::before, *::after { border-radius: 0 !important; }
.custom-radio .custom-control-label::before,
input[type=radio] { border-radius: 50% !important; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.03em;
}
h1, .h1 { letter-spacing: -0.045em; }
h2, .h2 { letter-spacing: -0.04em; }
b, strong, th, .font-weight-bold { font-weight: 500 !important; }
.font-weight-light { font-weight: 400 !important; }
.text-muted { color: var(--fg-subtle) !important; }
hr { border-top-color: var(--line); }

a { color: var(--accent); transition: color .2s var(--ease-sui); }
a:hover { color: var(--accent-fill-hover); }

code, kbd, pre, samp, .tz-mono { font-family: var(--font-mono); }

.tz-eyebrow {
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fg-subtle);
}

/* ------------------------------------------------------------------
 * Header: floating dark navigation bar
 * ------------------------------------------------------------------ */
header.header.tz-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 12px 0;
    background: transparent;
}
@media (min-width: 768px) {
    header.header.tz-header { padding: 20px 20px 0; }
}
.tz-header-inner {
    background: var(--d-surface);
    color: var(--d-fg);
}

/* logged-in strip */
header.header .tz-topbar {
    padding: 0 12px 0 20px;
    background: var(--d-bg);
    border-bottom: 1px solid var(--d-line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--d-fg-muted);
}
header.header .tz-topbar .btn,
header.header .tz-topbar .active-client .btn,
header.header .tz-topbar .active-client .input-group-text {
    padding: 8px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1;
    color: var(--d-fg-muted);
    background: transparent;
    border: 0;
}
header.header .tz-topbar .btn:hover { color: var(--d-fg); }
header.header .tz-topbar .active-client .btn.btn-active-client span {
    border-bottom: 1px dashed var(--d-line-strong);
    color: var(--d-fg);
}

/* main bar: 64px tall, logo left, menu centred, actions right (as tenzix.com) */
header.header .tz-nav {
    min-height: 64px;
    padding: 0 12px 0 20px;
    background: transparent;
    flex-wrap: wrap;
}
header.header .tz-brand { display: flex; align-items: center; flex-shrink: 0; height: 64px; padding: 0; margin: 0; }
header.header .tz-brand .logo-img { height: 28px; width: auto; max-height: none; max-width: none; }

/*
 * Menu links are 28px tall: Twenty-One's autoCollapse() moves items into
 * "More" whenever #nav reaches 30px, so a single row has to stay under that.
 * On desktop a transparent ::before stretches the hit area to the full bar.
 */
header.header .tz-nav .navbar-nav { align-items: center; }
header.header .tz-nav .navbar-nav > li > a,
header.header .tz-nav .navbar-nav .collapsable-dropdown > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 16px !important;
    font-size: 15px;
    line-height: 20px;
    color: var(--d-fg);
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s var(--ease-sui);
}
header.header .tz-nav .navbar-nav > li > a:hover,
header.header .tz-nav .navbar-nav > li.show > a { color: var(--d-fg-muted); }

/* the theme's dropdown caret is replaced by the site's four-square chip */
header.header .tz-nav .dropdown-toggle::after { display: none; }
.tz-caret {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--d-surface-2);
    color: var(--d-fg-muted);
    transition: background-color .3s var(--ease-sui), color .3s var(--ease-sui);
}
.tz-caret svg {
    display: block;
    width: 10px;
    height: 10px;
    transition: transform .5s var(--ease-sui);
}
header.header .tz-nav .navbar-nav > li > .dropdown-toggle:hover .tz-caret { color: var(--d-fg); }
header.header .tz-nav .navbar-nav > li.show > .dropdown-toggle .tz-caret { color: var(--d-fg); }
header.header .tz-nav .navbar-nav > li.show > .dropdown-toggle .tz-caret svg { transform: rotate(45deg); }

header.header .tz-nav .badge {
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-weight: 400;
    background: var(--accent-fill);
    color: var(--accent-fg);
}

/* dropdowns: the site's mega-menu panel with icon tiles and descriptions */
header.header .tz-nav .dropdown-menu {
    margin-top: 8px;
    padding: 8px;
    min-width: 320px;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    box-shadow: none;
}
header.header .tz-nav .dropdown-menu li.dropdown-item {
    padding: 0;
    background: transparent;
}
header.header .tz-nav .dropdown-menu a.dropdown-item,
header.header .tz-nav .dropdown-menu li.dropdown-item > a {
    display: block;
    padding: 12px !important;
    font-size: 15px;
    line-height: 1.3;
    color: var(--d-fg);
    background: transparent;
    white-space: nowrap;
    transition: background-color .2s var(--ease-sui);
}
header.header .tz-nav .dropdown-menu a:hover,
header.header .tz-nav .dropdown-menu a:focus,
header.header .tz-nav .dropdown-item.active > a,
header.header .tz-nav .dropdown-item:active > a {
    background: var(--d-surface-2);
    color: var(--d-fg);
}
header.header .tz-nav .dropdown-divider { display: none; }

header.header .tz-nav .dropdown-menu li.dropdown-item > a.tz-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    white-space: normal;
}
.tz-menu-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--d-surface-2);
    color: var(--d-fg);
    font-size: 15px;
    transition: background-color .3s var(--ease-sui), color .3s var(--ease-sui);
}
.tz-menu-icon i { width: auto; color: inherit; }
.tz-menu-icon svg { width: 14px; height: 14px; }
header.header .tz-nav .tz-menu-link:hover .tz-menu-icon,
header.header .tz-nav .tz-menu-link:focus .tz-menu-icon,
header.header .tz-nav .dropdown-item.active > .tz-menu-link .tz-menu-icon {
    background: var(--accent-fill);
    color: var(--accent-fg);
}
.tz-menu-text { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.tz-menu-title { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; color: var(--d-fg); }
.tz-menu-desc { margin-top: 2px; font-size: 13px; line-height: 1.375; color: var(--d-fg-muted); }
.tz-menu-link:not(:has(.tz-menu-desc)) { align-items: center !important; }

/* right side: language, account menu, cart, login, burger */
.tz-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
}
header.header .tz-nav-secondary { flex-direction: row; align-items: center; }
header.header .tz-nav .tz-nav-secondary > li > a { padding: 0 12px !important; }

.tz-lang {
    align-items: center;
    padding: 2px;
    background: var(--d-surface-2);
}
.tz-lang-item {
    display: grid;
    place-items: center;
    height: 32px;
    min-width: 36px;
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--d-fg-muted);
    transition: color .2s var(--ease-sui), background-color .2s var(--ease-sui);
}
/* scoped to beat Twenty-One's header.header .navbar a { color: #444 } */
header.header .tz-nav .tz-lang-item { color: var(--d-fg-muted); }
header.header .tz-nav .tz-lang-item:hover,
header.header .tz-nav .tz-lang-item:focus { color: var(--d-fg); text-decoration: none; }
header.header .tz-nav .tz-lang-item.is-active { background: var(--accent-fill); color: var(--accent-fg); }

.tz-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: var(--d-surface-2);
    color: var(--d-fg);
    text-decoration: none;
    transition: background-color .3s var(--ease-sui), color .3s var(--ease-sui);
}
header.header .tz-nav .tz-icon-btn { color: var(--d-fg); }
header.header .tz-nav .tz-icon-btn:hover,
header.header .tz-nav .tz-icon-btn:focus { background: var(--accent-fill); color: var(--accent-fg); text-decoration: none; outline: 0; }
.tz-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    padding: 2px 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    background: var(--accent-fill);
    color: var(--accent-fg);
}
header.header .tz-login-btn {
    height: 44px;
    padding: 0 20px;
    align-items: center;
    font-size: 14px;
    line-height: 20px;
}
header.header .tz-nav .tz-login-btn,
header.header .tz-nav .tz-login-btn:hover,
header.header .tz-nav .tz-login-btn:focus { color: var(--accent-fg); }
.tz-burger { position: relative; display: block; width: 16px; height: 12px; }
.tz-burger span {
    position: absolute;
    left: 0;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: all .3s var(--ease-sui);
}
.tz-burger span:first-child { top: 0; }
.tz-burger span:last-child { bottom: 0; }
.tz-menu-toggle[aria-expanded="true"] .tz-burger span:first-child { top: 5.5px; transform: rotate(45deg); }
.tz-menu-toggle[aria-expanded="true"] .tz-burger span:last-child { bottom: 5.5px; transform: rotate(-45deg); }

/* desktop: three columns so the menu sits exactly in the middle */
@media (min-width: 992px) {
    header.header .tz-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
        height: 64px;
    }
    header.header .tz-brand { justify-self: start; }
    header.header #mainNavbar { justify-content: center; min-width: 0; }
    header.header #nav { flex-wrap: wrap; justify-content: center; }
    .tz-nav-actions { justify-self: end; }

    header.header .tz-nav .navbar-nav > li > a::before {
        content: "";
        position: absolute;
        top: -18px;
        right: 0;
        bottom: -18px;
        left: 0;
    }

    /* panel 8px below the bar, centred under its trigger, fading and sliding in */
    header.header .tz-nav .navbar-nav .dropdown-menu {
        display: block;
        top: calc(100% + 26px);
        left: 50%;
        right: auto;
        margin-top: 0;
        visibility: hidden;
        opacity: 0;
        transform: translate(-50%, -4px);
        transition: opacity .3s var(--ease-sui), transform .3s var(--ease-sui), visibility 0s linear .3s;
    }
    header.header .tz-nav .navbar-nav .dropdown-menu.dropdown-menu-right {
        left: auto;
        right: 0;
        transform: translateY(-4px);
    }
    header.header .tz-nav .navbar-nav .show > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, 0);
        transition-delay: 0s;
    }
    header.header .tz-nav .navbar-nav .show > .dropdown-menu.dropdown-menu-right { transform: none; }

    header.header .tz-nav .dropdown-menu.tz-dropdown-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        width: 620px;
    }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    header.header .tz-nav .navbar-nav .dropdown-menu { transition: none; }
}

/* mobile: logo and actions on one 64px row, menu panel below */
@media (max-width: 991.98px) {
    .tz-nav-actions { order: 2; margin-left: auto; }
    header.header #mainNavbar {
        order: 3;
        flex-basis: 100%;
        margin: 0 -12px 0 -20px;
        padding: 0 12px 0 20px;
        border-top: 1px solid var(--d-line);
    }
    header.header #mainNavbar.show,
    header.header #mainNavbar.collapsing { padding-bottom: 12px; }
    header.header #mainNavbar .navbar-nav { align-items: stretch; }
    header.header #mainNavbar .navbar-nav > li > a {
        justify-content: space-between;
        height: auto;
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--d-line);
    }
    header.header #mainNavbar .dropdown-menu { margin: 0 0 8px; }

    /* the account menu opens as a full-width panel under the bar */
    header.header .tz-nav-secondary > li { position: static; }
    header.header .tz-nav-secondary .dropdown-menu {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        min-width: 0;
        margin: 0;
    }

    .tz-mobile-search { margin: 12px 0 4px; }
    .tz-mobile-search .search {
        background: var(--d-surface-2);
        border: 1px solid var(--d-line);
    }
    .tz-mobile-search .btn,
    .tz-mobile-search .form-control {
        background: transparent;
        border: 0;
        color: var(--d-fg);
    }
    .tz-mobile-search .form-control::placeholder { color: var(--d-fg-subtle); }
}

/* small phones: the account menu shrinks to a user icon tile */
@media (max-width: 575.98px) {
    header.header .tz-nav .tz-nav-secondary > li > a {
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        background: var(--d-surface-2);
    }
    header.header .tz-nav-secondary > li > a::before {
        content: "\f007";
        font-family: "Font Awesome 5 Pro";
        font-weight: 400;
        font-size: 15px;
    }
    header.header .tz-nav-secondary .tz-nav-label,
    header.header .tz-nav-secondary .tz-caret,
    header.header .tz-nav-secondary > li > a > .badge { display: none; }
}

/* ------------------------------------------------------------------
 * Breadcrumb
 * ------------------------------------------------------------------ */
.master-breadcrumb { background: transparent; }
.master-breadcrumb .breadcrumb {
    padding: 28px 0 8px;
    margin: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item.active { color: var(--fg-subtle); }
.master-breadcrumb .breadcrumb-item a { color: var(--fg); }
.master-breadcrumb .breadcrumb-item a:hover { color: var(--accent); text-decoration: none; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--dot); }

#main-body { padding: 24px 0 96px; }

/* ------------------------------------------------------------------
 * Homepage domain hero
 * ------------------------------------------------------------------ */
.home-domain-search.tz-hero {
    position: relative;
    margin: 12px 12px 0;
    background-color: var(--d-bg);
    background-image: radial-gradient(var(--d-dot) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: -12px -12px;
    color: var(--d-fg);
    overflow: hidden;
}
@media (min-width: 768px) {
    .home-domain-search.tz-hero { margin: 20px 20px 0; }
}
.home-domain-search.tz-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--d-bg) 85%);
    pointer-events: none;
}
.home-domain-search .tz-hero-inner {
    position: relative;
    z-index: 1;
    padding: 72px 0 48px;
}
@media (min-width: 992px) {
    .home-domain-search .tz-hero-inner { padding: 112px 0 64px; }
}
.home-domain-search .tz-eyebrow { color: var(--d-fg-subtle); }
.home-domain-search h2 {
    max-width: 14ch;
    margin: 0 0 32px;
    color: var(--d-fg);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: .95;
    letter-spacing: -0.05em;
}
.home-domain-search .input-group-wrapper {
    max-width: 760px;
    margin: 0 0 24px;
    padding: 6px;
    background: var(--d-surface);
    border: 1px solid var(--d-line-strong);
}
.home-domain-search .input-group-wrapper:focus-within { border-color: var(--d-accent); }
.home-domain-search .input-group-wrapper .form-control {
    height: 48px;
    background: transparent;
    color: var(--d-fg);
    font-size: 17px;
}
.home-domain-search .input-group-wrapper .form-control::placeholder { color: var(--d-fg-subtle); }
.home-domain-search .input-group-wrapper .btn { height: 48px; margin: 0 0 0 6px !important; padding: 0 24px; }
.home-domain-search .btn-success {
    background: var(--d-surface-2);
    border-color: var(--d-surface-2);
    color: var(--d-fg);
}
.home-domain-search .btn-success:hover { background: #2e3237; border-color: #2e3237; color: var(--d-fg); }
.home-domain-search .tld-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--d-fg-muted);
}
.home-domain-search .tld-logos li {
    display: flex;
    align-items: center;
    gap: 12px;
    float: none;
    padding: 8px 14px 8px 8px;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
}
.home-domain-search .tld-logos img { width: 48px; filter: grayscale(1) brightness(2); }
.home-domain-search .btn-link { color: var(--d-fg-muted); font-family: var(--font-mono); font-size: 13px; }
.home-domain-search .btn-link:hover { color: var(--d-fg); }

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: -0.01em;
    border-width: 1px;
    transition: color .3s var(--ease-sui), background-color .3s var(--ease-sui), border-color .3s var(--ease-sui);
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 2px var(--accent-soft) !important; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.disabled, .btn-primary:disabled {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: var(--accent-fg);
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background: var(--accent-fill-hover);
    border-color: var(--accent-fill-hover);
    color: var(--accent-fg);
}

.btn-default, .btn-secondary, .btn-light {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--fg);
}
.btn-default:hover, .btn-default:focus, .btn-default.active,
.btn-secondary:hover, .btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-light:hover, .btn-light:focus,
.show > .btn-secondary.dropdown-toggle,
.show > .btn-default.dropdown-toggle {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--fg);
}

.btn-dark { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn-dark:hover { background: #222529; border-color: #222529; }

.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover, .btn-success:focus { background: #166534; border-color: #166534; }
.btn-danger { background: var(--danger); border-color: var(--danger); }

.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }

.btn-link { color: var(--accent); }

/* ------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------ */
.form-control,
.custom-select,
.input-group-text,
#registration .field,
#registration .form-control {
    background-color: var(--surface);
    border-color: var(--line-strong);
    color: var(--fg);
    font-family: var(--font-sans);
}
.input-group-text { background-color: var(--bg); color: var(--fg-muted); }
.form-control:focus,
.custom-select:focus,
#registration .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
.form-control::placeholder { color: var(--fg-subtle); }
label, .col-form-label { color: var(--fg-muted); font-weight: 400; }
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--accent-fill);
    border-color: var(--accent-fill);
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ------------------------------------------------------------------
 * Cards, sidebar, tiles
 * ------------------------------------------------------------------ */
.card,
.mc-promo-manage,
.mc-promo-login {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
}
.card-header,
.card-footer {
    background: var(--surface);
    border-color: var(--line);
}
.card-title,
.primary-content .card-title { font-weight: 400; letter-spacing: -0.03em; }

.sidebar .card { margin-bottom: 16px; }
.sidebar .card-header { padding: 14px 16px 10px; border-bottom: 0; }
.sidebar .card-title {
    font-family: var(--font-mono);
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fg-subtle);
}
.sidebar .card-title::after { content: "/"; }
.sidebar .card-title > i:not(.card-minimise) { display: none; }
.sidebar .card-title .card-minimise { font-size: 10px; line-height: 16px; color: var(--fg-subtle); }
.sidebar .list-group { padding: 0 8px 8px; }
.sidebar .list-group-item {
    padding: 9px 10px;
    border: 0;
    color: var(--fg);
    font-size: 14px;
    transition: background-color .2s var(--ease-sui);
}
.sidebar .list-group-item:hover { background: var(--bg); color: var(--fg); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: var(--accent-fg);
}
.sidebar .list-group-item .badge { background: var(--surface-2); color: var(--fg-muted); font-family: var(--font-mono); font-weight: 400; }
.sidebar .list-group-item.active .badge { background: rgba(255, 255, 255, .2); color: #fff; }

.tiles { background: var(--surface); border: 1px solid var(--line); }
.tiles .tile {
    padding: 20px 24px;
    background: var(--surface);
    border-right: 1px solid var(--line);
}
.tiles .tile:hover { background: var(--bg); }
.tiles .tile .stat { font-size: 48px; letter-spacing: -0.05em; color: var(--fg); }
.tiles .tile .title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--fg-subtle);
}
.tiles .tile .highlight { height: 2px; }
.tiles .tile i { font-size: 40px; top: 20px; right: 24px; color: var(--surface-2); }
.tiles .tile:hover i { font-size: 44px; color: var(--accent); }
@media (max-width: 1199.98px) {
    .tiles div:nth-child(1) > .tile,
    .tiles div:nth-child(2) > .tile { border-bottom-color: var(--line); }
}

.client-home-cards .card-header { background: var(--surface); font-weight: 400; }
.client-home-cards .card-title { font-size: 16px; letter-spacing: -0.02em; }
.client-home-cards .list-group { border-color: var(--line) !important; }
.client-home-cards .list-group .list-group-item { border-color: var(--line); }

.action-icon-btns a {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--fg);
}
.action-icon-btns a .ico-container i { color: var(--fg-subtle); transition: color .3s var(--ease-sui); }
.action-icon-btns a:hover { color: var(--fg); border-color: var(--accent); }
.action-icon-btns a:hover .ico-container { font-size: 2.6em; }
.action-icon-btns a:hover .ico-container i { color: var(--accent); }

/* ------------------------------------------------------------------
 * Tables, lists, tabs, pagination
 * ------------------------------------------------------------------ */
.table { color: var(--fg); }
.table th, .table td, .table thead th { border-color: var(--line); }
table.table-list thead th,
.dataTables_wrapper table.table-list thead th {
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fg-subtle);
}
.table-list > tbody > tr:hover > td { background: var(--bg); }

.list-group-item { border-color: var(--line); }
.list-group-item.active { background: var(--accent-fill); border-color: var(--accent-fill); }

.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { color: var(--fg-muted); border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--fg); border-bottom-color: var(--line-strong); }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--fg);
    background: transparent;
    border-bottom-color: var(--accent);
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--accent-fill); }

.pagination > li > a, .pagination > li > span, .page-link {
    color: var(--fg);
    border-color: var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover,
.page-item.active .page-link {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: #fff;
}

/* ------------------------------------------------------------------
 * Alerts, badges, labels
 * ------------------------------------------------------------------ */
.alert { border: 1px solid var(--line); border-left-width: 3px; }
.alert-info { background: var(--accent-soft); border-left-color: var(--accent); color: #1e3a8a; }
.alert-success { background: #15803d14; border-left-color: var(--success); color: #14532d; }
.alert-warning { background: #a35a0014; border-left-color: var(--warn); color: #713f12; }
.alert-danger { background: #d62d2d14; border-left-color: var(--danger); color: #7f1d1d; }

.badge, .label {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: .02em;
}
.badge-info, .badge-primary { background: var(--accent-fill); }
.badge-secondary { background: var(--surface-2); color: var(--fg); }

/* ------------------------------------------------------------------
 * Popovers, dropdowns, modals
 * ------------------------------------------------------------------ */
.dropdown-menu {
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -12px rgba(19, 21, 24, .25);
    padding: 6px;
}
.dropdown-item { padding: 8px 12px; color: var(--fg); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bg); color: var(--fg); }
.dropdown-item.active, .dropdown-item:active { background: var(--accent-fill); color: #fff; }

.popover { border-color: var(--line); font-family: var(--font-sans); }

.modal-content { border: 1px solid var(--line); }
.modal .modal-header {
    background: var(--surface);
    border-bottom-color: var(--line);
}
.modal-footer { border-top-color: var(--line); }
.modal-backdrop.show { opacity: .7; }

.modal-localisation .modal-content { background: var(--d-surface); border-color: var(--d-line); }
.modal-localisation .modal-body {
    background: var(--d-bg) radial-gradient(var(--d-dot) 1px, transparent 1px);
    background-size: 24px 24px;
}
.modal-localisation .h5 {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--d-fg-subtle);
}
.modal-localisation .item-selector .item {
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    color: var(--d-fg);
}
.modal-localisation .item-selector .item:hover { background: var(--d-surface-2); }
.modal-localisation .item-selector .item.active { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.modal-localisation .modal-footer { background: var(--d-surface); }
.modal-localisation .btn-default { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
footer.footer.tz-footer {
    margin: 0;
    padding: 96px 0 0;
    background: var(--d-bg);
    color: var(--d-fg);
    font-size: 14px;
}
.tz-footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .tz-footer-container { padding: 0 32px; }
}
.tz-footer-grid { display: grid; gap: 56px; }
@media (min-width: 992px) {
    .tz-footer-grid { grid-template-columns: 1fr 3fr; }
}
.tz-footer-brand img { height: 36px; width: auto; }
.tz-footer-status { margin-top: 24px; }
/* live status pill: dot colours per state, as on tenzix.com */
.tz-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    background: var(--d-surface-2);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    color: var(--d-fg);
    transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
.tz-status-pill:hover { color: var(--d-fg-muted); text-decoration: none; }
.tz-status-dot { position: relative; display: flex; width: 8px; height: 8px; }
.tz-status-core { position: relative; display: inline-flex; width: 8px; height: 8px; background: var(--d-fg-subtle); }
.tz-status-ping {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background: var(--d-signal);
    opacity: .7;
    animation: tz-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.tz-status-pill[data-state="ok"] .tz-status-ping { display: inline-flex; }
.tz-status-pill[data-state="ok"] .tz-status-core { background: var(--d-signal); }
.tz-status-pill[data-state="partial"] .tz-status-core,
.tz-status-pill[data-state="degraded"] .tz-status-core { background: var(--d-warn); }
.tz-status-pill[data-state="down"] .tz-status-core { background: var(--d-danger); }
.tz-status-pill[data-state="maint"] .tz-status-core { background: var(--accent-fill); }
@keyframes tz-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tz-status-ping { animation: none; } }

.tz-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
}
@media (min-width: 576px) {
    .tz-footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tz-footer-links h4 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--d-fg);
}
.tz-footer-links ul { margin: 20px 0 0; padding: 0; list-style: none; }
.tz-footer-links li + li { margin-top: 8px; }
.tz-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--d-fg-muted);
}
.tz-footer-links a:hover { color: var(--d-fg); text-decoration: none; }
.tz-footer-links a i { font-size: 9px; opacity: .6; }

.tz-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 80px;
    padding: 32px 0;
}
@media (min-width: 576px) {
    .tz-footer-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.tz-social { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tz-social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--d-surface-2);
    color: var(--d-fg);
    transition: background-color .3s var(--ease-sui), color .3s var(--ease-sui);
}
.tz-social a:hover { background: var(--accent-fill); color: var(--accent-fg); text-decoration: none; }
.tz-locale-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    background: var(--d-surface-2);
    color: var(--d-fg);
    font-family: var(--font-mono);
    font-size: 12px;
    transition: background-color .3s var(--ease-sui);
}
.tz-locale-btn:hover { background: var(--accent-fill); }
footer.footer.tz-footer .copyright {
    margin: 20px 0 0;
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: left;
    color: var(--d-fg-subtle);
}
.tz-complaints { flex-shrink: 0; opacity: .9; transition: opacity .2s; }
.tz-complaints:hover { opacity: 1; }
.tz-complaints img { height: 48px; width: auto; }
.tz-footer-legal {
    padding: 24px 0;
    border-top: 1px solid var(--d-line);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.625;
    color: var(--d-fg-subtle);
}
.tz-footer-legal p { margin: 0; }
.tz-footer-legal p + p { margin-top: 8px; }
.tz-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tz-footer-legal a:hover { color: var(--d-fg); }

/* ------------------------------------------------------------------
 * Ticket thread: live-chat layout
 * Tenzix staff on the left in accent blue, the client on the right.
 * ------------------------------------------------------------------ */
.view-ticket .tz-chat {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px;
    background-color: var(--bg);
}
.view-ticket .card-body { border-bottom-color: var(--line); }
@media (min-width: 768px) {
    .view-ticket .tz-chat { padding: 36px 32px; }
}

.tz-chat-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.tz-chat-row.is-client { flex-direction: row-reverse; }

.tz-chat-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1;
}
.is-staff .tz-chat-avatar { background: var(--surface); border: 1px solid var(--line); }
.is-staff .tz-chat-avatar img { width: 20px; height: 20px; }
.is-client .tz-chat-avatar { background: var(--fg); color: var(--surface); }

.tz-chat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: min(80%, 720px);
}
.is-staff .tz-chat-body { align-items: flex-start; }
.is-client .tz-chat-body { align-items: flex-end; }
@media (max-width: 575.98px) {
    .tz-chat-avatar { width: 28px; height: 28px; font-size: 12px; }
    .is-staff .tz-chat-avatar img { width: 16px; height: 16px; }
    .tz-chat-body { max-width: calc(100% - 40px); }
}

/* name, role and timestamp above the bubble */
.tz-chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 18px;
}
.is-client .tz-chat-meta { flex-direction: row-reverse; text-align: right; }
.tz-chat-meta .posted-by-name { color: var(--fg); font-weight: 500; }
.tz-chat-meta .posted-on { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); }
.tz-chat-meta .requestor-badge {
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 16px;
    background: var(--surface-2);
    color: var(--fg-muted);
}
.is-staff .tz-chat-meta .requestor-badge { background: var(--accent-soft); color: var(--accent); }

/* the bubble, with a square tail pointing at the avatar */
.tz-chat-bubble {
    position: relative;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.tz-chat-bubble::before,
.tz-chat-bubble::after {
    content: "";
    position: absolute;
    top: -1px;
    width: 0;
    height: 0;
    border-style: solid;
}

.is-staff .tz-chat-bubble { background: var(--accent-fill); color: var(--accent-fg); }
.is-staff .tz-chat-bubble::before {
    left: -8px;
    top: 0;
    border-width: 10px 0 0 8px;
    border-color: var(--accent-fill) transparent transparent transparent;
}
.is-staff .tz-chat-bubble::after { display: none; }

.is-client .tz-chat-bubble {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--fg);
}
.is-client .tz-chat-bubble::before {
    right: -10px;
    border-width: 12px 10px 0 0;
    border-color: var(--line-strong) transparent transparent transparent;
}
.is-client .tz-chat-bubble::after {
    right: -8px;
    top: 0;
    border-width: 10px 8px 0 0;
    border-color: var(--surface) transparent transparent transparent;
}

.tz-chat-bubble .message > :last-child { margin-bottom: 0; }
.tz-chat-bubble .message img { max-width: 100%; height: auto; }

/* markdown inside the blue bubble */
.is-staff .tz-chat-bubble ::selection { background: #fff; color: var(--accent-fill); }
.is-staff .tz-chat-bubble a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.is-staff .tz-chat-bubble a:hover { color: #dbe7ff; }
.is-staff .tz-chat-bubble .message h1,
.is-staff .tz-chat-bubble .message h2,
.is-staff .tz-chat-bubble .message h3,
.is-staff .tz-chat-bubble .message h4,
.is-staff .tz-chat-bubble .message h5,
.is-staff .tz-chat-bubble .message h6 { color: inherit; }
.is-staff .tz-chat-bubble code { color: #fff; background: rgba(0, 0, 0, .18); padding: 1px 4px; }
.is-staff .tz-chat-bubble pre { background: rgba(0, 0, 0, .28); color: #fff; }
.is-staff .tz-chat-bubble pre code { background: transparent; padding: 0; }
.is-staff .tz-chat-bubble blockquote { border-left-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .85); }
.is-staff .tz-chat-bubble hr { border-top-color: rgba(255, 255, 255, .25); }
.is-staff .tz-chat-bubble table { background: transparent; border-color: rgba(255, 255, 255, .3); }
.is-staff .tz-chat-bubble table th,
.is-staff .tz-chat-bubble table td { background: transparent !important; border-color: rgba(255, 255, 255, .3) !important; color: inherit; }

.is-client .tz-chat-bubble .message h1,
.is-client .tz-chat-bubble .message h2,
.is-client .tz-chat-bubble .message h3,
.is-client .tz-chat-bubble .message h4 { color: var(--fg); }
.is-client .tz-chat-bubble pre { background: var(--d-surface); }
.is-client .tz-chat-bubble blockquote { border-left-color: var(--line-strong); color: var(--fg-muted); }

/* attachments sit inside the bubble, under the message */
.tz-chat-bubble .attachments {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
    font-size: 12px;
}
.is-staff .tz-chat-bubble .attachments { border-top-color: rgba(255, 255, 255, .35); }
.tz-chat-bubble .attachments strong { font-family: var(--font-mono); font-weight: 400 !important; }
.view-ticket .tz-chat-bubble .attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.view-ticket .tz-chat-bubble .attachment-list li { width: 160px; }
.view-ticket .tz-chat-bubble .attachment-list li a { color: inherit; text-decoration: none; }
.view-ticket .tz-chat-bubble .attachment-list li span {
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    transition: border-color .2s var(--ease-sui);
}
.view-ticket .tz-chat-bubble .attachment-list li a:hover span { border-color: var(--accent); }
.view-ticket .tz-chat-bubble .attachment-list li figure {
    line-height: 72px;
    font-size: 2.5em;
    background: var(--bg);
    color: var(--fg-subtle);
}
.view-ticket .tz-chat-bubble .attachment-list .caption { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.view-ticket .is-staff .tz-chat-bubble .attachment-list li span { border-color: rgba(255, 255, 255, .3); }
.view-ticket .is-staff .tz-chat-bubble .attachment-list li a:hover span { border-color: #fff; }
.view-ticket .is-staff .tz-chat-bubble .attachment-list li figure { background: rgba(255, 255, 255, .12); color: #fff; }

/* IP address and satisfaction rating under the bubble */
.tz-chat-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-subtle);
}
.is-client .tz-chat-foot { justify-content: flex-end; }
.tz-chat-foot .rating,
.tz-chat-foot .rating-done { float: none; padding: 0; font-size: 18px; line-height: 1; }
.tz-chat-foot .rating-done .rated { margin-left: 8px; font-size: 11px; vertical-align: 3px; }
.ticket-reply .tz-chat-foot .rating span.star:before,
.ticket-reply .tz-chat-foot .rating-done span.star:before { color: var(--dot); }
.ticket-reply .tz-chat-foot .rating span.star:hover:before,
.ticket-reply .tz-chat-foot .rating span.star:hover ~ span.star:before,
.ticket-reply .tz-chat-foot .rating-done span.star.active:before { color: var(--accent); }

/* ------------------------------------------------------------------
 * Privacy Management tab and account-closed page (tenzix_privacy addon)
 * ------------------------------------------------------------------ */
.tz-profile-tabs { margin-bottom: 24px; }

.tzp-closed { max-width: 40rem; padding: 48px 0; }
.tzp-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 20px;
    color: var(--fg);
}
.tzp-title {
    margin: 20px 0 0;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.05em;
}
.tzp-lead { margin: 20px 0 0; font-size: 17px; line-height: 1.625; color: var(--fg-muted); }
.tzp-closed .btn { margin-top: 32px; height: 48px; padding: 0 28px; display: inline-flex; align-items: center; }

/* ------------------------------------------------------------------
 * Misc
 * ------------------------------------------------------------------ */
.verification-banner { font-family: var(--font-sans); }
.network-issue-alert { border-radius: 0; }
#fullpage-overlay { background: rgba(0, 0, 0, .8); }
.progress-bar { background-color: var(--accent-fill); }

/* Ticket priority is fixed to Medium: hide the field on the new-ticket form
 * and the Priority row in the ticket view's "Ticket Information" sidebar. */
.ticket-priority-field,
[menuItemName="Ticket Information"] [menuItemName="Priority"] { display: none !important; }
