/* ==========================================================================
   CloudyStation theme layer (child of Nexus)
   Loaded after nexus theme.min.css + our custom.css (tokens).
   Nexus' own CSS ignores --primary and hard-codes Bootstrap colours, so the
   brand is applied here. Bump cysnRev in includes/head.tpl after editing.
   Fonts: Inter + Montserrat (SIL OFL 1.1), self-hosted variable woff2.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    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;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
    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;
}
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --cs-brand: var(--primary-500);
    --cs-brand-strong: var(--primary-600);
    --cs-brand-deep: var(--primary-700);
    --cs-brand-soft: var(--primary-50);
    --cs-brand-tint: var(--primary-100);
    --cs-ink: #16121f;
    --cs-ink-2: #221b2e;
    --cs-text: var(--neutral-900);
    --cs-text-2: var(--neutral-600);
    --cs-muted: var(--neutral-500);
    --cs-border: var(--neutral-200);
    --cs-border-strong: var(--neutral-300);
    --cs-bg: #f6f4f8;
    --cs-surface: #fff;
    --cs-radius: 14px;
    --cs-radius-sm: 10px;
    --cs-radius-lg: 20px;
    --cs-shadow-sm: 0 1px 2px rgba(22, 18, 31, .05);
    --cs-shadow: 0 1px 2px rgba(22, 18, 31, .04), 0 8px 24px -10px rgba(22, 18, 31, .12);
    --cs-shadow-lg: 0 2px 6px rgba(22, 18, 31, .05), 0 24px 48px -16px rgba(22, 18, 31, .28);
    --cs-ring: 0 0 0 3px rgba(233, 27, 99, .22);
    --cs-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --cs-font-display: "Montserrat", "Inter", system-ui, sans-serif;
    --cs-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cs-header-h) + 16px); }
body {
    font-family: var(--cs-font);
    font-size: 0.9375rem;
    color: var(--cs-text);
    background-color: var(--cs-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--cs-font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--cs-text);
}
a { color: var(--cs-brand-strong); }
a:hover { color: var(--cs-brand-deep); }
::selection { background: var(--cs-brand-tint); color: var(--cs-ink); }
.text-muted { color: var(--cs-muted) !important; }
.text-primary { color: var(--cs-brand-strong) !important; }
.bg-primary { background-color: var(--cs-brand-strong) !important; }
.border-primary { border-color: var(--cs-brand-strong) !important; }
hr { border-top-color: var(--cs-border); }
code { color: var(--cs-brand-deep); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cs-brand-strong); }

section#main-body {
    background-color: var(--cs-bg);
    padding: 20px 0 64px;
    min-height: calc(100vh - var(--cs-header-h) - 320px);
}

/* WHMCS appends the licence "Powered by" line to the page body; keep it, just quieter. */
.primary-content > p[style*="text-align:center"]:last-child {
    margin: 40px 0 0;
    font-size: 12px;
    color: var(--cs-muted);
}
.primary-content > p[style*="text-align:center"]:last-child a { color: inherit; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-weight: 600;
    border-radius: var(--cs-radius-sm);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:focus, .btn.focus { box-shadow: var(--cs-ring) !important; }
.btn-lg, .btn-group-lg > .btn { padding: .72rem 1.35rem; font-size: 1rem; border-radius: 12px; }
.btn-sm, .btn-group-sm > .btn { border-radius: 8px; }

.btn-primary,
body .btn-primary,
body #main-body .btn-primary {
    color: #fff;
    background: var(--cs-brand-strong);
    border-color: var(--cs-brand-strong);
    box-shadow: 0 1px 2px rgba(174, 12, 75, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background: var(--cs-brand-deep);
    border-color: var(--cs-brand-deep);
}
.btn-primary.disabled, .btn-primary:disabled { background: var(--cs-brand-strong); border-color: var(--cs-brand-strong); }

.btn-default, .btn-secondary, .btn-light {
    color: var(--cs-text);
    background: var(--cs-surface);
    border: 1px solid var(--cs-border-strong);
    box-shadow: var(--cs-shadow-sm);
}
.btn-default:hover, .btn-secondary:hover, .btn-light:hover,
.btn-default:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show > .btn-default.dropdown-toggle {
    color: var(--cs-ink);
    background: var(--neutral-50);
    border-color: var(--neutral-400);
}

.btn-outline-primary,
body #main-body .btn-outline-primary {
    color: var(--cs-brand-strong);
    background: transparent;
    border: 1px solid var(--primary-300);
}
.btn-outline-primary:hover,
body #main-body .btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background: var(--cs-brand-strong);
    border-color: var(--cs-brand-strong);
}
.btn-link { color: var(--cs-brand-strong); font-weight: 600; }
.btn-link:hover { color: var(--cs-brand-deep); }

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-control, .custom-select, select.form-control {
    border-color: var(--cs-border-strong);
    border-radius: var(--cs-radius-sm);
    color: var(--cs-text);
    box-shadow: var(--cs-shadow-sm);
}
.form-control:not(textarea):not([size]):not([multiple]), .custom-select { min-height: calc(1.5em + .9rem + 2px); }
.form-control:focus, .custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: var(--cs-ring);
}
.form-control::placeholder { color: var(--neutral-400); }
label, .form-control-label, .col-form-label { font-weight: 500; color: var(--cs-text-2); }
.input-group-text {
    background: var(--neutral-50);
    border-color: var(--cs-border-strong);
    color: var(--cs-muted);
}
.input-group > .input-group-prepend > .input-group-text { border-radius: var(--cs-radius-sm) 0 0 var(--cs-radius-sm); }
.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .input-group-text { border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0; }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--cs-brand-strong);
    border-color: var(--cs-brand-strong);
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--cs-ring); }

