/*
 * Afixar Client Area UI
 * Dark Sidebar + Light UI, adapted to WHMCS Six / Bootstrap 3.
 */

:root {
    --afx-bg: #f0f0f2;
    --afx-surface: #ffffff;
    --afx-sidebar: #111318;
    --afx-sidebar-border: #292c34;
    --afx-sidebar-text: #94a3b8;
    --afx-sidebar-active: rgba(255, 255, 255, 0.10);
    --afx-text: #111827;
    --afx-muted: #64748b;
    --afx-border: #e5e7eb;
    --afx-primary: #111827;
    --afx-primary-hover: #273244;
    --afx-link: #2563eb;
    --afx-success: #15803d;
    --afx-warning: #a16207;
    --afx-danger: #dc2626;
    --afx-radius: 12px;
    --afx-sidebar-width: 274px;
    --afx-topbar-height: 58px;
    --afx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    /* Compatibility with WHMCS/Nexus semantic variables. */
    --primary: #111827;
    --primary-lifted: #1f2937;
    --primary-accented: #374151;
    --secondary: #64748b;
    --secondary-lifted: #475569;
    --secondary-accented: #334155;
    --success: #15803d;
    --success-lifted: #166534;
    --success-accented: #14532d;
    --info: #2563eb;
    --info-lifted: #1d4ed8;
    --info-accented: #1e40af;
    --warning: #a16207;
    --warning-lifted: #854d0e;
    --warning-accented: #713f12;
    --error: #dc2626;
    --error-lifted: #b91c1c;
    --error-accented: #991b1b;
    --text: #111827;
    --text-muted: #94a3b8;
    --text-lifted: #64748b;
    --text-accented: #475569;
    --border: #e5e7eb;
    --border-muted: #f1f5f9;
    --border-lifted: #cbd5e1;
    --bg: #ffffff;
    --bg-muted: #f8fafc;
    --bg-lifted: #f1f5f9;
    --bg-inverted: #111827;
}

html {
    min-height: 100%;
    background: var(--afx-bg);
}

body,
input,
button,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    padding-top: var(--afx-topbar-height);
    padding-left: var(--afx-sidebar-width);
    background: var(--afx-bg);
    color: var(--afx-text);
    font-size: 14px;
}

a {
    color: var(--afx-link);
}

a:hover,
a:focus {
    color: #1d4ed8;
}

/* Top bar */
#header {
    position: fixed;
    z-index: 1025;
    top: 0;
    right: 0;
    left: var(--afx-sidebar-width);
    height: var(--afx-topbar-height);
    min-height: var(--afx-topbar-height);
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--afx-border);
    background: var(--afx-surface);
    box-shadow: var(--afx-shadow);
}

#header > .container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 28px;
    align-items: center;
    justify-content: flex-end;
}

#header .top-nav {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 6px;
}

#header .top-nav > li {
    margin: 0;
}

#header .top-nav > li > a {
    display: flex;
    min-height: 36px;
    padding: 8px 12px;
    align-items: center;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

#header .top-nav > li > a:hover,
#header .top-nav > li > a:focus {
    background: #f1f5f9;
    color: var(--afx-text);
    text-decoration: none;
}

#header .top-nav .primary-action > a,
#header .top-nav .primary-action > a.btn {
    border-color: var(--afx-primary);
    background: var(--afx-primary);
    color: #fff;
}

#accountNotifications {
    position: relative;
    width: 38px;
    justify-content: center;
    font-size: 16px !important;
}

.afx-notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #334155;
}

.afx-sidebar-toggle,
.afx-mobile-logo {
    display: none;
}

/* Sidebar */
#main-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1030;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--afx-sidebar-width);
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--afx-sidebar-border);
    background: var(--afx-sidebar);
}

.afx-sidebar-brand {
    display: flex;
    height: var(--afx-topbar-height);
    padding: 0 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.afx-sidebar-brand img {
    display: block;
    width: auto;
    max-width: 142px;
    max-height: 34px;
}

.afx-sidebar-search {
    position: relative;
    display: block;
    height: 38px;
    margin: 14px 10px 10px;
}

html body #main-menu .afx-sidebar-search i.afx-search-icon {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 14px;
    z-index: 1;
    display: flex;
    float: none !important;
    width: 14px;
    height: 38px;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #7c8798;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    transform: none;
    pointer-events: none;
}

.afx-sidebar-search input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding: 8px 12px 8px 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    outline: 0;
    background: #272a31;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 400;
}

.afx-sidebar-search input::placeholder {
    color: #7c8798;
}

.afx-sidebar-search input:focus {
    border-color: #475569;
    background: #2d3037;
}

.afx-sidebar-label {
    padding: 2px 21px 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#main-menu .navbar-main {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main-menu .navbar-main > .container {
    width: 100%;
    padding: 0 9px 24px;
}

#main-menu .navbar-collapse {
    display: block !important;
    height: auto !important;
    padding: 0;
    border: 0;
    box-shadow: none;
}

#main-menu .navbar-header {
    display: none;
}

#main-menu .navbar-nav,
#main-menu .navbar-right {
    float: none !important;
    width: 100%;
    margin: 0;
}

#main-menu .navbar-nav > li {
    float: none;
    width: 100%;
    margin: 2px 0;
}

#main-menu .navbar-nav > li > a {
    display: flex;
    min-height: 42px;
    padding: 10px 13px;
    align-items: center;
    border-radius: 9px;
    color: var(--afx-sidebar-text);
    font-size: 13px;
    font-weight: 700;
}

#main-menu .navbar-nav > li > a i {
    width: 22px;
    margin-right: 8px;
    color: #cbd5e1;
    font-size: 17px;
    text-align: center;
}

#main-menu .navbar-nav > li > a:hover,
#main-menu .navbar-nav > li > a:focus,
#main-menu .navbar-nav > .active > a,
#main-menu .navbar-nav > .active > a:hover,
#main-menu .navbar-nav > .active > a:focus,
#main-menu .navbar-nav > .open > a,
#main-menu .navbar-nav > .open > a:hover,
#main-menu .navbar-nav > .open > a:focus {
    background: var(--afx-sidebar-active);
    color: #fff;
}

#main-menu .navbar-nav > .active > a {
    font-weight: 700;
}

#main-menu .navbar-nav > li > a i.afx-menu-arrow {
    width: auto;
    margin-left: auto;
    margin-right: 0;
    font-size: 11px;
    transition: transform 220ms ease;
}

#main-menu .navbar-nav > .open > a i.afx-menu-arrow {
    transform: rotate(180deg);
}

#main-menu .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 2px 0 6px;
    padding: 4px 0 4px 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#main-menu .dropdown-menu > li > a {
    padding: 9px 13px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
}

#main-menu .dropdown-menu > li > a:hover,
#main-menu .dropdown-menu > li > a:focus,
#main-menu .dropdown-menu > .active > a {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.afx-sidebar-backdrop {
    display: none;
}

.afx-sidebar-account {
    display: flex;
    flex: 0 0 auto;
    min-height: 76px;
    padding: 14px 16px;
    align-items: center;
    gap: 11px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.afx-account-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #334155;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.afx-account-copy {
    min-width: 0;
    flex: 1;
}

.afx-account-copy strong,
.afx-account-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afx-account-copy strong {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 500;
}

.afx-account-copy small {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 400;
}

.afx-account-logout {
    color: #64748b;
}

.afx-account-logout:hover,
.afx-account-logout:focus {
    color: #fff;
}

/* Main layout */
#main-body {
    min-height: calc(100vh - var(--afx-topbar-height));
    padding: 32px 0 48px;
    background: var(--afx-bg);
}

#main-body > .container,
#main-body > .container-fluid {
    width: auto;
    max-width: 1600px;
    margin: 0 auto;
    padding-right: 34px;
    padding-left: 34px;
}

.main-content {
    min-height: 420px;
}

.header-lined,
.page-header {
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 0;
}

