/*
 * HostAccent Premium
 * Upgrade-safe WHMCS child theme for Twenty-One.
 *
 * Architecture rule: keep this theme CSS-first. Unmodified templates are
 * inherited from Twenty-One so WHMCS security and feature updates flow through.
 */

:root {
    --ha-brand: #ef3340;
    --ha-brand-dark: #cf2230;
    --ha-brand-soft: #fff0f1;
    --ha-accent: #20aee5;
    --ha-accent-dark: #087eae;
    --ha-accent-soft: #eaf8fe;
    --ha-ink: #17243d;
    --ha-muted: #66738a;
    --ha-subtle: #8d98aa;
    --ha-line: #e6eaf1;
    --ha-line-strong: #d9deea;
    --ha-surface: #ffffff;
    --ha-canvas: #f5f7fb;
    --ha-success: #19a974;
    --ha-warning: #e99a17;
    --ha-danger: #e5484d;
    --ha-info: #228be6;
    --ha-radius-sm: 8px;
    --ha-radius: 12px;
    --ha-radius-lg: 18px;
    --ha-shadow-xs: 0 1px 2px rgba(23, 36, 61, .04);
    --ha-shadow-sm: 0 8px 24px rgba(23, 36, 61, .07);
    --ha-shadow: 0 16px 48px rgba(23, 36, 61, .10);
    --ha-ring: 0 0 0 3px rgba(32, 174, 229, .18);
    --ha-transition: 180ms cubic-bezier(.2, .8, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body.primary-bg-color,
body {
    color: var(--ha-ink);
    background: var(--ha-canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--ha-accent-dark);
    transition: color var(--ha-transition), background-color var(--ha-transition), border-color var(--ha-transition), box-shadow var(--ha-transition), transform var(--ha-transition);
}

a:hover {
    color: var(--ha-brand);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.custom-select:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
    box-shadow: var(--ha-ring) !important;
}

::selection {
    color: #fff;
    background: var(--ha-brand);
}

/* Header and global navigation */

.header {
    position: relative;
    z-index: 1030;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--ha-line);
    box-shadow: 0 4px 18px rgba(23, 36, 61, .04);
}

.header .topbar {
    color: var(--ha-muted);
    background: #f8fafe;
    border-bottom: 1px solid var(--ha-line);
}

.header .topbar .btn {
    min-height: 38px;
    color: var(--ha-muted);
    border-radius: var(--ha-radius-sm);
}

.header .topbar .btn:hover {
    color: var(--ha-ink);
    background: #fff;
}

.header .topbar .btn-active-client {
    color: var(--ha-ink);
    font-weight: 700;
}

.header .navbar-light {
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.header .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ha-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.header .navbar-brand .logo-img {
    width: auto;
    max-width: 225px;
    max-height: 48px;
    object-fit: contain;
}

.header .navbar-light .search .form-control,
.header .navbar-light .search .btn {
    height: 44px;
    background: var(--ha-canvas);
    border-color: transparent;
}

.header .navbar-light .search .btn {
    color: var(--ha-subtle);
    border-radius: 12px 0 0 12px;
}

.header .navbar-light .search .form-control {
    min-width: 270px;
    color: var(--ha-ink);
    border-radius: 0 12px 12px 0;
}

.header .navbar-light .search:focus-within .form-control,
.header .navbar-light .search:focus-within .btn {
    background: #fff;
    border-color: rgba(32, 174, 229, .35);
}

.header .toolbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ha-ink);
    background: var(--ha-canvas);
    border: 1px solid transparent;
    border-radius: 12px;
}

.header .toolbar .nav-link:hover {
    color: var(--ha-brand);
    background: var(--ha-brand-soft);
    border-color: rgba(239, 51, 64, .12);
}

.header .cart-btn {
    position: relative;
}

.header .cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 20px;
    padding: 4px 6px;
    color: #fff;
    background: var(--ha-brand) !important;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
}

.main-navbar-wrapper {
    min-height: 54px;
    padding: 0;
    background: #fff;
    border-top: 1px solid rgba(230, 234, 241, .8);
}

.main-navbar-wrapper .navbar-nav > .nav-item > .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 53px;
    padding: 0 16px;
    color: var(--ha-muted);
    font-size: 14px;
    font-weight: 650;
}

