/* *****************************************************

    ** Zenith theme styles **

    Layered on top of Nexus. Colours come from the tokens
    in custom.css, so prefer editing those over this file.

***************************************************** */

/* Base ------------------------------------------------ */

body.zenith,
body.zenith .tooltip,
body.zenith .popover {
    font-family: var(--font-sans);
}

html, body.zenith {
    background-color: var(--footer-bg);
}

/* Plain links only: link-styled buttons keep their own colours */
body.zenith a:where(:not(.btn, .list-group-item, .dropdown-item, .nav-link)) {
    color: var(--link);
}

body.zenith a:where(:not(.btn, .list-group-item, .dropdown-item, .nav-link)):hover {
    color: var(--link-hover);
}

body.zenith h1, body.zenith h2, body.zenith h3,
body.zenith h4, body.zenith h5, body.zenith h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* Buttons --------------------------------------------- */

body.zenith .btn-primary {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--on-brand);
    border-radius: var(--rounding-md);
    font-weight: 600;
}

body.zenith .btn-primary:hover,
body.zenith .btn-primary:focus,
body.zenith .btn-primary:not(:disabled):not(.disabled):active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--on-brand);
}

body.zenith .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem var(--brand-200);
}

body.zenith .btn-outline-primary {
    color: var(--brand-800);
    border-color: var(--brand-400);
    border-radius: var(--rounding-md);
}

body.zenith .btn-outline-primary:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--on-brand);
}

body.zenith .form-control:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 0.2rem var(--brand-100);
}

body.zenith .badge-primary,
body.zenith .bg-primary {
    background-color: var(--brand-500) !important;
    color: var(--on-brand) !important;
}

body.zenith .text-primary {
    color: var(--link) !important;
}

/* Header ---------------------------------------------- */

.zenith-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-muted);
    transition: box-shadow 0.2s ease;
}

.zenith-header.is-scrolled {
    box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.25);
}

body.zenith header.header .topbar {
    background: var(--surface-dark);
}

header.header .zenith-navbar {
    min-height: 72px;
    padding: 0;
}

.zenith-navbar > .container {
    flex-wrap: wrap;
    align-items: center;
}

.zenith-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: 2rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text) !important;
}

.zenith-navbar .navbar-brand .logo-img {
    height: 46px;
    width: auto;
    max-width: 260px;
}


.zenith-navbar .toolbar {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

header.header .zenith-navbar .toolbar .nav-link {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
}

header.header .zenith-navbar .toolbar .nav-link .badge {
    background: var(--brand-500);
    color: var(--on-brand);
}

.zenith-navbar .btn-cta {
    padding: 0.45rem 1.1rem;
    color: var(--on-brand) !important;
}

/* Primary navigation: Nexus spaces items 40px apart, too wide with a logged-in menu */
body.zenith .zenith-navbar #nav,
body.zenith .zenith-navbar .secondary-nav {
    gap: 0.15rem;
}

@media (min-width: 1200px) {
    .zenith-navbar > .container {
        flex-wrap: nowrap;
    }

    .zenith-navbar .navbar-brand {
        flex-shrink: 0;
    }

    .zenith-navbar .toolbar {
        margin-left: 0.5rem;
    }
}

/* Primary navigation */
header.header .zenith-navbar .main-navbar-wrapper {
    padding: 0;
}

.zenith-navbar #nav > li > a,
.zenith-navbar .secondary-nav > li > a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: var(--rounding-md);
    color: var(--text-accented);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.zenith-navbar #nav > li > a:hover,
.zenith-navbar .secondary-nav > li > a:hover,
.zenith-navbar #nav > li.show > a {
    background: var(--brand-50);
    color: var(--brand-800);
}

.zenith-navbar .dropdown-menu {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.3);
    padding: 0.5rem;
}

.zenith-navbar .dropdown-menu .dropdown-item {
    border-radius: var(--rounding-sm);
}

.zenith-navbar .dropdown-menu li.dropdown-item {
    padding: 0;
}

.zenith-navbar .dropdown-menu a.dropdown-item {
    padding: 0.4rem 0.75rem !important;
    color: var(--text-accented);
}

.zenith-navbar .dropdown-menu a.dropdown-item:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

@media (max-width: 1199.98px) {
    .zenith-navbar .main-navbar-wrapper {
        flex-basis: 100%;
        padding-bottom: 1rem !important;
    }

    .zenith-navbar .navbar-brand {
        margin-right: 1rem;
    }
}

/* Breadcrumb ------------------------------------------ */

body.zenith .master-breadcrumb,
body.zenith .master-breadcrumb .breadcrumb {
    background: var(--bg);
}

body.zenith .master-breadcrumb {
    border-bottom: 1px solid var(--border-muted);
}