.header-lined h1,
.page-header h1 {
    margin: 0;
    color: var(--afx-text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

div.header-lined h1 {
    color: #000;
}

.header-lined h1 small,
.page-header h1 small {
    display: block;
    margin-top: 7px;
    color: var(--afx-muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

.header-lined .breadcrumb,
.breadcrumb {
    display: none !important;
    margin-top: 7px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    color: var(--afx-muted);
    font-size: 12px;
}

/* Cards and panels */
.panel,
.well,
.modal-content,
.logincontainer,
.product-details,
.dataTables_wrapper .listtable {
    border: 1px solid var(--afx-border);
    border-radius: var(--afx-radius);
    background: var(--afx-surface);
    box-shadow: var(--afx-shadow);
}

.panel {
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-heading {
    min-height: 52px;
    padding: 15px 20px;
    border-color: var(--afx-border) !important;
    background: #fff !important;
    color: var(--afx-text) !important;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

.panel-footer {
    padding: 13px 20px;
    border-color: var(--afx-border);
    background: #fafafa;
}

.panel.panel-accent-blue,
.panel.panel-accent-green,
.panel.panel-accent-red,
.panel.panel-accent-gold,
.panel.panel-accent-emerald,
.panel.panel-accent-asbestos {
    border-top: 1px solid var(--afx-border);
}

/* Buttons */
.btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 18px;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-sm,
.btn-xs {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
}

.btn-primary,
.btn-info {
    border-color: var(--afx-primary);
    background: var(--afx-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
    border-color: var(--afx-primary-hover);
    background: var(--afx-primary-hover);
    color: #fff;
}

.btn-default {
    border-color: #d1d5db;
    background: #fff;
    color: #374151;
}

.btn-default:hover,
.btn-default:focus {
    border-color: #9ca3af;
    background: #f8fafc;
    color: var(--afx-text);
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border-color: #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: none;
}

.form-control {
    height: 40px;
    padding: 9px 12px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

label,
.control-label {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

/* Tables */
.table-container,
.dataTables_wrapper {
    border-radius: var(--afx-radius);
}

table.table-list,
.table {
    margin-bottom: 0;
    background: #fff;
}

table.table-list thead th,
.table > thead > tr > th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--afx-border);
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

table.table-list tbody td,
.table > tbody > tr > td {
    padding: 13px 14px;
    border-top-color: #eef0f3;
    vertical-align: middle;
}

.table-list > tbody > tr:nth-child(even) > td {
    background: #fcfcfd;
}

.table-list > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > td {
    background: #f8fafc;
}

/* Statuses and alerts */
.label,
.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.label {
    border: none !important;
}

.label-success,
.status-active,
.status-paid {
    background: #dcfce7 !important;
    color: var(--afx-success) !important;
}

.label-warning,
.status-pending {
    background: #fef3c7 !important;
    color: var(--afx-warning) !important;
}

.label-danger,
.status-suspended,
.status-overdue,
.status-unpaid {
    background: #fee2e2 !important;
    color: var(--afx-danger) !important;
}

.alert {
    border: 0;
    border-radius: 10px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-warning {
    background: #fef3c7;
    color: #854d0e;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Dashboard */
.tiles {
    margin: 0 0 26px;
}

.tiles .tile {
    padding: 8px;
    border: 0 !important;
    background: transparent;
}

.tiles .tile > a {
    display: block;
    position: relative;
    min-height: 128px;
    padding: 20px;
    border: 1px solid var(--afx-border);
    border-radius: var(--afx-radius);
    background: #fff;
    box-shadow: var(--afx-shadow);
    color: var(--afx-text);
    text-decoration: none;
}

.tiles .tile .icon {
    position: absolute;
    top: 19px;
    right: 19px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef0f3;
    color: #64748b;
    font-size: 15px;
}

.tiles .tile .stat {
    margin-top: 33px;
    background: transparent;
    color: var(--afx-text);
    font-size: 27px;
    font-weight: 700;
}

.tiles .tile .title {
    position: absolute;
    top: 21px;
    left: 20px;
    color: var(--afx-muted);
    font-size: 13px;
    font-weight: 500;
}

.tiles .tile .highlight {
    display: none;
}

.client-home-panels .list-group-item {
    padding: 13px 18px;
    border-color: #eef0f3;
}

.client-home-panels-list {
    display: flex;
    flex-direction: column;
}

.client-home-panels-list > .panel {
    order: 50;
}

.client-home-panels-list > [menuItemName="Active Products/Services"] {
    order: 1;
}

.client-home-panels-list > [menuItemName="Recent Support Tickets"] {
    order: 2;
}

.client-home-panels-list > [menuItemName="Recent News"] {
    order: 3;
}

.client-home-panels .panel-title .btn,
.client-home-panels .panel-body,
.client-home-panels .list-group-item,
.client-home-panels .panel-footer {
    font-size: 12px;
}

.client-home-panels .panel-title {
    font-size: 16px;
    line-height: 1.35;
}

.client-home-panels .panel-body,
.client-home-panels .panel-body p,
.client-home-panels .panel-body a,
.client-home-panels .list-group-item {
    font-size: 12px;
    line-height: 1.6;
}

.client-home-panels [menuItemName="Recent Support Tickets"] .panel-body p {
    margin: 0;
}

.client-home-panels [menuItemName="Recent Support Tickets"] .panel-body a {
    font-weight: 700;
}

.client-home-panels [menuItemName="Recent News"] .list-group {
    margin: 0;
}

.client-home-panels [menuItemName="Recent News"] .list-group-item {
    display: block;
    padding: 16px 18px;
    border-right: 0;
    border-left: 0;
    background: #fff;
    color: #475569;
    transition: background-color .16s ease;
}

.client-home-panels [menuItemName="Recent News"] .list-group-item:hover,
.client-home-panels [menuItemName="Recent News"] .list-group-item:focus {
    background: #f8fafc;
    color: #334155;
}

.client-home-panels [menuItemName="Recent News"] .list-group-item > strong,
.client-home-panels [menuItemName="Recent News"] .list-group-item h4,
.client-home-panels [menuItemName="Recent News"] .list-group-item .title {
    display: block;
    margin: 0 0 5px;
    color: var(--afx-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.client-home-panels [menuItemName="Recent News"] .list-group-item p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.client-home-panels [menuItemName="Recent News"] .list-group-item small,
.client-home-panels [menuItemName="Recent News"] .list-group-item .text-muted {
    color: #94a3b8;
    font-size: 12px;
}

/* Product/service screens */
.product-status {
    overflow: hidden;
    border-radius: var(--afx-radius);
}

.nav-tabs {
    border-bottom-color: var(--afx-border);
}

.nav-tabs > li > a {
    border-radius: 8px 8px 0 0;
    color: var(--afx-muted);
    font-weight: 500;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-color: var(--afx-border) var(--afx-border) #fff;
    color: var(--afx-text);
    font-weight: 600;
}

.product-details-tab-container {
    border-color: var(--afx-border);
    border-radius: 0 0 var(--afx-radius) var(--afx-radius);
    background: #fff;
}

.cpanel-feature-row > div > a {
    color: #334155;
}

.cpanel-feature-row .cpanel-shortcut-icon {
    border-radius: 12px;
    background: #eef0f3 !important;
    box-shadow: none;
    color: #475569;
}

/* Sidebars inside content */
.sidebar .panel {
    border-radius: 10px;
}

.sidebar .panel-heading {
    min-height: 46px;
    padding: 13px 16px;
}

.sidebar .list-group-item {
    padding: 11px 15px;
    border-color: #eef0f3;
}

/* Footer */
#footer {
    margin: 0;
    padding: 18px 34px;
    border-top: 1px solid var(--afx-border);
    background: var(--afx-bg);
    color: var(--afx-muted);
}

#footer .container {
    width: 100%;
}

#footer p {
    margin: 0;
    font-size: 12px;
}

.home-kb-search {
    margin-bottom: 24px;
}

.home-kb-search .form-control {
    height: 48px;
    border-radius: 10px;
}

/* Authentication */
.logincontainer {
    max-width: 460px;
    margin-top: 30px;
    padding: 28px;
}

/* Global legacy color normalization */
.btn-success {
    border-color: var(--afx-primary);
    background: var(--afx-primary);
    color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    border-color: var(--afx-primary-hover);
    background: var(--afx-primary-hover);
    color: #fff;
}

.btn-warning {
    border-color: #a16207;
    background: #a16207;
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    border-color: #854d0e;
    background: #854d0e;
    color: #fff;
}

.btn-danger {
    border-color: var(--afx-danger);
    background: var(--afx-danger);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #fff;
}

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

.panel[class*="panel-accent-"] {
    border-top-color: var(--afx-border) !important;
}

.panel-primary > .panel-heading,
.panel-info > .panel-heading,
.panel-success > .panel-heading,
.panel-warning > .panel-heading,
.panel-danger > .panel-heading {
    border-color: var(--afx-border);
    background: #fff !important;
    color: var(--afx-text) !important;
}

.bg-color-blue,
.bg-color-orange,
.bg-color-pink,
.bg-color-purple,
.bg-color-lime,
.bg-color-magenta,
.bg-color-teal,
.bg-color-turquoise,
.bg-color-emerald,
.bg-color-amethyst,
.bg-color-wet-asphalt,
.bg-color-midnight-blue,
.bg-color-silver,
.bg-color-asbestos {
    background-color: var(--afx-primary) !important;
    color: #fff !important;
}

.bg-color-green {
    background-color: var(--afx-success) !important;
    color: #fff !important;
}

.bg-color-gold,
.bg-color-sun-flower {
    background-color: var(--afx-warning) !important;
    color: #fff !important;
}

.bg-color-red,
.bg-color-pomegranate {
    background-color: var(--afx-danger) !important;
    color: #fff !important;
}

.label-default,
.badge {
    background: #eef0f3;
    color: #475569;
}

.label-primary,
.label-info {
    background: #dbeafe;
    color: #1e40af;
}

.progress {
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: none;
}

.progress-bar {
    background: var(--afx-primary);
    box-shadow: none;
}

.progress-bar-success {
    background: var(--afx-success);
}

.progress-bar-warning {
    background: var(--afx-warning);
}

.progress-bar-danger {
    background: var(--afx-danger);
}

.pagination > li > a,
.pagination > li > span {
    border-color: var(--afx-border);
    color: #475569;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    border-color: var(--afx-primary);
    background: var(--afx-primary);
    color: #fff;
}

.product-status {
    border: 1px solid var(--afx-border);
    background: #fff !important;
    color: var(--afx-text);
}

.product-status .product-icon {
    color: var(--afx-text);
}

.product-status-text {
    border-top: 1px solid var(--afx-border);
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.product-status-active .product-status-text {
    background: #dcfce7;
    color: var(--afx-success);
}

.product-status-pending .product-status-text {
    background: #fef3c7;
    color: var(--afx-warning);
}

.product-status-suspended .product-status-text,
.product-status-terminated .product-status-text,
.product-status-cancelled .product-status-text,
.product-status-fraud .product-status-text {
    background: #fee2e2;
    color: var(--afx-danger);
}

section#home-banner {
    background: var(--afx-primary);
    color: #fff;
}

section#home-banner .btn.search,
section#home-banner .btn.transfer {
    background: #fff;
    color: var(--afx-primary);
    font-weight: 600;
}

section#home-banner .tooltip-inner {
    background: #334155;
}

.home-shortcuts {
    border-bottom: 1px solid var(--afx-border);
    background: #fff;
    color: var(--afx-text);
}

.home-shortcuts li,
.home-shortcuts li:first-child {
    border-color: var(--afx-border);
}

.home-shortcuts li a,
.home-shortcuts .lead {
    color: #475569;
}

.home-shortcuts li i {
    color: var(--afx-primary);
}

.text-primary {
    color: var(--afx-link);
}

.text-success {
    color: var(--afx-success);
}

.text-warning {
    color: var(--afx-warning);
}

.text-danger {
    color: var(--afx-danger);
}

.text-info,
.text-muted {
    color: var(--afx-muted);
}

/* Responsive */
@media (max-width: 1199px) {
    #main-body > .container,
    #main-body > .container-fluid {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 991px) {
    body {
        padding-left: 0;
    }

    #header {
        left: 0;
    }

    #header > .container {
        padding: 0 16px;
        justify-content: space-between;
    }

    .afx-sidebar-toggle {
        display: inline-flex;
        width: 38px;
        height: 38px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        color: var(--afx-text);
    }

    .afx-mobile-logo {
        display: none;
    }

    #main-menu {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    body.afx-sidebar-open {
        overflow: hidden;
    }

    body.afx-sidebar-open #main-menu {
        transform: translateX(0);
    }

    .afx-sidebar-backdrop {
        position: fixed;
        z-index: 1029;
        inset: 0;
        background: rgba(15, 23, 42, .55);
    }

    body.afx-sidebar-open .afx-sidebar-backdrop {
        display: block;
    }

    #main-menu .navbar-collapse.collapse {
        display: block !important;
    }
}

@media (max-width: 767px) {
    :root {
        --afx-topbar-height: 54px;
    }

    #header .top-nav > li:not(.primary-action):not(:last-child) {
        display: none;
    }

    #header .top-nav > li > a {
        padding: 7px 10px;
        font-size: 12px;
    }

    #main-body {
        padding-top: 22px;
    }

    #main-body > .container,
    #main-body > .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }

    .header-lined h1,
    .page-header h1 {
        font-size: 22px;
    }

    .panel-heading,
    .panel-body {
        padding-right: 15px;
        padding-left: 15px;
    }

    .tiles .tile {
        padding: 5px;
    }

    .tiles .tile > a {
        min-height: 112px;
        padding: 15px 10px;
    }

    #footer {
        padding: 16px 15px;
    }

    .table-responsive {
        border: 0;
    }
}