.main-navbar-wrapper .navbar-nav > .nav-item > .nav-link::after {
    border-top-color: currentColor;
}

.main-navbar-wrapper .navbar-nav > .nav-item > .nav-link:hover,
.main-navbar-wrapper .navbar-nav > .nav-item.active > .nav-link,
.main-navbar-wrapper .navbar-nav > .nav-item.show > .nav-link {
    color: var(--ha-brand);
    background: transparent;
}

.main-navbar-wrapper .navbar-nav > .nav-item.active > .nav-link::before {
    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--ha-brand), var(--ha-accent));
    border-radius: 3px 3px 0 0;
}

.dropdown-menu {
    padding: 8px;
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow);
}

.dropdown-item {
    padding: 9px 12px;
    color: var(--ha-muted);
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
    color: var(--ha-ink);
    background: var(--ha-accent-soft);
}

/* Breadcrumb and layout */

.master-breadcrumb {
    background: transparent;
    border: 0;
}

.master-breadcrumb .breadcrumb {
    margin: 0;
    padding: 20px 0 0;
    color: var(--ha-subtle);
    background: transparent;
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #b5bdca;
}

.breadcrumb-item a {
    color: var(--ha-muted);
}

#main-body {
    min-height: calc(100vh - 340px);
    padding: 26px 0 64px;
}

.primary-content > .header-lined {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.header-lined h1,
.primary-content h1 {
    color: var(--ha-ink);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.header-lined p,
.header-lined small {
    color: var(--ha-muted);
}

/* Sidebar */

.sidebar .card,
.sidebar .panel {
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--ha-surface);
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow-xs);
}

.sidebar .card-header,
.sidebar .panel-heading {
    padding: 17px 18px;
    color: var(--ha-ink);
    background: #fff;
    border-bottom: 1px solid var(--ha-line);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sidebar .list-group-item {
    padding: 11px 16px;
    color: var(--ha-muted);
    background: transparent;
    border-color: #f0f2f6;
    font-size: 14px;
}

.sidebar .list-group-item i {
    width: 22px;
    color: var(--ha-subtle);
}

.sidebar .list-group-item:hover {
    color: var(--ha-ink);
    background: var(--ha-accent-soft);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    color: var(--ha-brand);
    background: var(--ha-brand-soft);
    border-color: rgba(239, 51, 64, .12);
    font-weight: 700;
}

.sidebar .list-group-item.active i {
    color: var(--ha-brand);
}

/* Cards, panels and content surfaces */

.card,
.panel,
.well,
.domain-promo-box,
.product-details,
.service-info {
    border-color: var(--ha-line);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow-xs);
}

.card {
    margin-bottom: 22px;
    background: var(--ha-surface);
    border: 1px solid var(--ha-line);
}

.card-header {
    padding: 17px 20px;
    color: var(--ha-ink);
    background: #fff;
    border-bottom: 1px solid var(--ha-line);
    border-radius: var(--ha-radius-lg) var(--ha-radius-lg) 0 0 !important;
}

.card-header .card-title,
.card-header h3,
.card-header h4,
.card-title {
    color: var(--ha-ink);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    background: #fbfcfe;
    border-top: 1px solid var(--ha-line);
    border-radius: 0 0 var(--ha-radius-lg) var(--ha-radius-lg) !important;
}

.card-accent-blue,
.card-accent-green,
.card-accent-red,
.card-accent-gold,
.card-accent-orange,
.card-accent-pink,
.card-accent-purple,
.card-accent-lime,
.card-accent-magenta,
.card-accent-teal,
.card-accent-cyan {
    border-top-width: 1px;
}

.client-home-cards .card {
    overflow: hidden;
    transition: transform var(--ha-transition), box-shadow var(--ha-transition);
}

.client-home-cards .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ha-shadow-sm);
}

.client-home-cards .list-group-item {
    padding: 13px 20px;
    color: var(--ha-muted);
    border-color: #f0f2f6;
}

.client-home-cards .list-group-item:hover {
    color: var(--ha-ink);
    background: var(--ha-accent-soft);
}

/* Dashboard metric tiles */

.tiles {
    margin-bottom: 28px !important;
}