/* Main body ------------------------------------------- */

body.zenith section#main-body {
    padding: 2rem 0 3rem;
    background-color: var(--bg-lifted);
}

body.zenith .primary-content .card,
body.zenith .sidebar .card {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Hero ------------------------------------------------ */

.zenith-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, var(--hero-glow-1), transparent 60%),
        radial-gradient(50rem 30rem at -10% 120%, var(--hero-glow-2), transparent 60%),
        var(--hero-bg);
    color: rgba(255, 255, 255, 0.85);
}

.zenith-hero .hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

body.zenith .zenith-hero h1,
body.zenith .zenith-hero h2,
body.zenith .zenith-hero h3 {
    color: #fff;
}

.zenith-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.zenith-hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.zenith-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

body.zenith .zenith-hero .btn-outline-light {
    border-radius: var(--rounding-md);
    font-weight: 600;
    color: #fff;
}

body.zenith .zenith-hero .btn-outline-light:hover {
    background: #fff;
    color: var(--brand-900);
}

.zenith-hero .hero-domain-search {
    margin-top: 2.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rounding-lg);
    backdrop-filter: blur(6px);
}

.zenith-hero .hero-domain-search .input-group-text,
.zenith-hero .hero-domain-search .form-control {
    border: 0;
    background: #fff;
}

.zenith-hero .hero-domain-search .input-group-text {
    color: var(--text-muted);
    border-radius: var(--rounding-md) 0 0 var(--rounding-md);
}

.zenith-hero .hero-domain-search .form-control {
    box-shadow: none;
}

.zenith-hero .hero-domain-search .input-group-append .btn {
    border-radius: 0;
    font-weight: 600;
}

.zenith-hero .hero-domain-search .input-group-append .btn:last-child {
    border-radius: 0 var(--rounding-md) var(--rounding-md) 0;
}

.zenith-hero .hero-domain-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0.5rem 0.25rem;
    font-size: 0.875rem;
}

.zenith-hero .tld-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zenith-hero .tld-list strong {
    color: #fff;
    margin-right: 0.25rem;
}

.zenith-hero .hero-link {
    color: #fff !important;
    font-weight: 600;
}

/* Hero without the banner: a slim domain search bar */
.zenith-hero.is-compact {
    padding: 2rem 0;
}

.zenith-hero.is-compact .hero-domain-search {
    margin-top: 0;
}

/* Sections, cards and tiles ---------------------------- */

.zenith-section {
    margin-bottom: 2.5rem;
}

.zenith-section .section-heading {
    text-align: center;
    margin: 1rem 0 2rem;
}

.zenith-section .section-heading h2 {
    font-size: 1.75rem;
}

.zenith-card {
    position: relative;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.zenith-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: 0 18px 40px -24px var(--brand-shadow);
}

.zenith-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.zenith-card p {
    color: var(--text-lifted);
}

.zenith-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: var(--rounding-md);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.35rem;
}

.zenith-card .card-link {
    font-weight: 600;
}

.zenith-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    padding: 1.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    color: var(--text-accented) !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.zenith-tile i {
    font-size: 1.75rem;
    color: var(--brand-600);
}

.zenith-tile:hover {
    border-color: var(--brand-300);
    color: var(--brand-700) !important;
    box-shadow: 0 12px 30px -20px var(--brand-shadow);
}

.zenith-tiles-muted .zenith-tile i {
    color: var(--text-lifted);
}

/* Pages Manager content -------------------------------- */

.pm-page {
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.pm-page.pm-layout-narrow {
    max-width: 820px;
    margin: 0 auto;
}

.pm-page.pm-layout-full {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.pm-page-header {
    margin-bottom: 1.5rem;
}

.pm-page-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.pm-page-header .pm-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pm-content {
    font-size: 1.025rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.pm-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rounding-md);
}

.pm-content h2, .pm-content h3 {
    margin-top: 2rem;
}

.pm-content table {
    width: 100%;
    margin-bottom: 1rem;
}

.pm-content blockquote {
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--brand-300);
    background: var(--brand-50);
    border-radius: var(--rounding-sm);
}

/* Footer ---------------------------------------------- */

body.zenith footer.zenith-footer {
    padding: 4rem 0 1.5rem;
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.925rem;
}

.zenith-footer .footer-brand {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.2rem;
}

.zenith-footer .footer-brand .logo-img {
    height: 52px;
    width: auto;
    max-width: 260px;
}

body.zenith .zenith-footer h6 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zenith-footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

.zenith-footer a {
    color: rgba(255, 255, 255, 0.65) !important;
}

.zenith-footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

.zenith-footer .footer-social .btn-icon {
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--rounding-md);
}

.zenith-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero calls to action use the accent colour */
body.zenith .zenith-hero .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-brand);
}