/* --------------------------------------------------------------------------
   Cards, panels, list groups
   -------------------------------------------------------------------------- */
.card,
body .primary-content .card {
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    background: var(--cs-surface);
}
.primary-content .card { margin-bottom: 20px; }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--cs-border);
    padding: 14px 20px;
}
.card-header:first-child { border-radius: var(--cs-radius) var(--cs-radius) 0 0; }
.card-footer {
    background: var(--neutral-50);
    border-top: 1px solid var(--cs-border);
    padding: 12px 20px;
}
.card-footer:last-child { border-radius: 0 0 var(--cs-radius) var(--cs-radius); }
.card-title,
.primary-content .card-title {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.list-group-item {
    border-color: var(--cs-border);
    color: var(--cs-text);
}
.list-group-item-action:hover, .list-group-item-action:focus { background: var(--neutral-50); color: var(--cs-ink); }
.list-group-item.active {
    background: var(--cs-brand-soft);
    border-color: var(--cs-border);
    color: var(--cs-brand-deep);
}

/* Sidebar */
.sidebar .card-sidebar,
.sidebar .card {
    border-radius: var(--cs-radius);
    overflow: hidden;
}
.sidebar .card-header {
    background: transparent;
    padding: 14px 18px;
}
.sidebar .card-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--cs-muted);
    font-family: var(--cs-font);
}
.sidebar .card-title > i:first-child { color: var(--cs-brand); }
.sidebar .card-minimise { color: var(--neutral-400); font-size: .75rem; margin-top: 3px; }
.sidebar .list-group-item {
    border: 0;
    padding: 9px 18px;
    font-size: .92rem;
    color: var(--cs-text-2);
}
.sidebar .list-group-item + .list-group-item { border-top: 0; }
.sidebar .list-group-item:hover { color: var(--cs-ink); background: var(--neutral-50); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    color: var(--cs-brand-deep);
    background: var(--cs-brand-soft);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--cs-brand);
}
.sidebar .sidebar-menu-item-icon { color: var(--neutral-400); }
.sidebar .list-group-item.active .sidebar-menu-item-icon { color: var(--cs-brand); }
.sidebar .list-group-item .badge,
body .sidebar .list-group-item .badge {
    background: var(--neutral-100);
    color: var(--cs-text-2);
    border-radius: 999px;
    font-weight: 600;
}
.sidebar .card-body { padding: 16px 18px; font-size: .92rem; }
.sidebar .card-footer { background: var(--neutral-50); padding: 12px 18px; }

/* --------------------------------------------------------------------------
   Tables & DataTables
   -------------------------------------------------------------------------- */