.tiles > .row {
    margin-right: -8px;
    margin-left: -8px;
}

.tiles > .row > [class*="col-"] {
    padding: 8px;
}

.tiles .tile {
    position: relative;
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    min-height: 132px;
    padding: 23px;
    overflow: hidden;
    color: var(--ha-ink);
    background: #fff;
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow-xs);
    transition: transform var(--ha-transition), box-shadow var(--ha-transition), border-color var(--ha-transition);
}

.tiles .tile::after {
    position: absolute;
    top: -40px;
    right: -38px;
    width: 110px;
    height: 110px;
    content: "";
    background: radial-gradient(circle, rgba(32, 174, 229, .12), transparent 70%);
    border-radius: 50%;
}

.tiles .tile:hover {
    color: var(--ha-ink);
    transform: translateY(-4px);
    border-color: rgba(32, 174, 229, .25);
    box-shadow: var(--ha-shadow-sm);
}

.tiles .tile > i {
    grid-row: 1 / 3;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--ha-accent-dark);
    background: var(--ha-accent-soft);
    border-radius: 14px;
    font-size: 19px;
}

.tiles .tile:nth-child(1) > i,
.tiles > .row > div:nth-child(1) .tile > i {
    color: var(--ha-brand);
    background: var(--ha-brand-soft);
}

.tiles .tile .stat {
    align-self: end;
    margin: 0;
    color: var(--ha-ink);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.tiles .tile .title {
    align-self: start;
    color: var(--ha-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.tiles .tile .highlight {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ha-brand), var(--ha-accent)) !important;
}

/* Buttons */

.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: -.005em;
    transition: color var(--ha-transition), background-color var(--ha-transition), border-color var(--ha-transition), box-shadow var(--ha-transition), transform var(--ha-transition);
}

.btn:not(.btn-sm):not(.btn-xs):not(.nav-link) {
    min-height: 42px;
    padding: 9px 17px;
}

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

.btn-primary,
.btn-success.btn-block {
    color: #fff;
    background: linear-gradient(135deg, var(--ha-brand), #f15b65);
    border-color: var(--ha-brand);
    box-shadow: 0 7px 18px rgba(239, 51, 64, .18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background: linear-gradient(135deg, var(--ha-brand-dark), var(--ha-brand));
    border-color: var(--ha-brand-dark);
    box-shadow: 0 9px 22px rgba(239, 51, 64, .24);
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, var(--ha-accent-dark), var(--ha-accent));
    border-color: var(--ha-accent);
}

.btn-default,
.btn-secondary,
.btn-light {
    color: var(--ha-ink);
    background: #fff;
    border-color: var(--ha-line-strong);
}

.btn-default:hover,
.btn-secondary:hover,
.btn-light:hover {
    color: var(--ha-accent-dark);
    background: var(--ha-accent-soft);
    border-color: rgba(32, 174, 229, .35);
}

.btn-success {
    background-color: var(--ha-success);
    border-color: var(--ha-success);
}

.btn-danger {
    background-color: var(--ha-danger);
    border-color: var(--ha-danger);
}

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

/* Forms */

label,
.col-form-label {
    color: var(--ha-ink);
    font-size: 13px;
    font-weight: 750;
}

.form-control,
.custom-select,
.input-group-text {
    min-height: 44px;
    color: var(--ha-ink);
    background-color: #fff;
    border-color: var(--ha-line-strong);
    border-radius: 10px;
}

.form-control::placeholder {
    color: #a4adbc;
}

.form-control:hover,
.custom-select:hover {
    border-color: #c9d1df;
}

.form-control:focus,
.custom-select:focus {
    color: var(--ha-ink);
    background-color: #fff;
    border-color: var(--ha-accent);
    box-shadow: var(--ha-ring);
}

.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-prepend .input-group-text,
.input-group-prepend .btn {
    border-radius: 10px 0 0 10px;
}

.input-group-append .input-group-text,
.input-group-append .btn {
    border-radius: 0 10px 10px 0;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--ha-brand);
    border-color: var(--ha-brand);
}

.form-group .field-error-msg,
.invalid-feedback {
    color: var(--ha-danger);
    font-size: 12px;
}

/* Tables and data lists */

.table-container,
.dataTables_wrapper,
.table-responsive {
    border-radius: var(--ha-radius);
}