/*
 * Forced sidebar palette
 * Keep this block last so Bootstrap and legacy WHMCS theme rules cannot
 * repaint the navigation with the original blue/white navbar colors.
 */
html body #main-menu,
html body #main-menu .navbar,
html body #main-menu .navbar-default,
html body #main-menu .navbar-main,
html body #main-menu .navbar-collapse,
html body #main-menu .navbar-main > .container {
    border-color: #292c34 !important;
    background-color: #111318 !important;
    background-image: none !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

html body #main-menu .afx-sidebar-brand,
html body #main-menu .afx-sidebar-account {
    border-color: rgba(255, 255, 255, .07) !important;
    background-color: #111318 !important;
}

html body #main-menu .afx-sidebar-search input {
    border-color: transparent !important;
    background-color: #272a31 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

html body #main-menu .afx-sidebar-search input::placeholder {
    color: #7c8798 !important;
    opacity: 1;
}

html body #main-menu .afx-sidebar-label,
html body #main-menu .afx-account-copy small,
html body #main-menu .afx-account-logout {
    color: #64748b !important;
}

html body #main-menu .navbar-nav > li,
html body #main-menu .navbar-nav > li:hover,
html body #main-menu .navbar-nav > li:focus {
    border-color: transparent !important;
    background: transparent !important;
}

html body #main-menu .navbar-nav > li > a,
html body #main-menu .navbar-nav .dropdown-menu > li > a {
    border-color: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #94a3b8 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html body #main-menu .navbar-nav > li > a i,
html body #main-menu .navbar-nav .dropdown-menu > li > a i {
    color: #cbd5e1 !important;
}

html body #main-menu .navbar-nav > li > a:hover,
html body #main-menu .navbar-nav > li > a:focus,
html body #main-menu .navbar-nav > .active > a,
html body #main-menu .navbar-nav > .active > a:hover,
html body #main-menu .navbar-nav > .active > a:focus,
html body #main-menu .navbar-nav > .open > a,
html body #main-menu .navbar-nav > .open > a:hover,
html body #main-menu .navbar-nav > .open > a:focus,
html body #main-menu .navbar-nav .dropdown-menu > li > a:hover,
html body #main-menu .navbar-nav .dropdown-menu > li > a:focus,
html body #main-menu .navbar-nav .dropdown-menu > .active > a {
    border-color: transparent !important;
    background-color: #292c34 !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html body #main-menu .navbar-nav > li > a:hover i,
html body #main-menu .navbar-nav > li > a:focus i,
html body #main-menu .navbar-nav > .active > a i,
html body #main-menu .navbar-nav > .open > a i,
html body #main-menu .navbar-nav .dropdown-menu > li > a:hover i {
    color: #ffffff !important;
}

html body #main-menu .dropdown-menu {
    border-color: transparent !important;
    background-color: #111318 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body #main-menu .badge {
    background-color: #292c34 !important;
    color: #cbd5e1 !important;
}

html body #main-menu .afx-account-avatar {
    background-color: #334155 !important;
    color: #ffffff !important;
}

html body #main-menu .afx-account-copy strong,
html body #main-menu .afx-account-logout:hover,
html body #main-menu .afx-account-logout:focus {
    color: #ffffff !important;
}

/*
 * System-wide interface normalization
 * This is the final compatibility layer for WHMCS, Bootstrap and order forms.
 */
html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    padding-left: 0;
    flex-direction: column;
    overflow-x: hidden;
}

#header {
    left: 0;
    flex: 0 0 var(--afx-topbar-height);
}

#main-body {
    width: 100%;
    min-height: 0;
    flex: 1 0 auto;
}

#footer {
    width: 100%;
    margin-top: auto;
    flex: 0 0 auto;
}

#main-menu {
    transform: translateX(-100%);
    transition: transform .22s ease;
}

.afx-sidebar-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: var(--afx-text);
}

body.afx-sidebar-open {
    overflow: hidden;
}

body.afx-sidebar-open #main-menu {
    transform: translateX(0);
}

body.afx-sidebar-open .afx-sidebar-backdrop {
    display: block;
}

#main-body > .container,
#main-body > .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.tiles .tile {
    width: 100%;
}

.table-responsive,
.dataTables_wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.btn,
.form-control,
input,
select,
textarea {
    max-width: 100%;
}

/* Replace the legacy #058/#337ab7 family throughout the client area. */
html body a:not(.btn):not(.list-group-item):not([class*="status-"]) {
    color: #2563eb;
}

html body a:not(.btn):not(.list-group-item):hover,
html body a:not(.btn):not(.list-group-item):focus {
    color: #1d4ed8;
}

html body .btn-primary,
html body .btn-info,
html body .btn-success,
html body input[type="submit"].btn-primary,
html body input[type="submit"].btn-info,
html body input[type="submit"].btn-success,
html body #order-standard_cart .btn-primary,
html body #order-standard_cart .order-summary .btn-checkout,
html body .modal-submit {
    border-color: #111827 !important;
    background-color: #111827 !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active,
html body .btn-info:hover,
html body .btn-info:focus,
html body .btn-success:hover,
html body .btn-success:focus,
html body #order-standard_cart .btn-primary:hover,
html body #order-standard_cart .btn-primary:focus,
html body #order-standard_cart .order-summary .btn-checkout:hover {
    border-color: #273244 !important;
    background-color: #273244 !important;
    color: #ffffff !important;
}

html body .panel-primary,
html body .panel-info,
html body .panel-success,
html body .panel-default,
html body .card,
html body .list-group,
html body .thumbnail,
html body .well,
html body .modal-content,
html body #order-standard_cart .view-cart-items,
html body #order-standard_cart .order-summary {
    border-color: #e5e7eb !important;
}

html body .panel-primary > .panel-heading,
html body .panel-info > .panel-heading,
html body .panel-success > .panel-heading,
html body .panel-default > .panel-heading,
html body #order-standard_cart .view-cart-items-header,
html body #order-standard_cart .order-summary h2 {
    border-color: #e5e7eb !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
    text-shadow: none !important;
}

html body a.list-group-item.active,
html body a.list-group-item.active:hover,
html body a.list-group-item.active:focus,
html body .list-group-item.active,
html body .nav-pills > li.active > a,
html body .nav-pills > li.active > a:hover,
html body .nav-pills > li.active > a:focus,
html body .dropdown-menu > .active > a,
html body .dropdown-menu > .active > a:hover,
html body .dropdown-menu > .active > a:focus {
    border-color: #111827 !important;
    background-color: #111827 !important;
    background-image: none !important;
    color: #ffffff !important;
}

html body .pagination > .active > a,
html body .pagination > .active > span,
html body .pagination > .active > a:hover,
html body .pagination > .active > span:hover,
html body .pagination > .active > a:focus,
html body .pagination > .active > span:focus,
html body table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before,
html body table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child::before,
html body table.dataTable.dtr-column > tbody > tr > td.control::before,
html body table.dataTable.dtr-column > tbody > tr > th.control::before {
    border-color: #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
}

html body .cpanel-feature-row .cpanel-shortcut-icon,
html body .cpanel-feature-row > div:nth-child(n) .cpanel-shortcut-icon {
    background-color: #eef0f3 !important;
    background-image: none !important;
    color: #475569 !important;
    box-shadow: none !important;
}

html body .cpanel-feature-row > div > a {
    color: #334155 !important;
}

html body .form-control:focus,
html body input:focus,
html body select:focus,
html body textarea:focus {
    border-color: #64748b !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .12) !important;
}

html body input[type="checkbox"],
html body input[type="radio"] {
    accent-color: #111827;
}

html body .progress-bar,
html body .progress-bar-info {
    background-color: #111827 !important;
    background-image: none !important;
}

html body .label-primary,
html body .label-info {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

html body blockquote,
html body .md-editor,
html body .ticket-reply,
html body .invoice-container,
html body .domain-checker-container {
    border-color: #e5e7eb !important;
}

html body #order-standard_cart .secondary-cart-body .product-info,
html body #order-standard_cart .view-cart-items .item,
html body #order-standard_cart .order-summary,
html body #order-standard_cart .summary-container {
    border-color: #e5e7eb !important;
    background-color: #ffffff !important;
    color: #111827 !important;
}

html body #order-standard_cart .secondary-cart-body .product-info a {
    color: #2563eb !important;
}

html body .icheckbox_square-blue,
html body .iradio_square-blue {
    filter: grayscale(1) contrast(1.25);
}

@media (min-width: 480px) {
    .tiles .tile {
        width: 50%;
    }
}

@media (min-width: 768px) {
    #main-body > .container,
    #main-body > .container-fluid {
        padding-right: 24px;
        padding-left: 24px;
    }

    .panel-body {
        padding: 20px;
    }

    #footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .tiles .tile {
        width: 25%;
    }
}

@media (min-width: 992px) {
    body {
        padding-left: var(--afx-sidebar-width);
    }

    #header {
        left: var(--afx-sidebar-width);
    }

    #main-menu {
        transform: translateX(0);
    }

    .afx-sidebar-toggle,
    .afx-sidebar-backdrop {
        display: none !important;
    }

    #main-body > .container,
    #main-body > .container-fluid {
        padding-right: 34px;
        padding-left: 34px;
    }

    #footer {
        padding-right: 34px;
        padding-left: 34px;
    }
}

/* Knowledge base article */
.kb-article {
    width: 100%;
    margin-bottom: 28px;
    padding: 20px 16px;
    border: 1px solid var(--afx-border);
    border-radius: var(--afx-radius);
    background: var(--afx-surface);
    box-shadow: var(--afx-shadow);
}

.kb-article-title {
    display: flex;
    margin: 0 0 26px;
    padding: 0 0 20px;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--afx-border);
}