body.zenith .zenith-hero .btn-primary:hover,
body.zenith .zenith-hero .btn-primary:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--on-brand);
}

body.zenith #frmDomainHomepage #btnTransfer {
    background: var(--brand-100);
    border-color: var(--brand-100);
    color: var(--brand-900);
}

/* Login and register ------------------------------------ */

.zenith-auth-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 980px;
    margin: 1rem auto 2rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -40px rgba(17, 24, 39, 0.45);
}

.zenith-auth-login .zenith-auth-form {
    padding: clamp(1.75rem, 4vw, 3rem);
}

.zenith-auth .zenith-auth-form .input-group-text {
    background: var(--bg-muted);
}

/* Main action full width, as on the login form (password reset steps) */
.zenith-auth-login .zenith-auth-form .btn-primary {
    width: 100%;
}

.zenith-auth-switch {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-muted);
    text-align: center;
    font-size: 0.925rem;
}

.zenith-auth-switch a {
    font-weight: 700;
}

.zenith-auth-register {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.75rem;
    align-items: start;
}

.zenith-register-heading {
    margin-bottom: 1.25rem;
}

.zenith-auth-panel.is-sticky {
    position: sticky;
    top: 96px;
}

.zenith-auth-register .zenith-terminal {
    border-radius: var(--rounding-lg);
}

@media (max-width: 991.98px) {
    .zenith-auth-login,
    .zenith-auth-register {
        grid-template-columns: minmax(0, 1fr);
    }

    .zenith-auth-register .zenith-register-aside {
        order: -1;
    }

    .zenith-auth-panel.is-sticky {
        position: static;
    }

    .zenith-terminal .term-list,
    .zenith-terminal .term-foot {
        display: none;
    }
}

/* Terminal panel */
.zenith-terminal {
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
        radial-gradient(30rem 20rem at 110% -10%, var(--hero-glow-1), transparent 60%),
        linear-gradient(160deg, var(--surface-dark-2), var(--surface-dark));
    color: rgba(255, 255, 255, 0.75);
}

.zenith-terminal .term-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.zenith-terminal .term-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f87171;
}

.zenith-terminal .term-bar i:nth-child(2) { background: #fbbf24; }
.zenith-terminal .term-bar i:nth-child(3) { background: #34d399; }

.zenith-terminal .term-bar span {
    margin-left: auto;
}

.zenith-terminal .term-body {
    flex: 1;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.zenith-terminal .term-line {
    margin-bottom: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #fff;
    text-align: left;
}

.zenith-terminal .term-prompt {
    color: var(--brand-500);
    margin-right: 0.35rem;
}

.zenith-terminal .term-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    margin-left: 0.25rem;
    vertical-align: text-bottom;
    background: var(--brand-500);
    animation: zenith-blink 1.1s steps(1) infinite;
}

@keyframes zenith-blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .zenith-terminal .term-cursor { animation: none; }
}

body.zenith .zenith-terminal h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.zenith-terminal .term-text {
    margin-bottom: 1.5rem;
    font-size: 1.025rem;
}

.zenith-terminal .term-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zenith-terminal .term-list li {
    display: flex;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

.zenith-terminal .term-list i {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--brand-500);
}

.zenith-terminal .term-switch {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.zenith .zenith-terminal .term-switch a {
    color: var(--brand-400);
    font-weight: 700;
}

.zenith-terminal .term-foot {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Client area dashboard ---------------------------------- */

.zenith-dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.zenith-dash-header h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.zenith-dash-header .dash-whoami {
    margin: 0 0 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zenith-dash-header .dash-whoami span {
    color: var(--brand-600);
}

.zenith-dash-header .dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zenith-dash-header .dash-actions .btn {
    border-radius: var(--rounding-md);
    font-weight: 600;
}

body.zenith .zenith-dash-header .btn-outline-secondary {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-accented);
}

body.zenith .zenith-dash-header .btn-outline-secondary:hover {
    border-color: var(--surface-dark);
    background: var(--surface-dark);
    color: #fff;
}

.zenith-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.zenith-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.zenith-stat:hover {
    transform: translateY(-2px);
    border-color: var(--brand-300);
    box-shadow: 0 14px 30px -22px var(--brand-shadow);
}

.zenith-stat .stat-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--rounding-md);
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 1.15rem;
}

.zenith-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

.zenith-stat .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-lifted);
}

.zenith-stat.is-alert .stat-icon {
    background: #fef2f2;
    color: var(--error);
}

/* Home panels (WHMCS markup) */
body.zenith .client-home-cards .card {
    border: 1px solid var(--border-muted);
    border-top-width: 1px;
    border-radius: var(--rounding-lg);
    box-shadow: none;
    overflow: hidden;
}