.table {
    color: var(--ha-ink);
    background: #fff;
}

.table thead th {
    padding: 13px 14px;
    color: var(--ha-muted);
    background: #f8fafe;
    border-top: 0;
    border-bottom: 1px solid var(--ha-line-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.table td {
    padding: 15px 14px;
    vertical-align: middle;
    border-top-color: var(--ha-line);
}

.table-hover tbody tr {
    transition: background-color var(--ha-transition);
}

.table-hover tbody tr:hover {
    background-color: #f8fbfe;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ha-line-strong);
    border-radius: 9px;
}

.page-link {
    min-width: 36px;
    margin: 0 2px;
    color: var(--ha-muted);
    background: #fff;
    border-color: var(--ha-line);
    border-radius: 9px !important;
    text-align: center;
}

.page-item.active .page-link {
    color: #fff;
    background: var(--ha-brand);
    border-color: var(--ha-brand);
}

/* Alerts, badges and status */

.alert {
    padding: 15px 18px;
    border-width: 1px;
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow-xs);
}

.alert-info {
    color: #075b80;
    background: var(--ha-accent-soft);
    border-color: rgba(32, 174, 229, .24);
}

.alert-success {
    color: #0f6e4d;
    background: #ebfaf4;
    border-color: rgba(25, 169, 116, .22);
}

.alert-warning {
    color: #825709;
    background: #fff8e8;
    border-color: rgba(233, 154, 23, .25);
}

.alert-danger {
    color: #922c31;
    background: #fff0f1;
    border-color: rgba(229, 72, 77, .22);
}

.badge {
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 750;
}

.badge-primary,
.status-active,
.status-paid,
.status-completed,
.status-answered {
    color: #0b7651 !important;
    background: #e8f8f1 !important;
}

.status-pending,
.status-unpaid,
.status-inprogress,
.status-customer-reply {
    color: #95630c !important;
    background: #fff5dc !important;
}

.status-suspended,
.status-overdue,
.status-cancelled,
.status-terminated,
.status-fraud {
    color: #a82e36 !important;
    background: #ffebed !important;
}

/* Authentication, registration and password reset */

.logincontainer,
.login-container,
.pwreset-container,
.password-reset-container {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.logincontainer .card,
.login-container .card,
.pwreset-container .card,
.password-reset-container .card,
#registration .card {
    border: 1px solid rgba(230, 234, 241, .9);
    box-shadow: var(--ha-shadow);
}

.logincontainer::before,
.login-container::before,
.pwreset-container::before,
.password-reset-container::before {
    display: block;
    width: 62px;
    height: 5px;
    margin: 0 auto 22px;
    content: "";
    background: linear-gradient(90deg, var(--ha-brand), var(--ha-accent));
    border-radius: 999px;
}

.social-signin-btns .btn,
.btn-social {
    border-radius: 10px;
}

.captcha-container,
.captchaimage {
    overflow: hidden;
    border-radius: 10px;
}

/* Services, domains and product details */

.service-info .service-info-title,
.product-details .product-status {
    font-weight: 800;
}

.product-status-active,
.domain-status-active {
    color: var(--ha-success);
}

.product-status-suspended,
.domain-status-expired {
    color: var(--ha-danger);
}

.domain-pricing .tld-row,
.domain-pricing .tld-pricing-header {
    border-color: var(--ha-line);
}

.domain-pricing .tld-pricing-header {
    color: var(--ha-muted);
    background: #f8fafe;
}

.domain-renewal-desc,
.text-muted {
    color: var(--ha-muted) !important;
}

.nav-tabs {
    gap: 4px;
    border-bottom-color: var(--ha-line);
}

.nav-tabs .nav-link {
    color: var(--ha-muted);
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
}

.nav-tabs .nav-link:hover {
    color: var(--ha-ink);
    background: #f8fafe;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--ha-brand);
    background: transparent;
    border-color: var(--ha-brand);
}

/* Tickets, knowledgebase and announcements */

.ticket-reply,
.ticket-reply.staff,
.ticket-reply.client {
    overflow: hidden;
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow-xs);
}

.ticket-reply .date,
.ticket-reply .user {
    color: var(--ha-muted);
    background: #f8fafe;
}