.table { color: var(--cs-text); }
.table thead th {
    border-bottom: 1px solid var(--cs-border);
    border-top: 0;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--cs-muted);
    background: var(--neutral-50);
}
.table td, .table th { border-top-color: var(--cs-border); vertical-align: middle; }
body .dataTables_wrapper table.table-list,
.dataTables_wrapper table.table-list {
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow);
}
body .dataTables_wrapper table.table-list thead th {
    background: var(--neutral-50);
    color: var(--cs-muted);
    border-bottom: 1px solid var(--cs-border);
    padding: 12px 16px;
}
body .dataTables_wrapper table.table-list td { padding: 14px 16px; border-top: 1px solid var(--cs-border); }
body .dataTables_wrapper table.table-list tbody tr:first-child td { border-top: 0; }
.table-list > tbody > tr { cursor: pointer; }
.table-list > tbody > tr:hover > td { background: var(--cs-brand-soft) !important; }
.dataTables_wrapper .dataTables_filter label .form-control,
body .dataTables_wrapper .dataTables_filter label .form-control {
    border-radius: 999px;
    padding-left: 14px;
}
.dataTables_wrapper .dataTables_info { color: var(--cs-muted); font-size: .85rem; }

/* Pagination */
.pagination .page-link {
    color: var(--cs-text-2);
    border-color: var(--cs-border);
    min-width: 36px;
    text-align: center;
}
.pagination .page-link:hover { background: var(--neutral-50); color: var(--cs-ink); }
.pagination .page-item.active .page-link {
    background: var(--cs-brand-strong);
    border-color: var(--cs-brand-strong);
    color: #fff;
}
.pagination .page-link:focus { box-shadow: var(--cs-ring); }

/* --------------------------------------------------------------------------
   Status labels & badges (soft pills)
   -------------------------------------------------------------------------- */
.label.status,
body .dataTables_wrapper table.table-list .label.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    background: var(--neutral-100);
    color: var(--neutral-700);
}
.label.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}
.label.status.status-active, .label.status.status-paid, .label.status.status-completed,
.label.status.status-open, .label.status.status-accepted, .label.status.status-delivered {
    background: #e6f6ec; color: #0b6b34;
}
.label.status.status-pending, .label.status.status-unpaid, .label.status.status-payment-pending,
.label.status.status-pending-transfer, .label.status.status-grace, .label.status.status-draft,
.label.status.status-customer-reply, .label.status.status-onhold, .label.status.status-on-hold {
    background: #fff4e0; color: #955a00;
}
.label.status.status-suspended, .label.status.status-overdue, .label.status.status-fraud,
.label.status.status-collections, .label.status.status-redemption, .label.status.status-dead {
    background: #fde8ea; color: #b4152a;
}
.label.status.status-answered, .label.status.status-inprogress, .label.status.status-in-progress,
.label.status.status-refunded {
    background: #e8efff; color: #1d4ed8;
}
.label.status.status-terminated, .label.status.status-cancelled, .label.status.status-closed,
.label.status.status-expired, .label.status.status-transferred-away {
    background: var(--neutral-100); color: var(--neutral-600);
}
.badge { font-weight: 600; border-radius: 6px; }
.badge-primary { background: var(--cs-brand-strong); }
.badge-info { background: #e8efff; color: #1d4ed8; }

/* --------------------------------------------------------------------------
   Alerts, tabs, dropdowns, modals, popovers
   -------------------------------------------------------------------------- */
.alert { border-radius: var(--cs-radius-sm); border-width: 1px; }
.alert-info { background: #eef4ff; border-color: #d4e2ff; color: #1e3a8a; }
.alert-success { background: #ecf8f0; border-color: #c8ebd4; color: #0b5d2e; }
.alert-warning { background: #fff7e6; border-color: #fde3ad; color: #7a4a00; }
.alert-danger, .alert-error { background: #fdeef0; border-color: #f8cdd3; color: #9b1226; }

.nav-tabs { border-bottom-color: var(--cs-border); }
.nav-tabs .nav-link { color: var(--cs-text-2); font-weight: 500; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--cs-ink); border-color: transparent; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: var(--cs-brand-deep);
    background: transparent;
    border-bottom-color: var(--cs-brand);
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--cs-brand-strong); }

.dropdown-menu {
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    box-shadow: var(--cs-shadow-lg);
    padding: 6px;
    font-size: .92rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--cs-text-2);
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--neutral-50); color: var(--cs-ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--cs-brand-soft); color: var(--cs-brand-deep); }
.dropdown-divider { border-top-color: var(--cs-border); margin: 6px 0; }

.modal-content { border: 0; border-radius: var(--cs-radius-lg); box-shadow: var(--cs-shadow-lg); }
.modal-header { border-bottom-color: var(--cs-border); padding: 18px 24px; }
.modal-footer { border-top-color: var(--cs-border); padding: 14px 24px; }
.modal-body { padding: 20px 24px; }
.modal-backdrop.show { opacity: .55; background: var(--cs-ink); }

.popover { border: 1px solid var(--cs-border); border-radius: 12px; box-shadow: var(--cs-shadow-lg); font-family: var(--cs-font); }
.popover .client-alerts { margin: 0; padding: 0; list-style: none; }
.popover .client-alerts li a { display: flex; gap: 10px; padding: 8px 4px; color: var(--cs-text); }
.popover .client-alerts li a:hover { text-decoration: none; color: var(--cs-brand-deep); }

.progress { border-radius: 999px; background: var(--neutral-100); }
.progress-bar { background: var(--cs-brand-strong); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.cs-admin-bar {
    background: var(--cs-ink);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    padding: 6px 0;
}
.cs-admin-bar .container { display: flex; align-items: center; gap: 10px; }
.cs-admin-bar a { color: var(--primary-300); font-weight: 600; margin-left: auto; }
.cs-admin-bar a:hover { color: #fff; text-decoration: none; }

.cs-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--cs-border);
}
.cs-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--cs-header-h);
    position: relative;
}
.cs-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.cs-brand:hover { text-decoration: none; }
.cs-logo { height: 30px; width: auto; max-width: 220px; }