.kb-article-title h2 {
    margin: 0;
    flex: 1;
    color: var(--afx-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.kb-article-title .btn-print {
    order: 2;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    line-height: 36px;
}

.kb-article-content {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.kb-article-content > :first-child {
    margin-top: 0 !important;
}

.kb-article-content > :last-child {
    margin-bottom: 0 !important;
}

.kb-article-content h1,
.kb-article-content h2,
.kb-article-content h3,
.kb-article-content h4,
.kb-article-content h5,
.kb-article-content h6 {
    margin-top: 2.25em;
    margin-bottom: .75em;
    color: var(--afx-text);
    font-weight: 700;
    line-height: 1.35;
    scroll-margin-top: calc(var(--afx-topbar-height) + 20px);
}

.kb-article-content h1 {
    font-size: 25px;
}

.kb-article-content h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f3;
    font-size: 22px;
}

.kb-article-content h3 {
    font-size: 19px;
}

.kb-article-content h4,
.kb-article-content h5,
.kb-article-content h6 {
    font-size: 16px;
}

.kb-article-content p {
    margin: 0 0 1.2em;
}

.kb-article-content p + p {
    margin-top: .25em;
}

.kb-article-content ul,
.kb-article-content ol {
    margin: .75em 0 1.5em;
    padding-left: 1.5em;
}

.kb-article-content li {
    margin-bottom: .55em;
    padding-left: .25em;
}

.kb-article-content li:last-child {
    margin-bottom: 0;
}

.kb-article-content li > ul,
.kb-article-content li > ol {
    margin-top: .55em;
    margin-bottom: .75em;
}

.kb-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 10px;
}

.kb-article-content figure {
    margin: 28px 0;
}

.kb-article-content figcaption {
    margin-top: 9px;
    color: var(--afx-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.kb-article-content blockquote {
    margin: 24px 0;
    padding: 14px 18px;
    border: 0;
    border-left: 3px solid #64748b !important;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
}

.kb-article-content pre {
    max-width: 100%;
    margin: 24px 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #292c34;
    border-radius: 10px;
    background: #111318;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.kb-article-content code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #eef0f3;
    color: #334155;
}

.kb-article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.kb-article-content hr {
    margin: 34px 0;
    border-top-color: var(--afx-border);
}

.kb-article-content .table,
.kb-article-content table {
    width: 100%;
    margin: 24px 0;
}

@media (max-width: 767px) {
    .kb-article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.kb-article-details {
    display: flex;
    margin: 30px 0 0;
    padding: 18px 0 0;
    flex-wrap: wrap;
    gap: 10px 22px;
    border-top: 1px solid var(--afx-border);
    color: var(--afx-muted);
    font-size: 12px;
    list-style: none;
}

.kb-article-details li {
    float: none;
    padding: 0;
}

.kb-rate-article {
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid var(--afx-border);
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
}

.kb-rate-article form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.kb-rate-article .btn-lg {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
}

.kb-also-read {
    margin-top: 28px;
}

.kb-also-read > h3 {
    margin: 0 0 16px;
    color: var(--afx-text);
    font-size: 18px;
    font-weight: 700;
}

.kb-also-read .kbarticles {
    display: grid;
    padding: 0;
    gap: 12px;
}

.kb-also-read .kbarticles > div {
    padding: 16px;
    border: 1px solid var(--afx-border);
    border-radius: 10px;
    background: var(--afx-surface);
}

.kb-also-read .kbarticles > div > p {
    margin: 7px 0 0;
    color: var(--afx-muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .kb-article {
        padding: 28px 30px;
    }

    .kb-article-title h2 {
        font-size: 28px;
    }

    .kb-article-content {
        font-size: 16px;
    }

    .kb-rate-article {
        padding: 18px 20px;
    }

    .kb-also-read .kbarticles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    .kb-article {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

/* Mobile brand */
@media (max-width: 991px) {
    #header > .container {
        position: relative;
    }

    .afx-mobile-logo {
        display: inline-flex !important;
        position: absolute;
        top: 50%;
        left: 50%;
        height: 38px;
        padding: 8px 12px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #111318;
        transform: translate(-50%, -50%);
    }

    .afx-mobile-logo img {
        display: block;
        width: auto;
        max-width: 92px;
        max-height: 21px;
    }
}

@media (max-width: 420px) {
    .afx-mobile-logo {
        height: 34px;
        padding: 7px 9px;
    }

    .afx-mobile-logo img {
        max-width: 76px;
        max-height: 18px;
    }

    #header .top-nav .primary-action > a[href*="logout.php"] {
        width: 38px;
        padding-right: 0;
        padding-left: 0;
        overflow: hidden;
        font-size: 0;
        justify-content: center;
    }

    #header .top-nav .primary-action > a[href*="logout.php"]::before {
        content: "\f2f5";
        font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
        font-size: 13px;
        font-weight: 900;
    }
}

/*
 * Afixar UI polish
 * Shared rhythm and component geometry based on the ui/tela.png reference.
 */
:root {
    --afx-content-gutter: 32px;
    --afx-control-height: 40px;
    --afx-soft-surface: #f8fafc;
    --afx-hover-surface: #f4f5f7;
    --afx-focus: 0 0 0 3px rgba(100, 116, 139, .14);
}

body {
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--afx-text);
    line-height: 1.3;
}

h1 {
    letter-spacing: -.025em;
}

h2,
h3 {
    letter-spacing: -.015em;
}

p {
    line-height: 1.65;
}

/* Header kept intentionally quiet, matching the reference interface. */
#header > .container {
    max-width: none;
}

#header .top-nav > li > a {
    gap: 7px;
}

#header .top-nav > li > a.btn {
    min-height: 36px;
}

#accountNotifications {
    color: #64748b !important;
}

#accountNotifications:hover,
#accountNotifications:focus {
    color: var(--afx-text) !important;
}

#accountNotificationsContent {
    width: 340px;
}

.popover {
    padding: 0;
    border-color: var(--afx-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

.popover-content {
    padding: 8px;
}

.client-alerts > li > a {
    border-radius: 8px;
}

/* Sidebar rhythm, alignment and icon treatment. */
.afx-sidebar-brand {
    padding-right: 16px;
    padding-left: 16px;
}

.afx-sidebar-search {
    margin: 15px 10px 15px;
}

.afx-sidebar-label {
    padding: 0 21px 5px;
}

#main-menu .navbar-main > .container {
    padding-bottom: 18px;
}

#main-menu .navbar-nav > li {
    margin: 1px 0;
}

#main-menu .navbar-nav > li > a {
    min-height: 42px;
    padding: 9px 13px;
    line-height: 22px;
}

#main-menu .navbar-nav > li > a i {
    width: 22px;
    flex: 0 0 22px;
    margin-right: 9px;
    font-size: 17px;
}

#main-menu .navbar-nav .badge {
    min-width: 22px;
    margin-left: auto;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
}

#main-menu .navbar-nav .badge + .afx-menu-arrow {
    margin-left: 7px;
}

.afx-sidebar-account {
    min-height: 80px;
    padding-right: 17px;
    padding-left: 17px;
}

.afx-account-logout {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.afx-account-logout:hover,
.afx-account-logout:focus {
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

/* Content hierarchy and spacing. */
#main-body {
    padding-top: 36px;
    padding-bottom: 52px;
}

#main-body > .container,
#main-body > .container-fluid {
    max-width: 1660px;
}

.header-lined,
.page-header {
    margin-bottom: 27px;
    padding-bottom: 0;
}

.header-lined h1,
.page-header h1 {
    font-size: 26px;
    line-height: 1.25;
}