body.zenith .client-home-cards .card-header {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border-muted);
}

body.zenith .client-home-cards .card-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Nexus floats the header button first; put it at the end of the row */
body.zenith .client-home-cards .card-title > .float-right {
    float: none !important;
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
}

body.zenith .client-home-cards .card-title > i {
    width: 30px;
    height: 30px;
    margin-right: 0.35rem;
    border-radius: var(--rounding-sm);
    background: var(--bg-lifted);
    color: var(--text-accented);
    font-size: 0.85rem;
    line-height: 30px;
    text-align: center;
}

body.zenith .client-home-cards .card-header .btn {
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--rounding-sm);
    background: var(--bg);
    color: var(--text-accented);
    font-size: 0.8rem;
    font-weight: 600;
}

body.zenith .client-home-cards .card-header .btn:hover {
    border-color: var(--surface-dark);
    background: var(--surface-dark);
    color: #fff;
}

/* Footers are often empty: blend them into the card */
body.zenith .client-home-cards .card-footer {
    padding-top: 0;
    background: var(--bg);
    border-top: 0;
}

body.zenith .client-home-cards .list-group-item {
    border-color: var(--border-muted);
}

/* Sidebars (client area) */
body.zenith .sidebar .card-header {
    background: var(--bg);
}

body.zenith .sidebar .list-group-item {
    color: var(--text-accented);
    border-color: var(--border-muted);
}

body.zenith .sidebar .list-group-item.active,
body.zenith .sidebar .list-group-item:hover {
    background: var(--brand-50);
    color: var(--brand-800);
}

body.zenith .sidebar .list-group-item.active {
    border-left: 3px solid var(--brand-500);
}

/* Default buttons (WHMCS uses btn-default widely) */
body.zenith .btn-default {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-accented);
}

body.zenith .btn-default:hover {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: #fff;
}

/* Logged-in top bar */
body.zenith .zenith-header .topbar {
    font-size: 0.85rem;
}

/* Client area lists (DataTables) ------------------------- */

body.zenith .table-container {
    padding: 0.5rem 1.25rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
}

body.zenith .table-list {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

body.zenith .table-list > thead > tr > th {
    padding: 0.8rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--border-muted);
    background: transparent;
    color: var(--text-lifted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.zenith .table-list > tbody > tr > td {
    padding: 0.85rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--border-muted);
    background: transparent;
    vertical-align: middle;
}

body.zenith .table-list > tbody > tr:last-child > td {
    border-bottom: 0;
}

body.zenith .table-list > tbody > tr:hover > td {
    background: var(--bg-muted);
}

body.zenith .table-list td.dataTables_empty {
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

body.zenith .dataTables_wrapper .dataTables_filter input,
body.zenith .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border);
    border-radius: var(--rounding-md);
}

body.zenith .dataTables_wrapper .dataTables_info {
    color: var(--text-lifted);
    font-size: 0.85rem;
}

body.zenith .dataTables_wrapper .pagination .page-link,
body.zenith .dataTables_wrapper .paginate_button {
    border-radius: var(--rounding-sm);
    color: var(--text-accented);
}

body.zenith .dataTables_wrapper .pagination .active .page-link {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: #fff;
}

/* Status labels in lists */
body.zenith .label.status,
body.zenith span.status {
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* "View" filter lists in the sidebar */
body.zenith .view-filter-btns .list-group-item .badge {
    background: var(--bg-lifted);
    color: var(--text-accented);
}

/* Announcements and knowledgebase ------------------------ */

/* Announcement titles are links inside h1 */
body.zenith .primary-content .card h1 a,
body.zenith .primary-content .card h2.card-title a {
    color: var(--text);
}

body.zenith .primary-content .card h1 {
    font-size: 1.6rem;
}

body.zenith .primary-content .card h1 a:hover,
body.zenith .primary-content .card h2.card-title a:hover {
    color: var(--link);
}

body.zenith .kb-search .form-control,
body.zenith .primary-content form .input-group-lg .form-control {
    border-radius: var(--rounding-md) 0 0 var(--rounding-md);
}

body.zenith .primary-content .alert-info {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    background: var(--bg);
    color: var(--text-lifted);
}

/* Form pages (contact, tickets, account details) --------- */

body.zenith .primary-content .card-body .card-title,
body.zenith .primary-content > .card .card-title {
    font-weight: 700;
}

body.zenith .primary-content .form-control {
    border-color: var(--border);
    border-radius: var(--rounding-md);
}

body.zenith .primary-content .form-control:disabled,
body.zenith .primary-content .form-control[readonly] {
    background: var(--bg-muted);
}

body.zenith .primary-content label {
    font-weight: 600;
    color: var(--text-accented);
}