.ticket-reply.staff {
    border-left: 4px solid var(--ha-accent);
}

.ticket-reply.client {
    border-left: 4px solid var(--ha-brand);
}

.kb-article-item,
.announcement-single,
.download-group {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius);
}

.kb-search .form-control,
.home-domain-search .form-control {
    min-height: 52px;
}

/* Standard Cart inherits this stylesheet through the system theme. */

#order-standard_cart {
    color: var(--ha-ink);
}

#order-standard_cart .products .product,
#order-standard_cart .product-info,
#order-standard_cart .view-cart-items,
#order-standard_cart .order-summary,
#order-standard_cart .domain-selection-options .option,
#order-standard_cart .sub-heading,
#order-standard_cart .field-container {
    border-color: var(--ha-line) !important;
    border-radius: var(--ha-radius-lg) !important;
    box-shadow: var(--ha-shadow-xs);
}

#order-standard_cart .products .product {
    overflow: hidden;
    background: #fff;
    transition: transform var(--ha-transition), box-shadow var(--ha-transition), border-color var(--ha-transition);
}

#order-standard_cart .products .product:hover {
    transform: translateY(-3px);
    border-color: rgba(32, 174, 229, .3) !important;
    box-shadow: var(--ha-shadow-sm);
}

#order-standard_cart .products .product header,
#order-standard_cart .order-summary,
#order-standard_cart .view-cart-items-header {
    color: var(--ha-ink);
    background: #f8fafe;
    border-color: var(--ha-line);
}

#order-standard_cart .products .product .price {
    color: var(--ha-brand);
}

#order-standard_cart .products .product .btn-success,
#order-standard_cart .btn-checkout {
    color: #fff;
    background: linear-gradient(135deg, var(--ha-brand), #f15b65);
    border-color: var(--ha-brand);
}

#order-standard_cart .cart-body,
#order-standard_cart .summary-container {
    background: transparent;
}

#order-standard_cart .order-summary {
    overflow: hidden;
}

#order-standard_cart .order-summary .total-due-today .amt {
    color: var(--ha-brand);
}

/* Invoice and payment views */

.invoice-container {
    padding: clamp(20px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--ha-line);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow-sm);
}

.invoice-container .invoice-status {
    border-radius: 999px;
}

.invoice-container .total-row {
    color: var(--ha-ink);
    background: #f8fafe;
}

/* Modals and overlays */

.modal-content {
    overflow: hidden;
    border: 1px solid rgba(230, 234, 241, .9);
    border-radius: var(--ha-radius-lg);
    box-shadow: var(--ha-shadow);
}

.modal-header,
.modal-footer {
    border-color: var(--ha-line);
}

.modal-header {
    background: #fbfcfe;
}

.modal-backdrop.show {
    opacity: .58;
}

.popover {
    border-color: var(--ha-line);
    border-radius: var(--ha-radius);
    box-shadow: var(--ha-shadow);
}

/* Footer */

.footer {
    padding: 44px 0;
    color: #8f9bb0;
    background: #111b2e;
    border-top: 0;
}

.footer .nav-link,
.footer .btn {
    color: #c3cada;
}

.footer .nav-link:hover,
.footer .btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.footer .copyright {
    color: #7d899f;
    font-size: 13px;
}

/* Utility refinements */

.bg-color-blue,
.bg-info {
    background-color: var(--ha-accent) !important;
}

.bg-color-red,
.bg-danger {
    background-color: var(--ha-danger) !important;
}

.bg-color-green,
.bg-success {
    background-color: var(--ha-success) !important;
}

.bg-color-gold,
.bg-warning {
    background-color: var(--ha-warning) !important;
}

.text-primary {
    color: var(--ha-brand) !important;
}

.text-info {
    color: var(--ha-accent-dark) !important;
}

hr {
    border-top-color: var(--ha-line);
}

.progress {
    height: 9px;
    overflow: hidden;
    background: #edf0f5;
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--ha-brand), var(--ha-accent));
}

/* Tablet and mobile */