.header-lined h1 small,
.page-header h1 small {
    max-width: 760px;
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.breadcrumb > li + li::before {
    color: #c0c7d1;
}

.main-content > .alert:first-child,
.main-content > .header-lined + .alert {
    margin-top: 0;
}

/* Cards, lists and modal surfaces share one visual language. */
.panel,
.well,
.modal-content,
.logincontainer,
.product-details,
.dataTables_wrapper .listtable,
.card {
    border-color: var(--afx-border);
    border-radius: var(--afx-radius);
    box-shadow: var(--afx-shadow);
}

.panel {
    margin-bottom: 22px;
}

.panel-heading {
    display: flex;
    min-height: 54px;
    padding: 15px 20px;
    align-items: center;
}

.panel-heading::before,
.panel-heading::after {
    display: none;
}

.panel-heading .panel-title {
    width: 100%;
    margin: 0;
    line-height: 22px;
}

.panel-title > i:first-child {
    width: 20px;
    margin-right: 6px;
    color: #64748b;
    text-align: center;
}

.panel-body {
    padding: 22px 20px;
}

.panel-body > :first-child {
    margin-top: 0;
}

.panel-body > :last-child {
    margin-bottom: 0;
}

.panel-footer {
    min-height: 48px;
    padding: 12px 20px;
}

.list-group-item {
    padding: 13px 18px;
    border-color: #eef0f3;
    color: #334155;
}

a.list-group-item:hover,
a.list-group-item:focus {
    background: var(--afx-soft-surface);
    color: var(--afx-text);
}

.well {
    padding: 20px;
    background: #fff;
}

.modal-header {
    min-height: 58px;
    padding: 17px 20px;
    border-color: var(--afx-border);
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-body {
    padding: 22px 20px;
}

.modal-footer {
    padding: 14px 20px;
    border-color: var(--afx-border);
    background: var(--afx-soft-surface);
}

/* Controls and buttons. */
.btn {
    min-height: var(--afx-control-height);
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 20px;
}

.btn + .btn {
    margin-left: 6px;
}

.btn-lg {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 14px;
}

.btn-sm {
    min-height: 32px;
    padding: 5px 11px;
}

.btn-xs {
    min-height: 28px;
    padding: 4px 9px;
}

.btn i:first-child:not(:last-child) {
    margin-right: 5px;
}

.btn:focus,
.btn.focus {
    outline: 0;
    box-shadow: var(--afx-focus) !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: var(--afx-control-height);
    padding: 9px 12px;
    border-color: #d1d5db;
    border-radius: 8px;
    color: var(--afx-text);
    font-size: 14px;
    line-height: 20px;
}

.form-control::placeholder {
    color: #9ca3af;
}

.input-lg,
select.input-lg {
    height: 46px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 15px;
}

.input-sm,
select.input-sm {
    height: 32px;
    padding: 5px 10px;
    border-radius: 7px;
}

.input-group-addon {
    border-color: #d1d5db;
    background: var(--afx-soft-surface);
    color: #64748b;
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
    border-radius: 8px 0 0 8px;
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
    border-radius: 0 8px 8px 0;
}

.help-block {
    margin-top: 7px;
    color: var(--afx-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Dense information remains readable and aligned. */
.table-container,
.dataTables_wrapper {
    border: 1px solid var(--afx-border);
    background: #fff;
}

.table-container {
    border: 0 !important;
    box-shadow: none !important;
}

.panel .table-container,
.panel .dataTables_wrapper,
.panel .table-responsive {
    border: 0;
    border-radius: 0;
}

table.table-list thead th,
.table > thead > tr > th {
    height: 44px;
    padding: 11px 15px;
    vertical-align: middle;
}

table.table-list tbody td,
.table > tbody > tr > td {
    padding: 14px 15px;
}

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

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 15px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 14px 15px;
}

html body div.dataTables_wrapper div.dataTables_info {
    margin: 0;
    padding: 12px 15px !important;
    border: 0;
    border-bottom: 1px solid var(--afx-border);
    border-radius: 0;
    background: #f8fafc;
    color: var(--afx-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: left !important;
    white-space: normal;
}

.pagination {
    margin: 0;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    text-align: center;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-radius: 8px 0 0 8px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-radius: 0 8px 8px 0;
}

.nav-tabs {
    margin-bottom: 20px;
}

.nav-tabs > li > a {
    margin-right: 4px;
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
}

.dropdown-menu {
    padding: 6px;
    border-color: var(--afx-border);
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.dropdown-menu > li > a {
    padding: 8px 10px;
    border-radius: 7px;
    color: #475569;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--afx-soft-surface);
    color: var(--afx-text);
}

.alert {
    padding: 14px 16px;
    line-height: 1.55;
}

.label,
.status,
.badge {
    letter-spacing: 0;
}

/* Dashboard blocks follow the reference card proportions. */
.tiles {
    width: 100%;
    margin: 0 0 26px;
}

.tiles .tile:hover,
.tiles .tile:focus {
    background: transparent;
    cursor: default;
}

.tiles .tile > a {
    min-height: 130px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tiles .tile > a:hover,
.tiles .tile > a:focus {
    border-color: #d5d9e0;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.tiles .tile .stat {
    font-size: 28px;
    line-height: 1.1;
}

.home-kb-search {
    position: relative;
}

.home-kb-search > i {
    position: absolute;
    top: 50%;
    right: 31px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-kb-search .form-control {
    padding-right: 44px;
}

/* Authentication and error states stay centered and compact. */
.logincontainer {
    width: calc(100% - 30px);
    margin: 38px auto;
    padding: 30px;
}

.logincontainer h1,
.logincontainer h2 {
    margin-top: 0;
    font-size: 24px;
}

.logincontainer .logo {
    margin-bottom: 24px;
}

.logincontainer .btn-primary {
    min-height: 44px;
}

@media (min-width: 992px) {
    #main-body > .container,
    #main-body > .container-fluid {
        padding-right: var(--afx-content-gutter);
        padding-left: var(--afx-content-gutter);
    }
}

@media (max-width: 767px) {
    #main-body {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .header-lined,
    .page-header {
        margin-bottom: 22px;
    }

    .panel-heading {
        padding-right: 16px;
        padding-left: 16px;
    }

    .panel-body,
    .modal-body {
        padding: 18px 16px;
    }

    .panel-footer,
    .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .btn + .btn {
        margin-left: 3px;
    }

    #accountNotificationsContent {
        width: min(340px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/*
 * Afixar color authority
 * This final layer prevents Bootstrap/WHMCS colors from all.min.css from
 * becoming the visible default for shared interface components.
 */
html body .btn-primary,
html body .pagination > .active > a,
html body .pagination > .active > span {
    border-color: var(--afx-primary) !important;
    background: var(--afx-primary) !important;
    color: #fff !important;
}

html body .btn-success {
    border-color: var(--afx-success) !important;
    background: var(--afx-success) !important;
    color: #fff !important;
}

html body .btn-info {
    border-color: var(--afx-link) !important;
    background: var(--afx-link) !important;
    color: #fff !important;
}

html body .btn-warning {
    border-color: var(--afx-warning) !important;
    background: var(--afx-warning) !important;
    color: #fff !important;
}

html body .btn-danger {
    border-color: var(--afx-danger) !important;
    background: var(--afx-danger) !important;
    color: #fff !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active {
    border-color: var(--afx-primary-hover) !important;
    background: var(--afx-primary-hover) !important;
}

html body .btn-success:hover,
html body .btn-success:focus,
html body .btn-success:active {
    border-color: var(--success-lifted) !important;
    background: var(--success-lifted) !important;
}

html body .btn-info:hover,
html body .btn-info:focus,
html body .btn-info:active {
    border-color: var(--info-lifted) !important;
    background: var(--info-lifted) !important;
}

html body .btn-warning:hover,
html body .btn-warning:focus,
html body .btn-warning:active {
    border-color: var(--warning-lifted) !important;
    background: var(--warning-lifted) !important;
}

html body .btn-danger:hover,
html body .btn-danger:focus,
html body .btn-danger:active {
    border-color: var(--error-lifted) !important;
    background: var(--error-lifted) !important;
}

html body .btn-default,
html body .pagination > li > a,
html body .pagination > li > span {
    border-color: var(--afx-border) !important;
    background: var(--afx-surface) !important;
    color: #475569 !important;
}

html body .btn-default:hover,
html body .btn-default:focus,
html body .pagination > li > a:hover,
html body .pagination > li > a:focus {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: var(--afx-text) !important;
}

html body .alert-success {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

html body .alert-info {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #1e40af !important;
}

html body .alert-warning {
    border-color: #fde68a !important;
    background: #fffbeb !important;
    color: #854d0e !important;
}

html body .alert-danger {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
}

html body .table > thead > tr > th,
html body table.table-list > thead > tr > th {
    border-color: var(--afx-border) !important;
    background: #f8fafc !important;
    color: var(--afx-muted) !important;
}

html body .table > tbody > tr > td,
html body table.table-list > tbody > tr > td {
    border-color: #eef0f3 !important;
    color: var(--afx-text);
}

html body .form-control,
html body input,
html body select,
html body textarea {
    border-color: #d1d5db;
    background-color: var(--afx-surface);
    color: var(--afx-text);
}

/*
 * Unified DataTables/listtable layout
 * Replaces the legacy floated toolbar and removes stacked container borders.
 */
html body .dataTables_wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 100%;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

html body .dataTables_wrapper .listtable {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--afx-border) !important;
    border-radius: var(--afx-radius);
    background: var(--afx-surface) !important;
    box-shadow: var(--afx-shadow);
}

html body .panel .dataTables_wrapper .listtable {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

html body .dataTables_wrapper .dataTables_info {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    padding: 14px 15px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--afx-border) !important;
    background: #f8fafc !important;
    color: var(--afx-muted) !important;
    line-height: 38px;
}

html body .dataTables_wrapper .dataTables_filter {
    float: none !important;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    margin: 0 !important;
    padding: 14px 15px !important;
    border-bottom: 1px solid var(--afx-border);
    background: #f8fafc;
}

html body .dataTables_wrapper .dataTables_filter label {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
}

html body .dataTables_wrapper .dataTables_filter label::before {
    content: "\f002";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: #94a3b8;
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 900;
    transform: translateY(-50%);
    pointer-events: none;
}

html body .dataTables_wrapper .dataTables_filter label .form-control,
html body .dataTables_wrapper .dataTables_filter input {
    display: block;
    width: 100% !important;
    height: 38px;
    margin: 0 !important;
    padding: 8px 12px 8px 34px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    background: var(--afx-surface) !important;
    background-image: none !important;
    color: var(--afx-text) !important;
    font-size: 13px;
}

html body .dataTables_wrapper table.table-list,
html body .dataTables_wrapper table.dataTable {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0;
}

html body .dataTables_wrapper table.table-list > thead > tr > th,
html body .dataTables_wrapper table.dataTable > thead > tr > th {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--afx-border) !important;
    border-left: 0 !important;
    background: #f8fafc !important;
}

html body .dataTables_wrapper table.table-list > tbody > tr > td,
html body .dataTables_wrapper table.dataTable > tbody > tr > td {
    border-right: 0 !important;
    border-left: 0 !important;
}

html body .dataTables_wrapper .dataTables_length {
    float: none;
    grid-column: 1;
    margin: 0;
    padding: 14px 0 0 !important;
    border: 0;
    background: transparent;
    color: var(--afx-muted);
}

html body .dataTables_wrapper .dataTables_length label {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

html body .dataTables_wrapper .dataTables_length select {
    height: 34px;
    margin: 0 5px;
    border: 1px solid var(--afx-border);
    border-radius: 7px;
    background: var(--afx-surface);
}

html body .dataTables_wrapper .dataTables_paginate {
    float: none;
    grid-column: 2;
    margin: 0;
    padding: 14px 0 0 !important;
}

html body #main-menu .navbar-nav > li > a {
    font-weight: 700;
}

html body #main-menu .dropdown-menu {
    margin: 2px 0 6px;
    padding: 2px 0 4px;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}

html body #main-menu .dropdown-menu > li,
html body #main-menu .dropdown-menu > li + li,
html body #main-menu .dropdown-menu > li > a {
    margin: 0;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

html body #main-menu .dropdown-menu > li > a {
    font-weight: 700;
}

html body #main-menu .dropdown-menu > .divider,
html body #main-menu .dropdown-menu > .nav-divider,
html body #main-menu .dropdown-menu > [menuItemName="Divider"],
html body #main-menu .dropdown-menu > [menuItemName="divider"],
html body #main-menu .dropdown-menu > [menuItemName="Nav Divider"],
html body #main-menu .dropdown-menu > [menuItemName="nav-divider"] {
    display: none !important;
}

@media (max-width: 767px) {
    html body .dataTables_wrapper,
    html body .dataTables_wrapper .listtable {
        grid-template-columns: minmax(0, 1fr);
    }

    html body .dataTables_wrapper .dataTables_filter {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        margin: 0 !important;
    }

    html body .dataTables_wrapper .dataTables_info {
        grid-column: 1;
        grid-row: 2;
        padding: 10px 15px !important;
        line-height: 20px;
    }

    html body .dataTables_wrapper table.table-list,
    html body .dataTables_wrapper table.dataTable {
        grid-row: 3;
    }

    html body .dataTables_wrapper .dataTables_length,
    html body .dataTables_wrapper .dataTables_paginate {
        grid-column: 1;
        width: 100%;
        text-align: center;
    }

    html body .dataTables_wrapper .dataTables_length {
        grid-row: 2;
    }

    html body .dataTables_wrapper .dataTables_paginate {
        grid-row: 3;
    }
}

/* Standard light mobile header: system logo left, navigation trigger right. */
@media (max-width: 991px) {
    html body #header {
        border-bottom: 1px solid var(--afx-border);
        background: var(--afx-surface);
    }

    html body #header > .container {
        display: flex;
        position: relative;
        padding-right: 15px;
        padding-left: 15px;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    html body #header .afx-mobile-logo {
        display: inline-flex !important;
        position: static;
        order: 1;
        width: auto;
        height: auto;
        margin-right: auto;
        padding: 0;
        align-items: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        transform: none;
    }

    html body #header .afx-mobile-logo img {
        display: block;
        width: auto;
        max-width: 120px;
        max-height: 25px;
    }

    html body #header .top-nav {
        order: 2;
        flex: 0 1 auto;
    }

    html body #header .afx-sidebar-toggle {
        order: 3;
        flex: 0 0 38px;
        margin: 0;
        border-color: var(--afx-border);
        background: #f8fafc;
        color: var(--afx-text);
    }
}