/* #nav must stay under 30px tall on one row: whmcs.js autoCollapse('#nav', 30)
   moves items into the "More" dropdown whenever it is taller. */
.cs-nav,
#nav.cs-nav {
    display: flex;
    flex-wrap: wrap; /* overflow must wrap (grow taller) for autoCollapse to notice it */
    align-items: center;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cs-nav > li > a {
    display: block;
    padding: 4px 12px;
    line-height: 20px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--cs-text-2);
    border-radius: 8px;
    white-space: nowrap;
}
.cs-nav > li > a:hover,
.cs-nav > li.show > a {
    color: var(--cs-ink);
    background: var(--neutral-100);
    text-decoration: none;
}
.cs-nav > li > a .badge { background: var(--cs-brand-strong); color: #fff; border-radius: 999px; }
.cs-nav .dropdown-toggle::after {
    border: 0;
    content: "\f078";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 9px;
    vertical-align: 2px;
    margin-left: 6px;
    opacity: .55;
}
.cs-nav .dropdown-menu { min-width: 220px; margin-top: 10px; }
/* navbar.tpl marks both the <li> and the <a> as .dropdown-item; autoCollapse moves top-level <li>s into
   "More" and re-classes the <li> (not the <a>) as .dropdown-item, so style any <a> in these menus. */
.cs-nav .dropdown-menu > li,
.cs-nav .dropdown-menu > li.dropdown-item,
.cs-nav .dropdown-menu > li.dropdown-item:hover { padding: 0; background: none; }
.cs-nav .dropdown-menu > li > a {
    display: block;
    padding: 8px 12px !important;
    border-radius: 8px;
    color: var(--cs-text-2);
    white-space: nowrap;
}
.cs-nav .dropdown-menu > li > a:hover,
.cs-nav .dropdown-menu > li > a:focus {
    background: var(--neutral-50);
    color: var(--cs-ink);
    text-decoration: none;
}

.cs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.cs-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--cs-text-2);
    font-size: 17px;
    transition: background-color .15s ease, color .15s ease;
}
.cs-icon-btn:hover, .cs-icon-btn:focus, .show > .cs-icon-btn { background: var(--neutral-100); color: var(--cs-ink); text-decoration: none; outline: 0; }
.cs-icon-btn:focus-visible { box-shadow: var(--cs-ring); }
.cs-dot {
    position: absolute;
    top: 4px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cs-brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.cs-dot-empty { display: none; }
.cs-search-menu { width: 340px; padding: 8px; }
.cs-search-menu form, .cs-mobile-search { position: relative; }
.cs-search-menu form i, .cs-mobile-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
}
.cs-search-menu .form-control, .cs-mobile-search .form-control { padding-left: 36px; box-shadow: none; }