@media (max-width: 1199.98px) {
    .main-navbar-wrapper {
        padding: 10px 0;
    }

    .main-navbar-wrapper .navbar-collapse {
        max-height: calc(100vh - 160px);
        padding: 8px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid var(--ha-line);
        border-radius: var(--ha-radius);
        box-shadow: var(--ha-shadow-sm);
    }

    .main-navbar-wrapper .navbar-nav > .nav-item > .nav-link {
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .main-navbar-wrapper .navbar-nav > .nav-item.active > .nav-link::before {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 0;
        width: 3px;
        height: auto;
        border-radius: 0 3px 3px 0;
    }
}

@media (max-width: 991.98px) {
    #main-body {
        padding-top: 20px;
    }

    .sidebar {
        margin-bottom: 22px;
    }

    .sidebar .card,
    .sidebar .panel {
        border-radius: var(--ha-radius);
    }

    .invoice-container {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .header .navbar-light {
        min-height: 66px;
    }

    .header .navbar-brand .logo-img {
        max-width: 180px;
        max-height: 40px;
    }

    .master-breadcrumb .breadcrumb {
        padding-top: 14px;
        white-space: nowrap;
        overflow-x: auto;
    }

    .header-lined h1,
    .primary-content h1 {
        font-size: 25px;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }

    .footer {
        padding: 34px 0;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .header .navbar-brand .logo-img {
        max-width: 155px;
    }

    .header .toolbar .nav-item {
        margin-left: 8px !important;
    }

    .tiles > .row {
        margin-right: -5px;
        margin-left: -5px;
    }

    .tiles > .row > [class*="col-"] {
        padding: 5px;
    }

    .tiles .tile {
        display: flex;
        min-height: 140px;
        padding: 17px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .tiles .tile > i {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 12px;
        font-size: 17px;
    }

    .tiles .tile .stat {
        font-size: 25px;
    }

    .tiles .tile .title {
        max-width: 100%;
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn:not(.btn-sm):not(.btn-xs):not(.nav-link) {
        min-height: 42px;
    }

    .modal-dialog {
        margin: 10px;
    }
}

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

@media print {
    .header,
    .master-breadcrumb,
    .sidebar,
    .footer,
    .btn-print {
        display: none !important;
    }

    body,
    #main-body {
        background: #fff !important;
    }

    .invoice-container,
    .card {
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* Standalone email viewer. WHMCS renders this route without the normal client
   shell, so it intentionally lives in custom.css (the only theme stylesheet
   loaded by that minimal document). */
body:not(.ha-client-shell) > .card.bg-default:first-child {
    width: min(920px, calc(100% - 32px));
    margin: clamp(18px, 5vw, 64px) auto;
    overflow: hidden;
    color: var(--ha-ink);
    background:
        radial-gradient(circle at 100% 0, rgba(32, 174, 229, .09), transparent 260px),
        var(--ha-surface);
    border: 1px solid var(--ha-line);
    border-radius: 22px;
    box-shadow: 0 28px 85px rgba(23, 36, 61, .14);
}

body:not(.ha-client-shell) > .card.bg-default:first-child > .card-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 20px 26px;
    color: var(--ha-ink);
    background: linear-gradient(110deg, rgba(32, 174, 229, .09), rgba(119, 91, 247, .05));
    border-bottom: 1px solid var(--ha-line);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

body:not(.ha-client-shell) > .card.bg-default:first-child > .card-body {
    padding: clamp(22px, 4vw, 38px);
    color: var(--ha-ink);
    background: transparent;
    font-size: 15px;
    line-height: 1.75;
}

body:not(.ha-client-shell) > .card.bg-default:first-child > .card-footer {
    padding: 16px 24px;
    background: #f8fafe;
    border-top: 1px solid var(--ha-line);
}

body:not(.ha-client-shell) > .card.bg-default:first-child .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    color: #fff;
    background: linear-gradient(135deg, #1f5fd0, #5340c8);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 95, 208, .2);
    font-weight: 750;
}

@media (max-width: 575.98px) {
    body:not(.ha-client-shell) > .card.bg-default:first-child {
        width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 17px;
    }

    body:not(.ha-client-shell) > .card.bg-default:first-child > .card-header { padding: 17px; }
    body:not(.ha-client-shell) > .card.bg-default:first-child > .card-body { padding: 18px 16px; }
    body:not(.ha-client-shell) > .card.bg-default:first-child .btn { width: 100%; }
}