@media (max-width: 420px) {
    html body #header .afx-mobile-logo {
        height: auto;
        padding: 0;
    }

    html body #header .afx-mobile-logo img {
        max-width: 108px;
        max-height: 23px;
    }
}

/* Active services list: comfortable spacing and responsive actions. */
html body div[menuitemname="Active Products/Services"] .list-group-item {
    padding: 18px 20px !important;
}

html body .div-service-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 16px;
}

html body .div-service-status {
    flex: 0 0 auto;
    text-align: left;
}

html body .div-service-status .label {
    padding: 6px 10px;
    line-height: 1.2;
}

html body .div-service-name {
    min-width: 160px;
    margin: 0;
    gap: 5px;
    line-height: 1.35;
}

html body .div-service-name .font-weight-bold {
    color: var(--afx-text);
    font-size: 14px;
    font-weight: 600;
}

html body .div-service-name .text-domain {
    color: var(--afx-muted);
    font-size: 12px;
}

html body .div-service-buttons {
    display: flex;
    flex: 0 1 auto;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

html body .div-service-buttons > .btn,
html body .div-service-buttons > .btn-group {
    margin: 0;
}

html body .div-service-buttons .btn {
    min-height: 36px;
    padding: 7px 11px;
}

html body div[menuitemname="Active Products/Services"],
html body div[menuitemname="Active Products/Services"] .list-group,
html body div[menuitemname="Active Products/Services"] .list-group-item,
html body div[menuitemname="Active Products/Services"] .div-service-item,
html body div[menuitemname="Active Products/Services"] .div-service-buttons,
html body div[menuitemname="Active Products/Services"] .btn-group {
    overflow: visible !important;
}

html body div[menuitemname="Active Products/Services"] .dropdown-menu {
    z-index: 1050;
}

html body .div-service-item .dropdown-menu > li {
    padding: 9px 12px;
    color: #475569;
}

html body .div-service-item .dropdown-menu > li:hover,
html body .div-service-item .dropdown-menu > li:focus {
    background: #f8fafc;
    color: var(--afx-text);
}

@media (max-width: 767px) {
    html body div[menuitemname="Active Products/Services"] .list-group-item {
        padding: 16px !important;
    }

    html body .div-service-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    html body .div-service-name {
        flex: 1 1 calc(100% - 96px);
    }

    html body .div-service-buttons {
        width: 100%;
        margin-top: 2px;
        justify-content: flex-start;
    }
}

/* Knowledge base index */
.kb-index-search {
    margin-bottom: 32px;
}

.kb-index > h2 {
    margin-top: 32px;
    margin-bottom: 18px;
}

.kbcategories {
    display: flex;
    margin-right: -8px;
    margin-left: -8px;
    flex-wrap: wrap;
}

.kbcategories > [class*="col-"] {
    display: flex;
    padding-right: 8px;
    padding-left: 8px;
}

.kb-category-card {
    width: 100%;
    min-height: 132px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--afx-border);
    border-radius: 10px;
    background: var(--afx-surface);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.kb-category-card:hover {
    border-color: #d5d9e0;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}

.kb-category-link,
.kb-popular-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--afx-text);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.kb-category-link i,
.kb-popular-link i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #64748b;
    font-size: 16px;
}

.kb-category-link small {
    color: var(--afx-muted);
    font-size: 12px;
    font-weight: 600;
}

.kb-category-card p,
.kb-popular-item p {
    margin: 10px 0 0 26px;
    color: var(--afx-muted);
    font-size: 13px;
    line-height: 1.6;
}

.kbarticles {
    padding-bottom: 8px;
}

.kb-popular-item {
    padding: 17px 18px;
    border-bottom: 1px solid var(--afx-border);
}

.kb-popular-item:first-child {
    border-top: 1px solid var(--afx-border);
}

.kb-popular-item:hover {
    background: #f8fafc;
}

@media (max-width: 767px) {
    .kbcategories {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .kbcategories > [class*="col-"] {
        display: block;
        padding-right: 0;
        padding-left: 0;
    }

    .kb-category-card {
        min-height: 0;
    }
}

/* Typography consistency layer */
:root {
    --afx-font-xs: 11px;
    --afx-font-sm: 12px;
    --afx-font-base: 13px;
    --afx-font-md: 14px;
    --afx-font-title: 15px;
    --afx-font-section: 16px;
    --afx-font-page: 24px;
}

html body {
    color: var(--afx-text);
    font-size: var(--afx-font-base);
    font-weight: 400;
    line-height: 1.55;
}

html body p,
html body li,
html body td,
html body .panel-body,
html body .list-group-item,
html body .well,
html body .alert,
html body .modal-body {
    font-size: var(--afx-font-base);
    line-height: 1.55;
}

html body small,
html body .small,
html body .text-muted,
html body .help-block,
html body .panel-footer,
html body .breadcrumb,
html body .table > thead > tr > th,
html body table.table-list thead th,
html body .label,
html body .status,
html body .badge {
    font-size: var(--afx-font-sm);
    line-height: 1.45;
}

html body h1,
html body .h1,
html body .header-lined h1,
html body .page-header h1 {
    font-size: var(--afx-font-page);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

html body h2,
html body .h2,
html body .kb-index > h2,
html body .logincontainer h1,
html body .logincontainer h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

html body h3,
html body .h3,
html body .modal-title,
html body .kb-also-read > h3 {
    font-size: var(--afx-font-section);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

html body h4,
html body .h4,
html body h5,
html body .h5,
html body h6,
html body .h6,
html body .panel-title {
    font-size: var(--afx-font-title);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

html body a,
html body .btn,
html body label,
html body .control-label,
html body input,
html body select,
html body textarea {
    font-size: var(--afx-font-base);
}

html body .btn,
html body label,
html body .control-label,
html body .nav-tabs > li > a,
html body #header .top-nav > li > a,
html body #main-menu .navbar-nav > li > a {
    font-weight: 500;
}

html body strong,
html body b,
html body .font-weight-bold,
html body .panel-title,
html body .kb-category-link,
html body .kb-popular-link {
    font-weight: 600;
}

html body .btn-primary,
html body .btn-info,
html body .btn-success,
html body .btn-danger,
html body .btn-warning,
html body .label,
html body .status,
html body .badge,
html body table.table-list thead th,
html body .table > thead > tr > th {
    font-weight: 600;
}

html body #header .top-nav > li > a,
html body .afx-sidebar-search input,
html body #main-menu .navbar-nav > li > a,
html body #main-menu .dropdown-menu > li > a {
    font-size: var(--afx-font-base);
}

html body .afx-sidebar-label,
html body .afx-account-copy small {
    font-size: 10px;
    font-weight: 600;
}

html body #main-menu .navbar-nav > li > a i {
    font-size: var(--afx-font-section);
}

html body .panel-heading {
    min-height: 50px;
}

html body .panel-body,
html body .well,
html body .modal-body {
    color: #334155;
}

html body .client-home-panels .panel-title {
    font-size: var(--afx-font-section);
}

html body .client-home-panels .panel-body,
html body .client-home-panels .panel-body p,
html body .client-home-panels .panel-body a,
html body .client-home-panels .list-group-item,
html body .client-home-panels .panel-footer,
html body .client-home-panels .panel-title .btn {
    font-size: var(--afx-font-sm);
    line-height: 1.55;
}

html body .client-home-panels [menuItemName="Recent News"] .list-group-item > strong,
html body .client-home-panels [menuItemName="Recent News"] .list-group-item h4,
html body .client-home-panels [menuItemName="Recent News"] .list-group-item .title,
html body .div-service-name .font-weight-bold,
html body .kb-category-link,
html body .kb-popular-link {
    font-size: var(--afx-font-md);
    line-height: 1.4;
}

html body .client-home-panels [menuItemName="Recent News"] .list-group-item p,
html body .client-home-panels [menuItemName="Recent News"] .list-group-item small,
html body .client-home-panels [menuItemName="Recent News"] .list-group-item .text-muted,
html body .div-service-name .text-domain,
html body .kb-category-link small,
html body .kb-category-card p,
html body .kb-popular-item p,
html body .kb-also-read .kbarticles > div > p {
    font-size: var(--afx-font-sm);
    line-height: 1.55;
}

html body .tiles .tile .stat {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

html body .tiles .tile .title {
    font-size: var(--afx-font-sm);
    font-weight: 500;
}

html body .kb-article-title h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

html body .kb-article-content {
    font-size: var(--afx-font-md);
    line-height: 1.7;
}

html body .kb-article-content h1 {
    font-size: 22px;
}

html body .kb-article-content h2 {
    font-size: 20px;
}

html body .kb-article-content h3 {
    font-size: 18px;
}

html body .kb-article-content h4,
html body .kb-article-content h5,
html body .kb-article-content h6 {
    font-size: var(--afx-font-section);
}

html body .kb-rate-article,
html body .kb-rate-article .btn-lg {
    font-size: var(--afx-font-base);
}

@media (max-width: 767px) {
    html body h1,
    html body .h1,
    html body .header-lined h1,
    html body .page-header h1 {
        font-size: 22px;
    }

    html body h2,
    html body .h2,
    html body .kb-index > h2 {
        font-size: 17px;
    }

    html body .kb-article-title h2 {
        font-size: 20px;
    }
}

/* Project-wide UI reference normalization */
:root {
    --afx-card-radius: 10px;
    --afx-card-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    --afx-card-shadow-hover: 0 5px 16px rgba(15, 23, 42, .06);
    --afx-divider: #eef0f3;
    --afx-text-soft: #475569;
}

html body {
    background: var(--afx-bg);
}

html body #main-body,
html body #main-body > .container,
html body #main-body > .container-fluid {
    color: var(--afx-text);
}

html body .main-content,
html body .sidebar {
    font-size: var(--afx-font-base);
}

html body .panel,
html body .well,
html body .modal-content,
html body .thumbnail,
html body .product-details,
html body .ticket-reply,
html body .invoice-container,
html body .domain-checker-container,
html body .dataTables_wrapper .listtable,
html body #order-standard_cart .view-cart-items,
html body #order-standard_cart .order-summary,
html body #order-standard_cart .summary-container,
html body #order-standard_cart .secondary-cart-body .product-info {
    border: 1px solid var(--afx-border) !important;
    border-radius: var(--afx-card-radius) !important;
    background: var(--afx-surface) !important;
    box-shadow: var(--afx-card-shadow) !important;
    color: var(--afx-text) !important;
}