.cs-link-login {
    padding: 8px 12px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--cs-text);
    border-radius: 8px;
}
.cs-link-login:hover { color: var(--cs-ink); background: var(--neutral-100); text-decoration: none; }
.cs-btn-signup { margin-left: 4px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
.cs-link-login { white-space: nowrap; }

.cs-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--cs-border);
    border-radius: 999px;
    background: var(--cs-surface);
    color: var(--cs-text);
    font-weight: 600;
    font-size: .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cs-account-btn:hover, .show > .cs-account-btn { border-color: var(--cs-border-strong); box-shadow: var(--cs-shadow-sm); }
.cs-account-btn:focus { outline: 0; box-shadow: var(--cs-ring); }
.cs-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-700));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.cs-caret { font-size: 10px; color: var(--cs-muted); }
.cs-account-menu { min-width: 260px; margin-top: 10px; }
.cs-account-head {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--cs-border);
}
.cs-account-head strong { color: var(--cs-ink); }
.cs-account-head span { font-size: .85rem; color: var(--cs-muted); overflow: hidden; text-overflow: ellipsis; }
.cs-account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; }
.cs-account-menu .dropdown-item i { color: var(--neutral-400); }
.cs-account-menu .dropdown-item .badge { margin-left: auto; }

@media (min-width: 992px) {
    .cs-collapse { display: flex !important; flex: 1 1 auto; min-width: 0; align-items: center; }
}
@media (max-width: 991.98px) {
    .cs-header-inner { gap: 12px; }
    .cs-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--cs-border);
        box-shadow: var(--cs-shadow-lg);
        padding: 12px 16px 16px;
        max-height: calc(100vh - var(--cs-header-h));
        overflow-y: auto;
    }
    .cs-collapse.collapsing { position: absolute; }
    .cs-nav, #nav.cs-nav { flex-direction: column; align-items: stretch; gap: 0; text-align: left; }
    .cs-nav > li > a { padding: 11px 12px; font-size: 1rem; }
    .cs-nav > li.collapsable-dropdown { display: none !important; } /* "More" is desktop-only */
    .cs-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        box-shadow: none;
        border: 0;
        margin: 0 0 6px;
        padding: 0 0 0 12px;
    }
    .cs-mobile-auth { display: flex; gap: 8px; margin-top: 12px; }
    .cs-mobile-auth .btn { flex: 1; }
    .cs-mobile-search { margin-top: 12px; }
    .cs-account-btn { padding: 3px; margin-left: 0; }
    .cs-account-btn .cs-caret { display: none; }
}
@media (max-width: 575.98px) {
    .cs-logo { height: 26px; }
    .cs-icon-btn { width: 36px; height: 36px; }
    .cs-actions { gap: 2px; }
}