html body .panel-heading,
html body .modal-header,
html body .table-container .dataTables_wrapper .dataTables_info,
html body #order-standard_cart .view-cart-items-header,
html body #order-standard_cart .order-summary h2 {
    border-color: var(--afx-border) !important;
    background: var(--afx-surface) !important;
    color: var(--afx-text) !important;
}

html body .panel-heading {
    padding-top: 14px;
    padding-bottom: 14px;
}

html body .panel-title,
html body .modal-title,
html body .sidebar .panel-title,
html body #order-standard_cart .order-summary h2,
html body #order-standard_cart .view-cart-items-header {
    color: var(--afx-text) !important;
    font-size: var(--afx-font-section) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

html body .panel-body,
html body .panel-body p,
html body .well,
html body .modal-body,
html body .invoice-container,
html body .ticket-reply,
html body .domain-checker-container {
    color: var(--afx-text-soft);
    font-size: var(--afx-font-base);
    line-height: 1.6;
}

html body .panel-footer,
html body .modal-footer {
    border-color: var(--afx-border) !important;
    background: var(--afx-soft-surface) !important;
    color: var(--afx-muted);
    font-size: var(--afx-font-sm);
}

html body .list-group {
    border-radius: 0 0 var(--afx-card-radius) var(--afx-card-radius);
    box-shadow: none;
}

html body .list-group-item,
html body a.list-group-item {
    border-color: var(--afx-divider) !important;
    background: var(--afx-surface);
    color: var(--afx-text-soft);
    font-size: var(--afx-font-base);
    line-height: 1.5;
}

html body a.list-group-item:hover,
html body a.list-group-item:focus,
html body .list-group-item:hover {
    background: var(--afx-soft-surface);
    color: var(--afx-text);
}

html body .table,
html body table.table-list,
html body .dataTable {
    color: var(--afx-text-soft);
    font-size: var(--afx-font-base);
}

html body .table > thead > tr > th,
html body table.table-list thead th,
html body .dataTable > thead > tr > th {
    border-color: var(--afx-border) !important;
    background: var(--afx-soft-surface) !important;
    color: var(--afx-muted) !important;
    font-size: var(--afx-font-xs) !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
}

html body .table > tbody > tr > td,
html body table.table-list tbody td,
html body .dataTable > tbody > tr > td {
    border-color: var(--afx-divider) !important;
    color: var(--afx-text-soft);
    font-size: var(--afx-font-base);
    line-height: 1.5;
}

html body .table-hover > tbody > tr:hover > td,
html body table.table-list > tbody > tr:hover > td,
html body .dataTable > tbody > tr:hover > td {
    background: var(--afx-soft-surface) !important;
}

html body .form-group {
    margin-bottom: 18px;
}

html body .form-control,
html body input[type="text"],
html body input[type="email"],
html body input[type="password"],
html body input[type="number"],
html body input[type="search"],
html body select,
html body textarea {
    min-height: var(--afx-control-height);
    border-color: #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: var(--afx-text) !important;
    font-size: var(--afx-font-base) !important;
    font-weight: 400 !important;
    line-height: 1.45;
    box-shadow: none !important;
}

html body textarea,
html body textarea.form-control {
    min-height: 96px;
}

html body .input-group-lg > .form-control,
html body .input-group-lg > .input-group-btn > .btn,
html body .input-lg {
    height: 44px;
    min-height: 44px;
    font-size: var(--afx-font-md) !important;
}

html body label,
html body .control-label,
html body .radio-inline,
html body .checkbox-inline,
html body .icheck-label {
    color: #374151;
    font-size: var(--afx-font-base) !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

html body .help-block,
html body .field-help-text,
html body .text-muted,
html body .dataTables_info,
html body .dataTables_length,
html body .dataTables_filter {
    color: var(--afx-muted) !important;
    font-size: var(--afx-font-sm) !important;
    line-height: 1.5;
}

html body .btn,
html body .btn-group > .btn,
html body input[type="submit"].btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px !important;
    font-size: var(--afx-font-base) !important;
    font-weight: 600 !important;
    line-height: 18px;
    text-shadow: none !important;
    box-shadow: none !important;
}

html body .btn-lg {
    min-height: 42px;
    padding: 10px 16px;
    font-size: var(--afx-font-md) !important;
}

html body .btn-sm {
    min-height: 31px;
    padding: 5px 10px;
    font-size: var(--afx-font-sm) !important;
}

html body .btn-xs {
    min-height: 28px;
    padding: 4px 9px;
    font-size: var(--afx-font-sm) !important;
}

html body .btn-default {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    color: #374151 !important;
}

html body .btn-default:hover,
html body .btn-default:focus {
    border-color: #9ca3af !important;
    background: var(--afx-soft-surface) !important;
    color: var(--afx-text) !important;
}

html body .btn-link {
    color: var(--afx-link) !important;
    font-weight: 500 !important;
}

html body .label,
html body .status,
html body .badge {
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: var(--afx-font-xs) !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.25;
}

html body .alert {
    border: 0 !important;
    border-radius: var(--afx-card-radius) !important;
    font-size: var(--afx-font-base);
    line-height: 1.55;
}

html body .nav-tabs > li > a,
html body .nav-pills > li > a,
html body .dropdown-menu > li > a,
html body .pagination > li > a,
html body .pagination > li > span {
    font-size: var(--afx-font-base);
    font-weight: 500;
}

html body .dropdown-menu {
    border-color: var(--afx-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

html body .dropdown-menu > li > a {
    color: var(--afx-text-soft);
}

html body .dropdown-menu > li > a:hover,
html body .dropdown-menu > li > a:focus {
    background: var(--afx-soft-surface);
    color: var(--afx-text);
}

html body .pagination > li > a,
html body .pagination > li > span {
    border-color: var(--afx-border);
    color: var(--afx-text-soft);
}

html body .client-home-panels [menuItemName="Recent Support Tickets"] .panel-body p {
    color: var(--afx-text-soft);
}

html body .kb-index-search,
html body .home-kb-search {
    margin-bottom: 24px;
}

html body .kb-category-card,
html body .kb-popular-item,
html body .kb-also-read .kbarticles > div {
    border-color: var(--afx-border);
    border-radius: var(--afx-card-radius);
    background: var(--afx-surface);
}

html body .kb-category-card:hover,
html body .kb-popular-item:hover,
html body .kb-also-read .kbarticles > div:hover {
    border-color: #d5d9e0;
    box-shadow: var(--afx-card-shadow-hover);
}

html body .kb-index > h2,
html body .main-content > h2,
html body .main-content > h3,
html body .sub-heading,
html body .section-title {
    margin-top: 28px;
    margin-bottom: 14px;
}

html body .home-shortcuts,
html body section#home-banner {
    border-color: var(--afx-border);
}

html body .logincontainer {
    border-radius: var(--afx-card-radius);
}

@media (min-width: 992px) {
    html body {
        padding-left: var(--afx-sidebar-width);
    }

    html body #header {
        left: var(--afx-sidebar-width);
    }

    html body #main-menu {
        transform: translateX(0);
    }

    html body #main-body > .container,
    html body #main-body > .container-fluid {
        padding-right: var(--afx-content-gutter);
        padding-left: var(--afx-content-gutter);
    }
}

@media (max-width: 767px) {
    html body .panel-title,
    html body .modal-title,
    html body .sidebar .panel-title,
    html body #order-standard_cart .order-summary h2,
    html body #order-standard_cart .view-cart-items-header {
        font-size: var(--afx-font-title) !important;
    }

    html body .panel-body,
    html body .well,
    html body .modal-body,
    html body .list-group-item {
        font-size: var(--afx-font-sm);
    }

    html body .btn {
        white-space: normal;
    }
}

/* Top account dropdown and borderless sidebar submenus */
html body #header .top-nav > li.afx-top-account {
    position: relative;
}

html body #header .top-nav > li.afx-top-account > a {
    gap: 8px;
    padding: 6px 10px 6px 7px;
}

html body #header .top-nav > li.afx-top-account.open > a,
html body #header .top-nav > li.afx-top-account > a:hover,
html body #header .top-nav > li.afx-top-account > a:focus {
    background: #f1f5f9;
    color: var(--afx-text);
}

html body .afx-top-account-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #334155;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

html body .afx-top-account-label {
    display: inline-block;
    max-width: 190px;
    overflow: hidden;
    color: #374151;
    font-size: var(--afx-font-base);
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body #header .top-nav > li.afx-top-account > a .afx-menu-arrow {
    margin-left: 2px;
    color: #64748b;
    font-size: 10px;
    transition: transform 180ms ease;
}

html body #header .top-nav > li.afx-top-account.open > a .afx-menu-arrow {
    transform: rotate(180deg);
}

html body #header .top-nav > li.afx-top-account > .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--afx-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

html body #header .top-nav > li.afx-top-account > .dropdown-menu > li,
html body #header .top-nav > li.afx-top-account > .dropdown-menu > li + li,
html body #header .top-nav > li.afx-top-account > .dropdown-menu > li > a {
    border: 0 !important;
    box-shadow: none !important;
}

html body #header .top-nav > li.afx-top-account > .dropdown-menu > li > a {
    display: flex;
    min-height: 34px;
    padding: 8px 9px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    color: #475569;
    font-size: var(--afx-font-base);
    font-weight: 500;
    line-height: 1.35;
}

html body #header .top-nav > li.afx-top-account > .dropdown-menu > li > a:hover,
html body #header .top-nav > li.afx-top-account > .dropdown-menu > li > a:focus {
    background: var(--afx-soft-surface);
    color: var(--afx-text);
    text-decoration: none;
}

html body #header .top-nav > li.afx-top-account > .dropdown-menu > li > a > i {
    width: 16px;
    color: #64748b;
    text-align: center;
}

html body #main-menu .navbar-right,
html body #main-menu .afx-sidebar-account {
    display: none !important;
}

html body #main-menu .dropdown-menu,
html body #main-menu .dropdown-menu > li,
html body #main-menu .dropdown-menu > li + li,
html body #main-menu .dropdown-menu > li > a,
html body #main-menu .dropdown-menu > li::before,
html body #main-menu .dropdown-menu > li::after,
html body #main-menu .dropdown-menu > li > a::before,
html body #main-menu .dropdown-menu > li > a::after {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body #main-menu,
html body #main-menu a,
html body .sidebar,
html body .sidebar a,
html body .panel-sidebar,
html body .panel-sidebar a,
html body .panel-sidebar .panel-title {
    font-weight: 700 !important;
}

/*
 * Search fields and table polish.
 * Keeps the home search icon inside the input and gives DataTables a stable
 * header/search/pagination layout.
 */
html body .home-kb-search {
    position: relative !important;
    margin-bottom: 24px;
}

html body .home-kb-search > i {
    position: absolute !important;
    z-index: 2;
    top: 50% !important;
    right: auto !important;
    left: 30px !important;
    float: none !important;
    margin: 0 !important;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%) !important;
    pointer-events: none;
}

html body .home-kb-search .form-control {
    height: 48px !important;
    min-height: 48px;
    padding-right: 16px !important;
    padding-left: 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--afx-text) !important;
}

html body .home-kb-search .form-control:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

html body .dataTables_wrapper {
    gap: 12px 0;
}

html body .dataTables_wrapper .listtable {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    overflow: hidden;
}

html body .dataTables_wrapper .dataTables_info,
html body .dataTables_wrapper .dataTables_filter {
    display: flex;
    min-height: 64px;
    align-items: center;
}

html body .dataTables_wrapper .dataTables_info {
    padding: 12px 16px !important;
    line-height: 1.45 !important;
}

html body .dataTables_wrapper .dataTables_filter {
    justify-content: flex-end;
    padding: 12px 16px !important;
}

html body .dataTables_wrapper .dataTables_filter label {
    width: min(100%, 280px);
}

html body .dataTables_wrapper .dataTables_filter label::before {
    top: 50% !important;
    left: 13px !important;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
    transform: translateY(-50%) !important;
}

html body .dataTables_wrapper .dataTables_filter input,
html body .dataTables_wrapper .dataTables_filter label .form-control {
    height: 40px !important;
    min-height: 40px !important;
    padding: 8px 12px 8px 38px !important;
    border-color: #d1d5db !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    line-height: 22px !important;
}

html body .dataTables_wrapper .dataTables_filter input:focus,
html body .dataTables_wrapper .dataTables_filter label .form-control:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

html body .dataTables_wrapper table.table-list,
html body .dataTables_wrapper table.dataTable {
    table-layout: auto;
}

html body .dataTables_wrapper table.table-list > thead > tr > th,
html body .dataTables_wrapper table.dataTable > thead > tr > th {
    padding: 8px 12px !important;
    color: #64748b !important;
    font-size: var(--afx-font-sm) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

html body .dataTables_wrapper table.table-list > tbody > tr > td,
html body .dataTables_wrapper table.dataTable > tbody > tr > td {
    padding: 13px 14px !important;
    vertical-align: middle !important;
    line-height: 1.45 !important;
}

html body .dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child,
html body .dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child {
    padding-left: 38px !important;
}

html body .dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before,
html body .dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child::before {
    top: 50%;
    left: 12px;
    margin-top: -8px;
}

html body .dataTables_wrapper .dataTables_length,
html body .dataTables_wrapper .dataTables_paginate {
    padding-top: 0 !important;
}

html body .dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
}

html body .dataTables_wrapper .dataTables_paginate .pagination > li > a,
html body .dataTables_wrapper .dataTables_paginate .pagination > li > span {
    min-width: 36px;
    padding: 8px 11px;
    text-align: center;
}

html body .cpanel-feature-row .cpanel-shortcut-icon,
html body .cpanel-feature-row > div:nth-child(n) .cpanel-shortcut-icon {
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

html body .cpanel-feature-row > div > a:hover .cpanel-shortcut-icon,
html body .cpanel-feature-row > div > a:focus .cpanel-shortcut-icon {
    background-color: #111827 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    html body .home-kb-search > i {
        left: 26px !important;
    }

    html body .dataTables_wrapper .listtable {
        grid-template-columns: minmax(0, 1fr);
    }

    html body .dataTables_wrapper .dataTables_filter {
        grid-column: 1;
        grid-row: 1;
        justify-content: stretch;
        border-bottom: 1px solid var(--afx-border);
    }

    html body .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }

    html body .dataTables_wrapper .dataTables_info {
        grid-column: 1;
        grid-row: 2;
        min-height: auto;
        border-bottom: 1px solid var(--afx-border) !important;
        text-align: left;
    }

    html body .dataTables_wrapper table.table-list,
    html body .dataTables_wrapper table.dataTable {
        grid-row: 3;
    }

    html body .dataTables_wrapper .dataTables_length {
        grid-column: 1;
        grid-row: 4;
        text-align: center;
    }

    html body .dataTables_wrapper .dataTables_paginate {
        grid-column: 1;
        grid-row: 5;
        text-align: center;
    }
}

@media (max-width: 767px) {
    html body .afx-top-account-label {
        max-width: 118px;
    }

    html body #header .top-nav > li.afx-top-account > a {
        padding-right: 8px;
    }
}


/* Upgrade configurable options */
html body .afx-upgrade-config {
    max-width: 980px;
    margin: 0 auto 40px;
}

html body .afx-upgrade-hero {
    display: flex;
    margin-bottom: 18px;
    padding-bottom: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--afx-border);
}

html body .afx-upgrade-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--afx-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

html body .afx-upgrade-hero h2 {
    margin: 0 0 8px;
    color: var(--afx-text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

html body .afx-upgrade-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--afx-muted);
    font-size: 14px;
    line-height: 1.55;
}

html body .afx-upgrade-hero .btn,
html body .afx-upgrade-actions .btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: normal;
}

html body .afx-upgrade-service {
    display: flex;
    margin-bottom: 18px;
    padding: 16px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--afx-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--afx-shadow);
}

html body .afx-upgrade-service-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #111827;
    font-size: 18px;
}

html body .afx-upgrade-service span,
html body .afx-config-current span,
html body .afx-config-change > label {
    display: block;
    margin-bottom: 4px;
    color: var(--afx-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

html body .afx-upgrade-service strong {
    display: block;
    color: var(--afx-text);
    font-size: 15px;
    line-height: 1.35;
}

html body .afx-upgrade-service small {
    display: block;
    margin-top: 3px;
    color: var(--afx-muted);
    font-size: 13px;
}

html body .afx-upgrade-form {
    margin: 0;
}

html body .afx-config-options {
    display: grid;
    gap: 12px;
}

html body .afx-config-option {
    overflow: hidden;
    border: 1px solid var(--afx-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--afx-shadow);
}

html body .afx-config-option-title {
    display: flex;
    padding: 14px 16px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--afx-border);
    background: #f8fafc;
}

html body .afx-config-option-title span {
    display: flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

html body .afx-config-option-title h3 {
    margin: 0;
    color: var(--afx-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

html body .afx-config-option-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 16px;
    padding: 16px;
    align-items: start;
}

html body .afx-config-current,
html body .afx-config-change {
    min-width: 0;
}

html body .afx-config-current {
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

html body .afx-config-current strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--afx-text);
    font-size: 15px;
    line-height: 1.35;
}

html body .afx-config-change .form-control {
    height: 42px;
    border-color: #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
    color: var(--afx-text);
    font-size: 14px;
}

html body .afx-config-change .form-control:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.09);
}

html body .afx-config-toggle {
    display: flex;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--afx-text);
    font-weight: 600;
}

html body .afx-config-toggle input {
    margin: 0;
}

html body .afx-config-quantity {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

html body .afx-config-quantity span {
    min-width: 0;
    color: var(--afx-muted);
    font-weight: 600;
    overflow-wrap: anywhere;
}

html body .afx-upgrade-actions {
    display: flex;
    margin-top: 18px;
    padding: 16px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border: 1px solid var(--afx-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--afx-shadow);
}

html body .afx-upgrade-actions .btn-primary {
    border-color: #111827;
    background: #111827;
}

html body .afx-upgrade-actions .btn-primary:hover,
html body .afx-upgrade-actions .btn-primary:focus {
    border-color: #273244;
    background: #273244;
}

@media (max-width: 767px) {
    html body .afx-upgrade-hero,
    html body .afx-upgrade-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html body .afx-upgrade-hero h2 {
        font-size: 22px;
    }

    html body .afx-config-option-body {
        grid-template-columns: minmax(0, 1fr);
    }

    html body .afx-config-quantity {
        grid-template-columns: minmax(88px, 120px) minmax(0, 1fr);
    }
}

/* Email verification popup */
html body .afx-email-verification-modal {
    margin: 0;
    padding: 0 !important;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    color: #111827;
    font-weight: 400;
}

html body .afx-email-verification-modal .modal-dialog {
    width: min(420px, calc(100% - 28px));
    margin: 88px auto 24px;
}

html body .afx-email-verification-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--afx-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

html body .afx-email-verification-modal .modal-body {
    padding: 28px 28px 24px;
    text-align: center;
}

html body .afx-email-verification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 34px;
    opacity: 1;
}

html body .verification-banner .btn.afx-email-verification-close {
    margin: 0;
    padding: 0;
    overflow: visible;
}

html body .afx-email-verification-close:hover,
html body .afx-email-verification-close:focus {
    background: #f1f5f9;
    color: #111827;
    outline: 0;
}

html body .afx-email-verification-icon {
    display: flex;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    font-size: 20px;
}

html body .afx-email-verification-icon .fas {
    float: none;
    padding: 0;
    color: inherit;
}

html body .afx-email-verification-modal h3 {
    margin: 0 34px 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

html body .afx-email-verification-modal .text {
    display: block;
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

html body .afx-email-verification-modal .btn-action {
    min-height: 42px;
    margin: 0;
    padding: 10px 14px;
    border-color: #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}

html body .afx-email-verification-modal .btn-action:hover,
html body .afx-email-verification-modal .btn-action:focus {
    border-color: #273244;
    background: #273244;
    color: #ffffff;
}

@media (max-width: 767px) {
    html body .afx-email-verification-modal .modal-dialog {
        margin-top: 72px;
    }

    html body .afx-email-verification-modal .modal-body {
        padding: 26px 20px 22px;
    }
}