/* Breadcrumb */
.cs-breadcrumb,
.master-breadcrumb.cs-breadcrumb { background: var(--cs-bg); }
.cs-breadcrumb .breadcrumb {
    background: transparent;
    padding: 18px 0 2px;
    margin: 0;
    font-size: .82rem;
}
.cs-breadcrumb .breadcrumb a { color: var(--cs-muted); }
.cs-breadcrumb .breadcrumb a:hover { color: var(--cs-brand-strong); text-decoration: none; }
.cs-breadcrumb .breadcrumb-item.active { color: var(--cs-text); font-weight: 500; }
.cs-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: var(--neutral-400); }

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */
.cs-hero {
    position: relative;
    overflow: hidden;
    background: var(--cs-ink);
    color: #fff;
    padding: 96px 0 168px;
    text-align: center;
    isolation: isolate;
}
.cs-hero::before {
    /* faint grid, faded out towards the edges */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.cs-hero-glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -260px;
    width: 1100px;
    height: 620px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side, rgba(233, 27, 99, .55), transparent 70%),
        radial-gradient(closest-side at 70% 60%, rgba(124, 58, 237, .35), transparent 70%);
    filter: blur(20px);
    opacity: .75;
}
.cs-hero-copy { max-width: 780px; margin: 0 auto; }
.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 500;
}
.cs-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-brand);
    box-shadow: 0 0 0 4px rgba(233, 27, 99, .25);
}
.cs-hero h1 {
    margin: 24px 0 18px;
    color: #fff;
    font-size: clamp(2.3rem, 5.4vw, 3.9rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.cs-accent {
    background: linear-gradient(92deg, #ff5a93 0%, var(--cs-brand) 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cs-lead {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.14rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
}
.cs-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cs-hero-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: rgba(255, 255, 255, .66);
}
.cs-hero-points i { color: var(--primary-300); margin-right: 6px; font-size: .8rem; }
.cs-hero-domain { max-width: 760px; margin: 40px auto 0; text-align: left; }

.cs-tpl-homepage section#main-body { padding-top: 0; }
.cs-services { position: relative; z-index: 2; margin-top: -104px; }
.cs-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 991.98px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cs-grid { grid-template-columns: 1fr; } }

.cs-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: var(--cs-radius-lg);
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    box-shadow: var(--cs-shadow);
    color: var(--cs-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cs-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cs-shadow-lg);
    border-color: var(--primary-200);
    color: var(--cs-text);
    text-decoration: none;
}
.cs-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--cs-brand-soft);
    color: var(--cs-brand-strong);
    font-size: 20px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px var(--primary-100);
}
.cs-service-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.cs-service-card p { margin: 0 0 20px; color: var(--cs-muted); font-size: .94rem; line-height: 1.55; flex: 1; }
.cs-card-link { font-weight: 600; font-size: .92rem; color: var(--cs-brand-strong); }
.cs-card-link i { font-size: .75rem; margin-left: 4px; transition: transform .2s ease; }
.cs-service-card:hover .cs-card-link i { transform: translateX(3px); }

.cs-section { margin-top: 88px; }
.cs-section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.cs-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cs-brand-strong);
}
.cs-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.025em; }
.cs-section-head p { color: var(--cs-muted); font-size: 1.02rem; margin: 0; }

.cs-help-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 991.98px) { .cs-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cs-help-grid { grid-template-columns: 1fr; } }
.cs-help-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--cs-radius);
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    color: var(--cs-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cs-help-card:hover { border-color: var(--primary-200); box-shadow: var(--cs-shadow); color: var(--cs-text); text-decoration: none; }
.cs-help-card i {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--neutral-100);
    color: var(--cs-text-2);
    font-size: 16px;
    transition: background-color .2s ease, color .2s ease;
}
.cs-help-card:hover i { background: var(--cs-brand-soft); color: var(--cs-brand-strong); }
.cs-help-card strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.cs-help-card span { font-size: .87rem; color: var(--cs-muted); line-height: 1.45; }

.cs-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 88px;
    padding: 48px;
    border-radius: 24px;
    background: var(--cs-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cs-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -120px;
    top: -160px;
    width: 520px;
    height: 420px;
    background: radial-gradient(closest-side, rgba(233, 27, 99, .5), transparent 70%);
    filter: blur(10px);
}
.cs-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cs-cta p { margin: 0; color: rgba(255, 255, 255, .68); max-width: 520px; }
.cs-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 575.98px) { .cs-cta { padding: 32px 24px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cs-footer {
    background: var(--cs-ink);
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
    padding: 64px 0 28px;
}
.cs-footer a { color: rgba(255, 255, 255, .72); }
.cs-footer a:hover { color: #fff; text-decoration: none; }
.cs-footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 767.98px) { .cs-footer-grid { grid-template-columns: repeat(2, 1fr); } .cs-footer-brand { grid-column: 1 / -1; } }
.cs-footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.cs-footer-brand p { max-width: 320px; line-height: 1.6; margin: 0; }
.cs-footer h4 {
    font-family: var(--cs-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin: 6px 0 16px;
}
.cs-footer ul.cs-links { list-style: none; margin: 0; padding: 0; }
.cs-footer ul.cs-links li + li { margin-top: 10px; }
.cs-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .84rem;
}
.cs-footer-bottom .list-inline { margin: 0; display: flex; align-items: center; gap: 6px; }
.cs-footer-bottom .list-inline-item { margin: 0; }
.cs-footer .btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    margin: 0 !important;
}
.cs-footer .btn-icon:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cs-locale-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-size: .84rem;
    font-weight: 500;
}
.cs-locale-btn:hover { border-color: rgba(255, 255, 255, .32); color: #fff; }
.cs-locale-btn:focus { outline: 0; box-shadow: var(--cs-ring); }

/* Language / currency modal (markup from Nexus) */
.modal-localisation .modal-content { background: var(--cs-ink); color: #fff; }
.modal-localisation .modal-body h5, .modal-localisation .modal-body .h5 { color: #fff; }
.modal-localisation .item-selector .item {
    display: block;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .1);
}
.modal-localisation .item-selector .item:hover { color: #fff; border-color: rgba(255, 255, 255, .3); text-decoration: none; }
.modal-localisation .item-selector .item.active { background: var(--cs-brand-strong); border-color: var(--cs-brand-strong); color: #fff; }
.modal-localisation .modal-footer { border-top-color: rgba(255, 255, 255, .1); }

/* --------------------------------------------------------------------------
   Auth pages (login, password reset): split card
   -------------------------------------------------------------------------- */
.cs-tpl-login section#main-body,
.cs-tpl-password-reset-container section#main-body { padding-top: 40px; }
.cs-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1020px;
    margin: 0 auto;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: 24px;
    box-shadow: var(--cs-shadow-lg);
    overflow: hidden;
}
.cs-auth-aside {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--cs-ink);
    color: rgba(255, 255, 255, .72);
    padding: 52px 48px;
    display: flex;
    align-items: flex-end;
}
.cs-auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.cs-auth-glow {
    position: absolute;
    z-index: -1;
    left: -140px;
    top: -180px;
    width: 560px;
    height: 460px;
    background:
        radial-gradient(closest-side, rgba(233, 27, 99, .55), transparent 70%),
        radial-gradient(closest-side at 80% 70%, rgba(124, 58, 237, .3), transparent 70%);
    filter: blur(10px);
}
.cs-auth-aside h2 { color: #fff; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin: 22px 0 10px; }
.cs-auth-aside > .cs-auth-aside-inner > p { font-size: 1.02rem; margin: 0 0 32px; }
.cs-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cs-auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.cs-auth-points i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--primary-300);
}
.cs-auth-points strong { display: block; color: #fff; font-size: .95rem; }
.cs-auth-points span { font-size: .88rem; }

.cs-auth-main { padding: 52px 52px 40px; }
.cs-auth-head h1, .cs-auth-main .h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; }
.cs-auth-head p { color: var(--cs-muted); margin: 0 0 28px; }
.cs-auth-main .mb-4 > .text-muted { margin-bottom: 8px !important; }
.cs-auth-main .form-group { margin-bottom: 18px; }
.cs-auth-main .form-control { min-height: 46px; }
.cs-auth-main .btn-lg { min-height: 48px; }
.cs-auth-main .form-group.text-center .btn { width: 100%; min-height: 48px; }
.cs-auth-alt { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--cs-border); text-align: center; color: var(--cs-muted); font-size: .92rem; }
.cs-auth-alt a { font-weight: 600; margin-left: 4px; }
.cs-forgot { color: var(--cs-muted); margin-bottom: .5rem; }
.cs-forgot:hover { color: var(--cs-brand-strong); }

/* Leading icon inside an input (works inside .input-group too) */
.cs-input-icon { position: relative; }
.cs-input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    color: var(--neutral-400);
    pointer-events: none;
}
.cs-input-icon > .form-control { padding-left: 40px; }
.cs-input-icon.input-group > .form-control { border-radius: var(--cs-radius-sm) 0 0 var(--cs-radius-sm) !important; }
.cs-input-icon .btn-reveal-pw { color: var(--cs-muted); box-shadow: none; }

@media (max-width: 767.98px) {
    .cs-auth { grid-template-columns: 1fr; border-radius: 20px; }
    .cs-auth-aside { display: none; }
    .cs-auth-main { padding: 32px 22px 26px; }
}

/* --------------------------------------------------------------------------
   Client area dashboard
   -------------------------------------------------------------------------- */
.cs-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cs-welcome h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 4px; }
.cs-welcome p { margin: 0; color: var(--cs-muted); }
.cs-welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-welcome-actions .btn i { margin-right: 6px; }

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 767.98px) { .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-stat {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: var(--cs-radius);
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    box-shadow: var(--cs-shadow);
    color: var(--cs-text);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cs-stat:hover { color: var(--cs-text); text-decoration: none; border-color: var(--primary-200); transform: translateY(-2px); box-shadow: var(--cs-shadow-lg); }
.cs-stat-icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--neutral-100);
    color: var(--cs-text-2);
    font-size: 18px;
}
.cs-stat:hover .cs-stat-icon { background: var(--cs-brand-soft); color: var(--cs-brand-strong); }
.cs-stat-value { font-family: var(--cs-font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.cs-stat-label { font-size: .84rem; color: var(--cs-muted); font-weight: 500; }
.cs-stat-alert .cs-stat-icon { background: var(--cs-brand-soft); color: var(--cs-brand-strong); }
.cs-stat-alert .cs-stat-value, .cs-stat-alert .cs-stat-label { color: var(--cs-brand-deep); }
.cs-stat-alert::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cs-brand);
    box-shadow: 0 0 0 4px rgba(233, 27, 99, .18);
}

/* Home panels (WHMCS ClientAreaHomepagePanels) */
.client-home-cards .card,
body .primary-content .client-home-cards .card {
    border: 1px solid var(--cs-border);
    border-top: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.client-home-cards .card-header,
body .primary-content .client-home-cards .card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border-bottom: 1px solid var(--cs-border);
}
.client-home-cards .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin: 0;
}
.client-home-cards .card-title > i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--cs-brand-soft);
    color: var(--cs-brand-strong);
    font-size: 14px;
}
.client-home-cards .card-title .badge { background: var(--cs-brand-strong); color: #fff; border-radius: 999px; }
body .primary-content .client-home-cards .card .card-header .btn {
    background: var(--cs-surface);
    color: var(--cs-text);
    border: 1px solid var(--cs-border-strong);
    font-size: .8rem;
    padding: 5px 12px;
    white-space: nowrap;
}
body .primary-content .client-home-cards .card .card-header .btn:hover { background: var(--neutral-50); border-color: var(--neutral-400); }
body .primary-content .client-home-cards .card .card-header .btn i { margin-right: 5px; }
.client-home-cards .card-body { padding: 18px 20px; color: var(--cs-text-2); }
.client-home-cards .card-body p:last-child { margin-bottom: 0; }
.client-home-cards .list-group { margin: 0; border-radius: 0; }
body .primary-content .client-home-cards .card .list-group .list-group-item {
    padding: 12px 20px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--cs-border);
    color: var(--cs-text);
    font-size: .92rem;
}
body .primary-content .client-home-cards .card .list-group .list-group-item:last-child { border-bottom: 0; }
body .primary-content .client-home-cards .card .card-footer {
    padding: 10px 20px;
    background: var(--neutral-50);
    font-size: .85rem;
    border-top: 1px solid var(--cs-border);
}
body .primary-content .client-home-cards .card .card-footer:empty { display: none; }
body .primary-content .client-home-cards .card .card-footer a { font-weight: 600; }

/* Sidebar "Your Info" card: tighter, friendlier */
.sidebar [menuItemName="Client Details"] .card-body strong { color: var(--cs-ink); }
.sidebar .card-footer .btn { width: 100%; }

/* Dashboard / sidebar refinements */
.cs-welcome-actions .btn { font-size: .88rem; padding: 8px 14px; }
body .sidebar .btn-default,
body .sidebar .btn-success {
    background: var(--cs-surface);
    color: var(--cs-text);
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-radius-sm);
    box-shadow: var(--cs-shadow-sm);
    font-weight: 600;
}
body .sidebar .btn-default:hover,
body .sidebar .btn-success:hover {
    background: var(--cs-brand-soft);
    color: var(--cs-brand-deep);
    border-color: var(--primary-200);
}
.client-home-cards .card-header { flex-wrap: wrap; }
.client-home-cards .card-title { flex: 1 1 auto; min-width: 0; }
.client-home-cards .card-body p { padding: 0; }
.client-home-cards .card-body { padding: 18px 20px !important; }
.dataTables_wrapper table.table-list thead th,
body .dataTables_wrapper table.table-list thead th { background-color: var(--neutral-50) !important; vertical-align: middle; }

/* Nav: no dark focus ring on mouse click; keyboard focus still gets the brand ring */
.cs-nav a:focus { outline: 0; }
.cs-nav a:focus-visible { box-shadow: var(--cs-ring); }
