/*
 * Blake Mark Productions
 * WHMCS Nexus child theme
 *
 * Brand hierarchy:
 * - Dark blue: headings, structure and secondary actions
 * - Coral: primary actions
 * - Light blue and teal: supporting accents and information
 */

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-ExtraLight.woff2") format("woff2");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Hauora";
    src: url("../assets/fonts/Hauora-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Kollektif";
    src: url("../assets/fonts/Kollektif-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kollektif";
    src: url("../assets/fonts/Kollektif-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Kollektif";
    src: url("../assets/fonts/Kollektif-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kollektif";
    src: url("../assets/fonts/Kollektif-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

:root {
    --bmp-dark-blue: #2c3e50;
    --bmp-dark-blue-hover: #203143;
    --bmp-dark-blue-soft: #40566b;
    --bmp-button-text: #ffffff;
    --bmp-coral: #ff6f61;
    --bmp-coral-hover: #f45f52;
    --bmp-coral-active: #e95448;
    --bmp-light-blue: #41b5e8;
    --bmp-deep-blue: #026186;
    --bmp-teal: #39a9ab;
    --bmp-white: #ffffff;
    --bmp-page: #f6f9fb;
    --bmp-surface-soft: #eef6f8;
    --bmp-border: #dce5ea;
    --bmp-border-strong: #bdcbd3;
    --bmp-text: #2c3e50;
    --bmp-text-muted: #667788;
    --bmp-radius: 15px;
    --bmp-radius-sm: 10px;
    --bmp-shadow: 0 12px 34px rgba(44, 62, 80, 0.09);
    --bmp-shadow-hover: 0 16px 40px rgba(44, 62, 80, 0.14);
    --bmp-focus: 0 0 0 4px rgba(65, 181, 232, 0.24);

    /* Nexus variables */
    --white: var(--bmp-white);
    --primary-50: #fff3f1;
    --primary-100: #ffe3df;
    --primary-200: #ffc6bf;
    --primary-300: #ffa094;
    --primary-400: #ff6f61;
    --primary-500: #f45f52;
    --primary-600: #e95448;
    --primary-700: #c93f36;
    --primary-800: #a83630;
    --primary-900: #8b332e;
    --primary-950: #4c1714;
    --primary: var(--bmp-coral);
    --primary-lifted: var(--bmp-coral-hover);
    --primary-accented: var(--bmp-coral-active);
    --secondary: var(--bmp-dark-blue);
    --secondary-lifted: var(--bmp-dark-blue-hover);
    --secondary-accented: #172635;
    --grayscale: var(--bmp-dark-blue);
    --grayscale-lifted: var(--bmp-dark-blue-hover);
    --grayscale-accented: #172635;
    --info: var(--bmp-deep-blue);
    --info-lifted: #014f6e;
    --info-accented: #013e57;
    --text-inverted: var(--bmp-white);
    --text-muted: #8795a2;
    --text-lifted: var(--bmp-text-muted);
    --text-accented: var(--bmp-dark-blue-soft);
    --text: var(--bmp-text);
    --border-muted: #edf2f4;
    --border: var(--bmp-border);
    --border-lifted: var(--bmp-border-strong);
    --border-accented: #8ba0ad;
    --bg: var(--bmp-white);
    --bg-muted: var(--bmp-page);
    --bg-lifted: var(--bmp-surface-soft);
    --bg-accented: #dcecef;
    --bg-inverted: var(--bmp-dark-blue);
    --rounding-sm: var(--bmp-radius-sm);
    --rounding-md: var(--bmp-radius);
    --rounding-lg: var(--bmp-radius);
    --letter-spacing: 0;
}

html,
body {
    font-family: "Hauora", Arial, sans-serif;
}

body {
    color: var(--bmp-text);
    background: var(--bmp-page);
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--bmp-dark-blue);
    font-family: "Kollektif", "Hauora", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
}

p,
li,
label,
input,
select,
textarea,
button,
.btn,
.form-control,
.dropdown-menu,
.tooltip,
.popover {
    font-family: "Hauora", Arial, sans-serif;
}

a {
    color: var(--bmp-deep-blue);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--bmp-dark-blue);
}

:focus-visible {
    outline: 3px solid var(--bmp-light-blue);
    outline-offset: 3px;
}

::selection {
    color: var(--bmp-dark-blue);
    background: rgba(255, 111, 97, 0.35);
}

/* Buttons */
.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: var(--bmp-radius);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.btn:focus,
.btn.focus,
.btn:not(:disabled):not(.disabled):active:focus {
    box-shadow: var(--bmp-focus);
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled,
.bg-primary,
.badge-primary {
    color: var(--bmp-button-text);
    background: var(--bmp-coral);
    border-color: var(--bmp-coral);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: var(--bmp-button-text);
    background: var(--bmp-coral-hover);
    border-color: var(--bmp-coral-hover);
}

.btn-secondary,
.btn-dark {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
    border-color: var(--bmp-dark-blue);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-dark:hover,
.btn-dark:focus {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue-hover);
    border-color: var(--bmp-dark-blue-hover);
}

.btn-outline-primary {
    color: var(--bmp-dark-blue);
    background: transparent;
    border-color: var(--bmp-coral);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: var(--bmp-button-text);
    background: var(--bmp-coral);
    border-color: var(--bmp-coral);
}

.btn-link {
    color: var(--bmp-deep-blue);
}

.btn-link:hover,
.btn-link:focus {
    color: var(--bmp-dark-blue);
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 36px;
    border-radius: var(--bmp-radius-sm);
}

/*
 * Nexus applies higher-specificity hover colours to the homepage domain
 * search controls. Keep both branded actions visible in every state.
 */
body #frmDomainHomepage .btn-primary:not(#btnTransfer),
body #frmDomainHomepage .btn-primary:not(#btnTransfer):hover,
body #frmDomainHomepage .btn-primary:not(#btnTransfer):focus,
body #frmDomainHomepage .btn-primary:not(#btnTransfer):active {
    color: var(--bmp-white) !important;
    background: var(--bmp-coral) !important;
    border-color: var(--bmp-coral) !important;
    opacity: 1;
    visibility: visible;
}

body #frmDomainHomepage .btn-primary:not(#btnTransfer):hover,
body #frmDomainHomepage .btn-primary:not(#btnTransfer):focus,
body #frmDomainHomepage .btn-primary:not(#btnTransfer):active {
    background: var(--bmp-coral-hover) !important;
    border-color: var(--bmp-coral-hover) !important;
}

body #frmDomainHomepage #btnTransfer,
body #frmDomainHomepage #btnTransfer:hover,
body #frmDomainHomepage #btnTransfer:focus,
body #frmDomainHomepage #btnTransfer:active {
    color: var(--bmp-white) !important;
    background: var(--bmp-dark-blue) !important;
    border-color: var(--bmp-dark-blue) !important;
    opacity: 1;
    visibility: visible;
}

body #frmDomainHomepage #btnTransfer:hover,
body #frmDomainHomepage #btnTransfer:focus,
body #frmDomainHomepage #btnTransfer:active {
    background: var(--bmp-dark-blue-hover) !important;
    border-color: var(--bmp-dark-blue-hover) !important;
}

/* Forms */
.form-control,
.custom-select,
.input-group-text,
select,
textarea {
    min-height: 46px;
    color: var(--bmp-text);
    background-color: var(--bmp-white);
    border-color: var(--bmp-border);
    border-radius: var(--bmp-radius);
}

.form-control:hover,
.custom-select:hover {
    border-color: var(--bmp-border-strong);
}

.form-control:focus,
.custom-select:focus,
select:focus,
textarea:focus {
    color: var(--bmp-text);
    background: var(--bmp-white);
    border-color: var(--bmp-light-blue);
    box-shadow: var(--bmp-focus);
}

.form-control::placeholder {
    color: #95a2ad;
}

.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 > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child),
.input-group > .input-group-prepend > .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

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

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--bmp-coral);
}

/* Cards, panels and menus */
.card,
.panel,
.modal-content,
.dropdown-menu,
.list-group,
.invoice-container,
.client-home-cards .card,
.tiles .tile {
    background: var(--bmp-white);
    border-color: var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: var(--bmp-shadow);
}

/*
 * Dashboard summary tiles.
 * Nexus uses a no-gutters row by default, which makes adjacent tiles touch.
 */
.tiles .bmp-summary-tiles {
    margin-right: -8px;
    margin-bottom: -16px;
    margin-left: -8px;
}

.tiles .bmp-summary-tiles > [class*="col-"] {
    margin-bottom: 16px;
    padding-right: 8px;
    padding-left: 8px;
}

/*
 * Dashboard fallback for installations still rendering Nexus's parent
 * clientareahome.tpl. The child template removes the WHMCS Tickets tile, but
 * these selectors also remove it from the parent markup and rebalance the
 * remaining Services, Domains and Invoices tiles.
 */
.tiles .row > [class*="col-"]:has(> a[href*="action=supporttickets"]) {
    display: none !important;
}

.tiles
    .row:has(> [class*="col-"] > a[href*="action=supporttickets"])
    > [class*="col-"]:not(:has(> a[href*="action=supporttickets"])) {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.bmp-dashboard-panels > [class*="col-"]:only-child {
    flex: 0 0 100%;
    max-width: 100%;
}

/*
 * Keep domain registration visually aligned with the full-width active
 * products/services panel while retaining a comfortable form line length.
 */
.bmp-dashboard-panels > .bmp-domain-panel {
    flex: 0 0 100%;
    max-width: 100%;
}

/*
 * Parent-template fallback: remove the two unused WHMCS dashboard panels and
 * make Register a New Domain span the complete content column.
 */
.client-home-cards
    .row
    > [class*="col-"]:has(> [menuitemname="Recent Support Tickets"]),
.client-home-cards
    .row
    > [class*="col-"]:has(> [menuitemname="Recent News"]) {
    display: none !important;
}

.client-home-cards
    .row
    > [class*="col-"]:has(> [menuitemname="Register a New Domain"]) {
    flex: 0 0 100%;
    max-width: 100%;
}

.client-home-cards
    div[menuitemname="Register a New Domain"]
    #frmDomainHomepage {
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.client-home-cards
    div[menuitemname="Register a New Domain"]
    .card-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 767.98px) {
    .tiles
        .row:has(> [class*="col-"] > a[href*="action=supporttickets"])
        > [class*="col-"]:not(:has(> a[href*="action=supporttickets"])) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.card-header,
.card-footer,
.panel-heading,
.panel-footer {
    background: var(--bmp-surface-soft);
    border-color: var(--bmp-border);
}

.card-header:first-child,
.panel-heading:first-child {
    border-radius: var(--bmp-radius) var(--bmp-radius) 0 0;
}

.card-footer:last-child,
.panel-footer:last-child {
    border-radius: 0 0 var(--bmp-radius) var(--bmp-radius);
}

.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--bmp-dark-blue);
    background: var(--bmp-surface-soft);
}

.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active {
    color: var(--bmp-dark-blue);
    background: rgba(255, 111, 97, 0.2);
    border-color: rgba(255, 111, 97, 0.35);
}

/* Navigation */
.navbar,
.header,
.main-navbar {
    font-family: "Hauora", Arial, sans-serif;
}

.navbar-brand img,
.header .logo img {
    max-height: 48px;
}

.navbar-light .navbar-nav .nav-link,
.nav-link {
    color: var(--bmp-dark-blue);
    font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.nav-link:hover,
.nav-link:focus {
    color: var(--bmp-deep-blue);
}

.nav-pills .nav-link {
    border-radius: var(--bmp-radius);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: var(--bmp-button-text);
    background: var(--bmp-coral);
}

.nav-tabs .nav-link {
    color: var(--bmp-text-muted);
    border-radius: var(--bmp-radius) var(--bmp-radius) 0 0;
}

.nav-tabs .nav-link.active {
    color: var(--bmp-dark-blue);
    border-color: var(--bmp-border) var(--bmp-border) var(--bmp-white);
}

.primary-bg-color,
.bg-dark {
    background-color: var(--bmp-dark-blue) !important;
}

/*
 * Compact portal header.
 * Search and support actions are intentionally omitted because help content is
 * available through the Knowledgebase and support is provided through live chat.
 */
.bmp-brand-bar {
    min-height: 88px;
    padding: 1rem 0;
    background: var(--bmp-white);
}

.bmp-brand-bar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bmp-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    padding: 0;
}

.bmp-brand .logo-img {
    width: auto;
    max-width: 240px;
    max-height: 52px;
}

.bmp-brand-bar .toolbar {
    flex: 0 0 auto;
}

.bmp-brand-bar .toolbar .nav-item + .nav-item {
    margin-left: 0.5rem;
}

.bmp-brand-bar .cart-btn,
.bmp-brand-bar .bmp-menu-toggle {
    position: relative;
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    color: var(--bmp-dark-blue);
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
}

.bmp-brand-bar .cart-btn:hover,
.bmp-brand-bar .cart-btn:focus,
.bmp-brand-bar .bmp-menu-toggle:hover,
.bmp-brand-bar .bmp-menu-toggle:focus {
    color: var(--bmp-deep-blue);
    background: var(--bmp-surface-soft);
    border-color: var(--bmp-border-strong);
}

.bmp-brand-bar .cart-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

.bmp-primary-nav {
    background: var(--bmp-white);
    border-top: 1px solid var(--bmp-border);
}

@media (max-width: 575.98px) {
    .bmp-brand-bar {
        min-height: 74px;
        padding: 0.75rem 0;
    }

    .bmp-brand .logo-img {
        max-width: 180px;
        max-height: 44px;
    }
}

/* Tables and pagination */
.table {
    color: var(--bmp-text);
}

.table thead th {
    color: var(--bmp-dark-blue);
    background: var(--bmp-surface-soft);
    border-color: var(--bmp-border);
    font-weight: 700;
}

.table td,
.table th {
    border-color: var(--bmp-border);
}

.page-link {
    color: var(--bmp-deep-blue);
    border-color: var(--bmp-border);
}

.page-link:hover,
.page-link:focus {
    color: var(--bmp-dark-blue);
    background: var(--bmp-surface-soft);
    border-color: var(--bmp-border-strong);
}

.page-item.active .page-link {
    color: var(--bmp-button-text);
    background: var(--bmp-coral);
    border-color: var(--bmp-coral);
}

/* Status and feedback */
.alert {
    border: 1px solid transparent;
    border-radius: var(--bmp-radius);
}

.alert-info {
    color: #01465f;
    background: #e8f6fc;
    border-color: #b8e2f4;
}

.alert-success {
    color: #155d36;
    background: #eaf7ef;
    border-color: #bfe4ce;
}

.alert-warning {
    color: #714b00;
    background: #fff7df;
    border-color: #f1d898;
}

.alert-danger {
    color: #84252d;
    background: #fff0f1;
    border-color: #efc0c4;
}

.badge {
    padding: 0.45em 0.7em;
    border-radius: 999px;
    font-family: "Hauora", Arial, sans-serif;
    font-weight: 700;
}

.text-primary {
    color: var(--bmp-deep-blue) !important;
}

.border-primary {
    border-color: var(--bmp-coral) !important;
}

/* Branded client-area pages */
.bmp-page {
    width: 100%;
    margin: 0 auto 3rem;
}

.bmp-page *,
.bmp-page *::before,
.bmp-page *::after {
    box-sizing: border-box;
}

.bmp-page-hero {
    position: relative;
    display: flex;
    gap: 38px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
    padding: 38px 42px;
    overflow: hidden;
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
    border-radius: var(--bmp-radius);
    box-shadow: var(--bmp-shadow);
    isolation: isolate;
}

.bmp-page-hero::after {
    position: absolute;
    right: -64px;
    bottom: -96px;
    z-index: -1;
    width: 230px;
    height: 230px;
    content: "";
    background: rgba(65, 181, 232, 0.12);
    border: 42px solid rgba(255, 255, 255, 0.045);
    border-radius: 999px;
}

.bmp-page-hero--compact {
    min-height: 220px;
}

.bmp-page-hero__content {
    max-width: 650px;
}

.bmp-page-kicker,
.bmp-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--bmp-deep-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bmp-page-hero .bmp-page-kicker {
    color: var(--bmp-light-blue);
}

.bmp-page-hero h1 {
    margin: 0 0 12px;
    color: var(--bmp-white);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
}

.bmp-page-hero p {
    max-width: 630px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}

.bmp-page-hero__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: flex-end;
}

.bmp-page-hero__actions .btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
}

.bmp-page-hero__actions .btn-secondary {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
    border-color: var(--bmp-dark-blue);
}

.bmp-page-hero__actions .btn-secondary:hover,
.bmp-page-hero__actions .btn-secondary:focus {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue-hover);
    border-color: var(--bmp-dark-blue-hover);
}

.bmp-page-hero__note {
    display: flex;
    flex: 0 1 370px;
    gap: 13px;
    align-items: flex-start;
    padding: 17px 19px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--bmp-radius);
    font-size: 0.84rem;
    line-height: 1.55;
}

.bmp-page-hero__note i {
    margin-top: 3px;
    color: var(--bmp-light-blue);
}

.bmp-section-heading {
    display: flex;
    gap: 28px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bmp-section-heading h2,
.bmp-data-card__header h2,
.bmp-form-card__intro h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.bmp-section-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--bmp-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: right;
}

/* Dashboard */
.bmp-account-overview {
    margin-bottom: 42px;
}

.bmp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bmp-stat-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 14px;
    align-items: center;
    min-height: 124px;
    padding: 22px;
    overflow: hidden;
    color: var(--bmp-dark-blue);
    text-decoration: none;
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.065);
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
        transform 0.18s ease;
}

.bmp-stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: var(--bmp-light-blue);
}

.bmp-stat-card--teal::before {
    background: var(--bmp-teal);
}

.bmp-stat-card--coral::before {
    background: var(--bmp-coral);
}

.bmp-stat-card--dark::before {
    background: var(--bmp-dark-blue);
}

.bmp-stat-card:hover,
.bmp-stat-card:focus {
    color: var(--bmp-dark-blue);
    text-decoration: none;
    border-color: var(--bmp-border-strong);
    box-shadow: var(--bmp-shadow-hover);
    transform: translateY(-3px);
}

.bmp-stat-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--bmp-deep-blue);
    background: #e8f6fc;
    border-radius: var(--bmp-radius-sm);
    font-size: 1.05rem;
}

.bmp-stat-card--teal .bmp-stat-card__icon {
    color: #237a7c;
    background: #e7f6f5;
}

.bmp-stat-card--coral .bmp-stat-card__icon {
    color: #b84138;
    background: #fff0ee;
}

.bmp-stat-card--dark .bmp-stat-card__icon {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
}

.bmp-stat-card__content {
    display: block;
    min-width: 0;
}

.bmp-stat-card__content strong {
    display: block;
    margin-bottom: 2px;
    color: var(--bmp-dark-blue);
    font-family: "Kollektif", "Hauora", Arial, sans-serif;
    font-size: 1.85rem;
    line-height: 1;
}

.bmp-stat-card__content span {
    display: block;
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.bmp-stat-card__arrow {
    color: var(--bmp-border-strong);
    font-size: 0.8rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.bmp-stat-card:hover .bmp-stat-card__arrow,
.bmp-stat-card:focus .bmp-stat-card__arrow {
    color: var(--bmp-coral);
    transform: translateX(3px);
}

.bmp-addon-output {
    margin-bottom: 28px;
}

.bmp-dashboard-content {
    margin-top: 8px;
}

.bmp-home-panel {
    margin-bottom: 20px;
    overflow: hidden;
    border-top: 0 !important;
}

.bmp-home-panel .card-header {
    padding: 18px 20px;
    background: var(--bmp-white);
}

.bmp-home-panel .card-title {
    color: var(--bmp-dark-blue);
    font-size: 1.05rem;
}

.bmp-home-panel .card-title > i {
    color: var(--bmp-deep-blue);
}

.bmp-home-panel .list-group {
    border-radius: 0;
    box-shadow: none;
}

.bmp-home-panel .list-group-item {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--bmp-text);
    background: var(--bmp-white);
    border-color: var(--bmp-border);
    font-size: 0.86rem;
    font-weight: 500;
}

.bmp-home-panel .list-group-item > span:first-child {
    min-width: 0;
}

.bmp-home-panel .list-group-item i {
    color: var(--bmp-deep-blue);
}

.bmp-home-panel .card-footer {
    padding: 14px 20px;
}

/* Data tables and list pages */
.bmp-data-card {
    overflow: hidden;
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: var(--bmp-shadow);
}

.bmp-data-card__header {
    display: flex;
    gap: 34px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 28px 30px 24px;
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-data-card__header > div:first-child {
    max-width: 650px;
}

.bmp-data-card__header > p,
.bmp-data-card__header > div:first-child > p {
    max-width: 470px;
    margin: 7px 0 0;
    color: var(--bmp-text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.bmp-table-wrap {
    margin: 0;
    overflow-x: auto;
}

.bmp-data-card .dataTables_wrapper {
    padding: 0;
}

.bmp-data-card .dataTables_wrapper > .row:first-child {
    align-items: center;
    margin: 0;
    padding: 18px 22px;
    background: var(--bmp-page);
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-data-card .dataTables_wrapper > .row:last-child {
    align-items: center;
    margin: 0;
    padding: 18px 22px;
    background: var(--bmp-page);
    border-top: 1px solid var(--bmp-border);
}

.bmp-data-card .dataTables_length,
.bmp-data-card .dataTables_filter,
.bmp-data-card .dataTables_info,
.bmp-data-card .dataTables_paginate {
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
}

.bmp-data-card .dataTables_filter input,
.bmp-data-card .dataTables_length select {
    min-height: 38px;
    margin-left: 8px;
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
}

.bmp-data-table {
    min-width: 760px;
    margin: 0 !important;
}

.bmp-data-table thead th {
    padding: 15px 16px;
    color: var(--bmp-text-muted);
    background: var(--bmp-white);
    border-top: 0;
    border-bottom: 1px solid var(--bmp-border);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bmp-data-table tbody td {
    padding: 18px 16px;
    vertical-align: middle;
    background: var(--bmp-white);
    border-top: 1px solid var(--bmp-border);
    font-size: 0.86rem;
}

.bmp-data-table tbody tr:first-child td {
    border-top: 0;
}

.bmp-clickable-row {
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.bmp-data-table tbody .bmp-clickable-row:hover td {
    background: #f8fbfc;
}

.bmp-security-cell {
    width: 58px;
}

.bmp-service-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    place-items: center;
    color: var(--bmp-deep-blue);
    background: #e8f6fc;
    border-radius: 9px;
    font-size: 0.78rem;
}

.bmp-primary-cell strong {
    display: block;
    margin-bottom: 4px;
    color: var(--bmp-dark-blue);
    font-size: 0.92rem;
}

.bmp-primary-cell > a {
    display: block;
    width: fit-content;
    max-width: 330px;
    overflow: hidden;
    color: var(--bmp-deep-blue);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmp-primary-cell > span {
    display: block;
    font-size: 0.78rem;
}

.bmp-price-cell strong,
.bmp-price-cell small {
    display: block;
}

.bmp-price-cell strong {
    color: var(--bmp-dark-blue);
}

.bmp-date-cell {
    color: var(--bmp-text-muted);
    white-space: nowrap;
}

.bmp-status-cell {
    position: relative;
    min-width: 145px;
    padding-right: 38px !important;
}

.bmp-status-cell .status,
.bmp-service-status {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 0.48em 0.76em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.bmp-row-arrow {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--bmp-border-strong);
    font-size: 0.7rem;
    transform: translateY(-50%);
}

.bmp-table-loading {
    padding: 30px;
}

.bmp-table-loading p {
    margin: 0;
}

.bmp-page .btn-default {
    color: var(--bmp-dark-blue);
    background: var(--bmp-white);
    border-color: var(--bmp-border-strong);
}

.bmp-page .btn-default:hover,
.bmp-page .btn-default:focus,
.bmp-page .btn-default:active {
    color: var(--bmp-dark-blue);
    background: var(--bmp-surface-soft);
    border-color: var(--bmp-deep-blue);
}

.bmp-bulk-actions {
    flex: 0 1 auto;
}

.bmp-bulk-actions__label {
    display: block;
    margin-bottom: 7px;
    color: var(--bmp-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.bmp-bulk-actions .btn-group {
    flex-wrap: wrap;
}

.bmp-bulk-actions .btn {
    white-space: nowrap;
}

.bmp-select-cell {
    width: 38px;
    text-align: center;
}

.bmp-select-cell input {
    width: 17px;
    height: 17px;
    margin: 0;
}

.bmp-renewal-state {
    display: inline-flex !important;
    gap: 4px;
    align-items: center;
    width: auto !important;
    margin-top: 5px;
    color: var(--bmp-text-muted);
    font-size: 0.75rem !important;
}

.bmp-renewal-state.is-on i {
    color: #278456;
}

.bmp-renewal-state.is-off i {
    color: #b5434c;
}

.bmp-expiry-warning {
    display: block;
    margin-top: 7px;
    color: #8a5d00;
    font-size: 0.7rem;
    font-weight: 700;
}

.bmp-help-strip {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    margin-top: 24px;
    padding: 20px 22px;
    background: var(--bmp-surface-soft);
    border: 1px solid #d2e6e8;
    border-radius: var(--bmp-radius);
}

.bmp-help-strip__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--bmp-deep-blue);
    background: var(--bmp-white);
    border-radius: var(--bmp-radius-sm);
}

.bmp-help-strip strong {
    display: block;
    margin-bottom: 3px;
    color: var(--bmp-dark-blue);
}

.bmp-help-strip p {
    margin: 0;
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Account details */
.bmp-account-form {
    display: grid;
    gap: 22px;
}

.bmp-form-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.7fr);
    overflow: hidden;
}

.bmp-form-card__intro {
    padding: 30px 27px;
    background: var(--bmp-surface-soft);
    border-right: 1px solid var(--bmp-border);
}

.bmp-form-card__intro p {
    margin: 8px 0 0;
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.bmp-form-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--bmp-deep-blue);
    background: #dff2fa;
    border-radius: var(--bmp-radius-sm);
}

.bmp-form-card__icon--teal {
    color: #237a7c;
    background: #dff3f2;
}

.bmp-form-card__icon--dark {
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
}

.bmp-form-card__icon--blue {
    color: #07587a;
    background: #dff2fa;
}

.bmp-form-card__icon--coral {
    color: #af3e35;
    background: #ffdfdc;
}

.bmp-form-card__fields {
    min-width: 0;
    padding: 30px 30px 14px;
}

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

.bmp-form-card .col-form-label {
    padding-top: 0;
    padding-bottom: 7px;
    color: var(--bmp-dark-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.bmp-form-card .form-control,
.bmp-form-card select,
.bmp-form-card textarea,
.bmp-custom-field input,
.bmp-custom-field select,
.bmp-custom-field textarea {
    width: 100%;
}

.bmp-form-card input:disabled,
.bmp-form-card select:disabled,
.bmp-form-card textarea:disabled {
    color: #7f8b96;
    background: #f1f4f6;
    cursor: not-allowed;
}

.bmp-preference-group h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.bmp-preference-group > p {
    color: var(--bmp-text-muted);
    font-size: 0.86rem;
}

.bmp-preference-group--divided {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--bmp-border);
}

.bmp-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bmp-check-option,
.bmp-toggle-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 13px 14px;
    color: var(--bmp-text);
    background: var(--bmp-page);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.bmp-check-option input,
.bmp-toggle-option input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
}

.bmp-form-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.055);
}

.bmp-form-actions p {
    margin: 0;
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
}

.bmp-form-actions > div {
    display: flex;
    gap: 9px;
}

/* Service details */
.bmp-service-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    margin-bottom: 30px;
    overflow: hidden;
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: var(--bmp-shadow);
}

.bmp-service-summary__main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 330px;
    padding: 38px 40px;
    overflow: hidden;
    color: var(--bmp-white);
    background: var(--bmp-dark-blue);
    isolation: isolate;
}

.bmp-service-summary__main::after {
    position: absolute;
    right: -80px;
    bottom: -125px;
    z-index: -1;
    width: 280px;
    height: 280px;
    content: "";
    border: 52px solid rgba(65, 181, 232, 0.11);
    border-radius: 999px;
}

.bmp-service-summary__main .bmp-page-kicker {
    color: var(--bmp-light-blue);
}

.bmp-service-identity {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 17px 0 19px;
}

.bmp-service-identity__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--bmp-dark-blue);
    background: var(--bmp-light-blue);
    border-radius: var(--bmp-radius-sm);
    font-size: 1.25rem;
}

.bmp-service-identity h1 {
    margin: 0 0 6px;
    color: var(--bmp-white);
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.bmp-service-identity p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
}

.bmp-service-identity a {
    color: var(--bmp-white);
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.bmp-service-status {
    gap: 7px;
    margin-bottom: 26px;
    color: var(--bmp-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bmp-service-status__dot {
    width: 7px;
    height: 7px;
    background: var(--bmp-light-blue);
    border-radius: 999px;
}

.bmp-service-status.product-status-active .bmp-service-status__dot,
.bmp-service-status.product-status-completed .bmp-service-status__dot {
    background: #62d89a;
}

.bmp-service-status.product-status-pending .bmp-service-status__dot {
    background: #f2c45d;
}

.bmp-service-status.product-status-suspended .bmp-service-status__dot,
.bmp-service-status.product-status-cancelled .bmp-service-status__dot,
.bmp-service-status.product-status-terminated .bmp-service-status__dot,
.bmp-service-status.product-status-fraud .bmp-service-status__dot {
    background: #ff7e83;
}

.bmp-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.bmp-service-actions .btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.bmp-service-actions .btn-secondary {
    color: var(--bmp-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.48);
}

.bmp-service-actions .btn-secondary:hover,
.bmp-service-actions .btn-secondary:focus {
    color: var(--bmp-dark-blue);
    background: var(--bmp-white);
    border-color: var(--bmp-white);
}

.bmp-service-actions .btn-outline-danger {
    color: #ffd7d9;
    border-color: rgba(255, 158, 163, 0.52);
}

.bmp-service-actions .btn-outline-danger:hover,
.bmp-service-actions .btn-outline-danger:focus {
    color: #84252d;
    background: #fff0f1;
    border-color: #fff0f1;
}

.bmp-service-summary__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    padding: 24px 28px;
}

.bmp-service-meta-item {
    min-width: 0;
    padding: 17px 15px;
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-service-meta-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.bmp-service-meta-item span,
.bmp-service-meta-item strong {
    display: block;
}

.bmp-service-meta-item span {
    margin-bottom: 5px;
    color: var(--bmp-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.bmp-service-meta-item strong {
    overflow-wrap: anywhere;
    color: var(--bmp-dark-blue);
    font-size: 0.9rem;
}

.bmp-service-meta-item--warning {
    color: #84252d;
    background: #fff0f1;
    border-radius: var(--bmp-radius-sm);
}

.bmp-hook-output {
    margin-bottom: 24px;
}

.bmp-service-tabs {
    gap: 5px;
    margin-top: 28px;
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-service-tabs .nav-link {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 46px;
    padding: 11px 15px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 0.8rem;
}

.bmp-service-tabs .nav-link:hover,
.bmp-service-tabs .nav-link:focus {
    color: var(--bmp-dark-blue);
    background: var(--bmp-surface-soft);
    border-bottom-color: rgba(255, 111, 97, 0.35);
}

.bmp-service-tabs .nav-link.active {
    color: var(--bmp-dark-blue);
    background: var(--bmp-white);
    border-bottom-color: var(--bmp-coral);
}

.bmp-service-tab-content {
    padding: 30px;
    border: 1px solid var(--bmp-border);
    border-top: 0;
    border-radius: 0 0 var(--bmp-radius) var(--bmp-radius);
    box-shadow: 0 10px 28px rgba(44, 62, 80, 0.06);
}

.bmp-service-tab-content > .tab-pane > .row {
    max-width: 880px;
    margin: 0 auto;
    padding: 13px 0;
    border-bottom: 1px solid var(--bmp-border);
}

.bmp-service-tab-content > .tab-pane > .row:last-of-type {
    border-bottom: 0;
}

.bmp-service-tab-content .module-client-area {
    max-width: 100%;
    overflow-x: auto;
}

.bmp-secondary-tab {
    padding: 30px 0;
}

.bmp-secondary-tab__heading {
    margin-bottom: 24px;
}

.bmp-secondary-tab__heading h2 {
    margin: 0 0 7px;
    font-size: 1.65rem;
}

.bmp-secondary-tab__heading p {
    margin: 0;
    color: var(--bmp-text-muted);
}

.bmp-download-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
    padding: 20px;
    background: var(--bmp-white);
    border: 1px solid var(--bmp-border);
    border-radius: var(--bmp-radius);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.055);
}

.bmp-download-card__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--bmp-deep-blue);
    background: #e8f6fc;
    border-radius: var(--bmp-radius-sm);
}

.bmp-download-card h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.bmp-download-card p {
    margin: 0;
    color: var(--bmp-text-muted);
    font-size: 0.82rem;
}

.bmp-addon-card,
.bmp-password-card {
    overflow: hidden;
}

.bmp-addon-card .card-header {
    color: var(--bmp-dark-blue);
    font-weight: 700;
}

.bmp-password-card .card-body {
    padding: 30px;
}

@media (max-width: 1199.98px) {
    .bmp-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmp-form-card {
        grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
    }

    .bmp-service-summary {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    }
}

@media (max-width: 991.98px) {
    .bmp-page-hero {
        align-items: flex-start;
        padding: 34px;
    }

    .bmp-page-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bmp-page-hero__actions .btn {
        width: 100%;
    }

    .bmp-data-card__header,
    .bmp-data-card__header--domains {
        display: block;
    }

    .bmp-bulk-actions {
        margin-top: 20px;
    }

    .bmp-form-card {
        grid-template-columns: 1fr;
    }

    .bmp-form-card__intro {
        border-right: 0;
        border-bottom: 1px solid var(--bmp-border);
    }

    .bmp-form-card__icon {
        margin-bottom: 16px;
    }

    .bmp-service-summary {
        grid-template-columns: 1fr;
    }

    .bmp-service-summary__main {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .bmp-page {
        margin-bottom: 2rem;
    }

    .bmp-page-hero {
        display: block;
        min-height: 0;
        margin-bottom: 30px;
        padding: 30px 26px;
    }

    .bmp-page-hero__actions,
    .bmp-page-hero__note {
        width: 100%;
        margin-top: 24px;
    }

    .bmp-page-hero__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .bmp-page-hero__actions .btn {
        width: auto;
    }

    .bmp-section-heading {
        display: block;
    }

    .bmp-section-heading > p {
        margin-top: 8px;
        text-align: left;
    }

    .bmp-stat-grid {
        grid-template-columns: 1fr;
    }

    .bmp-stat-card {
        min-height: 104px;
    }

    .bmp-data-card__header {
        padding: 24px 22px 20px;
    }

    .bmp-help-strip {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .bmp-help-strip .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bmp-form-card__intro,
    .bmp-form-card__fields {
        padding: 24px 22px;
    }

    .bmp-form-card__fields {
        padding-bottom: 8px;
    }

    .bmp-check-list {
        grid-template-columns: 1fr;
    }

    .bmp-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bmp-form-actions > div {
        flex-wrap: wrap;
    }

    .bmp-service-summary__main {
        padding: 32px 26px;
    }

    .bmp-service-summary__meta {
        padding: 18px;
    }

    .bmp-service-tab-content {
        padding: 24px 20px;
    }

    .bmp-service-tab-content > .tab-pane > .row > [class*="col-"] {
        text-align: left !important;
    }

    .bmp-service-tab-content > .tab-pane > .row > [class*="col-"]:first-child {
        margin-bottom: 4px;
    }

    .bmp-download-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .bmp-download-card .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .bmp-page-hero__actions {
        flex-direction: column;
    }

    .bmp-page-hero__actions .btn {
        width: 100%;
    }

    .bmp-stat-card {
        padding: 18px;
    }

    .bmp-home-panel .card-title .float-right {
        float: none !important;
        display: block;
        margin: 10px 0 0;
    }

    .bmp-bulk-actions .btn-group,
    .bmp-bulk-actions .btn-group > .btn,
    .bmp-bulk-actions .btn-group > .btn-group {
        width: 100%;
    }

    .bmp-bulk-actions .btn {
        justify-content: flex-start;
        border-radius: var(--bmp-radius-sm) !important;
    }

    .bmp-bulk-actions .btn-group {
        gap: 6px;
    }

    .bmp-service-identity {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .bmp-service-identity__icon {
        width: 48px;
        height: 48px;
    }

    .bmp-service-actions,
    .bmp-service-actions .btn {
        width: 100%;
    }

    .bmp-service-actions .btn {
        justify-content: center;
    }

    .bmp-service-summary__meta {
        grid-template-columns: 1fr;
    }

    .bmp-service-meta-item,
    .bmp-service-meta-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--bmp-border);
    }

    .bmp-service-meta-item:last-child {
        border-bottom: 0;
    }
}

/* Login page */
.bmp-login {
    width: 100%;
    margin: 3.5rem auto;
}

.bmp-login *,
.bmp-login *::before,
.bmp-login *::after {
    box-sizing: border-box;
}

.bmp-login__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    width: min(100%, 1080px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--bmp-white);
    border: 1px solid rgba(2, 97, 134, 0.12);
    border-radius: var(--bmp-radius);
    box-shadow: 0 24px 70px rgba(2, 97, 134, 0.14);
}

.bmp-login__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    padding: 54px 48px;
    overflow: hidden;
    color: var(--bmp-white);
    background: var(--bmp-deep-blue);
    isolation: isolate;
}

.bmp-login__brand-label {
    display: inline-block;
    margin-bottom: 48px;
    color: var(--bmp-white);
    font-family: "Kollektif", "Hauora", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.085em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bmp-login__intro h1 {
    max-width: 430px;
    margin: 0 0 18px;
    color: var(--bmp-white);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.bmp-login__lead {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 1.02rem;
    line-height: 1.7;
}

.bmp-login__benefits {
    display: grid;
    gap: 18px;
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
}

.bmp-login__benefit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.bmp-login__benefit-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--bmp-light-blue);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--bmp-radius-sm);
}

.bmp-login__benefit strong {
    display: block;
    margin-bottom: 2px;
    color: var(--bmp-white);
    font-size: 0.94rem;
    font-weight: 700;
}

.bmp-login__benefit span {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.45;
}

.bmp-login__assurance {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 44px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
}

.bmp-login__assurance i {
    color: var(--bmp-light-blue);
}

.bmp-login__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 54px 58px;
}

.bmp-login__heading {
    margin-bottom: 30px;
}

.bmp-login__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--bmp-deep-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bmp-login__heading h2 {
    margin: 0 0 10px;
    color: var(--bmp-dark-blue);
    font-size: 2rem;
    line-height: 1.15;
}

.bmp-login__heading p {
    margin: 0;
    color: var(--bmp-text-muted);
    line-height: 1.65;
}

.bmp-login__form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.bmp-login__field {
    margin-bottom: 21px;
}

.bmp-login__label-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bmp-login__label {
    margin: 0;
    color: var(--bmp-dark-blue);
    font-size: 0.86rem;
    font-weight: 700;
}

.bmp-login__forgot {
    color: var(--bmp-deep-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.bmp-login__forgot:hover,
.bmp-login__forgot:focus {
    color: var(--bmp-dark-blue);
    text-decoration: underline;
}

.bmp-login__input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.bmp-login__input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 3;
    color: #7f8c9d;
    font-size: 0.9rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.bmp-login__input.form-control {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 45px;
    border-radius: var(--bmp-radius);
}

.bmp-login__reveal {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 4;
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    place-items: center;
    color: #718096;
    background: transparent;
    border: 0;
    border-radius: var(--bmp-radius-sm);
    transform: translateY(-50%);
}

.bmp-login__reveal:hover,
.bmp-login__reveal:focus {
    color: var(--bmp-dark-blue);
    background: var(--bmp-page);
    outline: 0;
}

.bmp-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 24px;
}

.bmp-login__remember {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    color: #4e5d70;
    font-size: 0.86rem;
    cursor: pointer;
}

.bmp-login__remember input {
    width: 17px;
    height: 17px;
    margin: 0;
}

.bmp-login__submit {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    color: var(--bmp-button-text);
    background: var(--bmp-coral);
    border: 1px solid var(--bmp-coral);
    border-radius: var(--bmp-radius);
    box-shadow: 0 10px 24px rgba(255, 111, 97, 0.24);
    font-size: 0.92rem;
    font-weight: 800;
    transition: background 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease, transform 0.18s ease;
}

.bmp-login__submit:hover,
.bmp-login__submit:focus {
    color: var(--bmp-button-text);
    background: var(--bmp-coral-hover);
    border-color: var(--bmp-coral-hover);
    box-shadow: 0 12px 28px rgba(255, 111, 97, 0.3);
    outline: 0;
    transform: translateY(-1px);
}

.bmp-login__submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.bmp-login__register {
    margin: 26px 0 0;
    color: var(--bmp-text-muted);
    font-size: 0.86rem;
    text-align: center;
}

.bmp-login__register a {
    color: var(--bmp-deep-blue);
    font-weight: 700;
    text-decoration: none;
}

.bmp-login__linked {
    margin-top: 22px;
}

.bmp-login__help {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 15px 17px;
    color: #566579;
    background: var(--bmp-surface-soft);
    border-radius: var(--bmp-radius);
    font-size: 0.8rem;
    line-height: 1.5;
}

.bmp-login__help i {
    margin-top: 3px;
    color: var(--bmp-coral);
}

.bmp-login__help strong {
    color: var(--bmp-dark-blue);
    font-weight: 700;
}

.bmp-login .alert {
    margin-bottom: 22px;
}

.bmp-login .captcha-container,
.bmp-login .recaptcha-container {
    margin-bottom: 22px;
}

@media (max-width: 991.98px) {
    .bmp-login {
        margin: 2rem auto;
    }

    .bmp-login__shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .bmp-login__intro {
        min-height: auto;
        padding: 42px;
    }

    .bmp-login__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .bmp-login__benefit {
        grid-template-columns: 1fr;
    }

    .bmp-login__assurance {
        margin-top: 34px;
    }

    .bmp-login__content {
        padding: 46px 48px;
    }
}

@media (max-width: 575.98px) {
    .bmp-login {
        margin: 1rem auto 2rem;
    }

    .bmp-login__intro {
        padding: 34px 25px;
    }

    .bmp-login__brand-label {
        margin-bottom: 34px;
    }

    .bmp-login__intro h1 {
        font-size: 2rem;
    }

    .bmp-login__benefits {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .bmp-login__benefit {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .bmp-login__content {
        padding: 36px 24px;
    }

    .bmp-login__heading h2 {
        font-size: 1.75rem;
    }
}

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

/*
 * Final button-state safeguards.
 * Nexus and server modules add component-specific button rules after the
 * Bootstrap defaults. These selectors keep the portal hierarchy and contrast
 * consistent without changing warning, danger or disabled actions.
 */
body a.btn,
body button.btn {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
}

body .btn.disabled,
body .btn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

body .btn.btn-primary:not(.btn-outline-primary),
body .btn.btn-primary:not(.btn-outline-primary):visited {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-coral) !important;
    background-image: none !important;
    border-color: var(--bmp-coral) !important;
}

body .btn.btn-primary:not(.btn-outline-primary):not(.disabled):not(:disabled):hover,
body .btn.btn-primary:not(.btn-outline-primary):not(.disabled):not(:disabled):focus,
body .btn.btn-primary:not(.btn-outline-primary):not(.disabled):not(:disabled):active,
body .btn.btn-primary:not(.btn-outline-primary):not(.disabled):not(:disabled).active,
body .show > .btn.btn-primary.dropdown-toggle {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-coral-hover) !important;
    background-image: none !important;
    border-color: var(--bmp-coral-hover) !important;
}

body .btn.btn-secondary,
body .btn.btn-secondary:visited,
body .btn.btn-dark,
body .btn.btn-dark:visited {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-dark-blue) !important;
    background-image: none !important;
    border-color: var(--bmp-dark-blue) !important;
}

body .btn.btn-secondary:not(.disabled):not(:disabled):hover,
body .btn.btn-secondary:not(.disabled):not(:disabled):focus,
body .btn.btn-secondary:not(.disabled):not(:disabled):active,
body .btn.btn-secondary:not(.disabled):not(:disabled).active,
body .show > .btn.btn-secondary.dropdown-toggle,
body .btn.btn-dark:not(.disabled):not(:disabled):hover,
body .btn.btn-dark:not(.disabled):not(:disabled):focus,
body .btn.btn-dark:not(.disabled):not(:disabled):active,
body .btn.btn-dark:not(.disabled):not(:disabled).active,
body .show > .btn.btn-dark.dropdown-toggle {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-dark-blue-hover) !important;
    background-image: none !important;
    border-color: var(--bmp-dark-blue-hover) !important;
}

body .btn.btn-default,
body .btn.btn-default:visited,
body .btn.btn-outline-secondary,
body .btn.btn-outline-secondary:visited {
    color: var(--bmp-dark-blue) !important;
    background-color: var(--bmp-white) !important;
    background-image: none !important;
    border-color: var(--bmp-border-strong) !important;
}

body .btn.btn-default:not(.disabled):not(:disabled):hover,
body .btn.btn-default:not(.disabled):not(:disabled):focus,
body .btn.btn-default:not(.disabled):not(:disabled):active,
body .btn.btn-default:not(.disabled):not(:disabled).active,
body .btn.btn-outline-secondary:not(.disabled):not(:disabled):hover,
body .btn.btn-outline-secondary:not(.disabled):not(:disabled):focus,
body .btn.btn-outline-secondary:not(.disabled):not(:disabled):active,
body .btn.btn-outline-secondary:not(.disabled):not(:disabled).active {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-dark-blue) !important;
    background-image: none !important;
    border-color: var(--bmp-dark-blue) !important;
}

body .btn.btn-primary *,
body .btn.btn-secondary *,
body .btn.btn-dark *,
body .btn.btn-default *,
body .btn.btn-outline-secondary * {
    color: inherit !important;
}

/*
 * Active product/service panel.
 * WHMCS renders module SSO actions, including cPanel, as a split btn-default
 * group. Treat that group as the primary action and keep View Details as the
 * lower-priority outlined action.
 */
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn-group {
    display: inline-flex;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn-group .btn,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn:not(.btn-view-details) {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-coral) !important;
    background-image: none !important;
    border-color: var(--bmp-coral) !important;
    opacity: 1 !important;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn-group .btn:not(.disabled):not(:disabled):hover,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn-group .btn:not(.disabled):not(:disabled):focus,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn-group .btn:not(.disabled):not(:disabled):active,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn:not(.btn-view-details):not(.disabled):not(:disabled):hover,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn:not(.btn-view-details):not(.disabled):not(:disabled):focus,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons > .btn:not(.btn-view-details):not(.disabled):not(:disabled):active {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-coral-hover) !important;
    background-image: none !important;
    border-color: var(--bmp-coral-hover) !important;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn-view-details,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn-view-details:visited {
    color: var(--bmp-dark-blue) !important;
    background-color: var(--bmp-white) !important;
    background-image: none !important;
    border-color: var(--bmp-dark-blue) !important;
    opacity: 1 !important;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn-view-details:not(.disabled):not(:disabled):hover,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn-view-details:not(.disabled):not(:disabled):focus,
body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn-view-details:not(.disabled):not(:disabled):active {
    color: var(--bmp-white) !important;
    background-color: var(--bmp-dark-blue) !important;
    background-image: none !important;
    border-color: var(--bmp-dark-blue) !important;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn:focus {
    box-shadow: var(--bmp-focus) !important;
}

body .primary-content .client-home-cards
    div[menuitemname="Active Products/Services"]
    .div-service-buttons .btn * {
    color: inherit !important;
}

/*
 * Order-form section headings.
 * Standard Cart renders these as narrow centred labels over a horizontal line.
 * Give domain names, Nameservers and equivalent checkout sections a deliberate
 * full-width hierarchy instead of an unexplained dark block.
 */
#order-standard_cart .sub-heading {
    display: block !important;
    clear: both;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 2rem 0 1.5rem !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    line-height: normal !important;
    text-align: left !important;
}

#order-standard_cart .sub-heading > span.primary-bg-color {
    position: static !important;
    top: auto !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    color: var(--bmp-dark-blue) !important;
    background: var(--bmp-surface-soft) !important;
    border: 0;
    border-left: 4px solid var(--bmp-coral);
    border-radius: 0 var(--bmp-radius-sm) var(--bmp-radius-sm) 0;
    box-shadow: none;
    font-family: "Kollektif", "Hauora", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

#order-standard_cart .sub-heading > span.primary-bg-color small {
    color: var(--bmp-text-muted) !important;
    font-family: "Hauora", Arial, sans-serif;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    #order-standard_cart .sub-heading {
        margin: 1.5rem 0 1.25rem !important;
    }

    #order-standard_cart .sub-heading > span.primary-bg-color {
        padding: 0.75rem 0.85rem !important;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    body .primary-content .client-home-cards
        div[menuitemname="Active Products/Services"]
        .div-service-buttons {
        width: 100%;
        margin-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    body .primary-content .client-home-cards
        div[menuitemname="Active Products/Services"]
        .div-service-buttons,
    body .primary-content .client-home-cards
        div[menuitemname="Active Products/Services"]
        .div-service-buttons > .btn-group,
    body .primary-content .client-home-cards
        div[menuitemname="Active Products/Services"]
        .div-service-buttons > .btn {
        width: 100%;
    }

    body .primary-content .client-home-cards
        div[menuitemname="Active Products/Services"]
        .div-service-buttons > .btn-group > .btn:first-child {
        flex: 1 1 auto;
    }
}

/*
 * Branded footer colour and link contrast.
 * Keep these values in CSS rather than adding presentation styles to footer.tpl.
 */
footer.bmp-site-footer {
    color: rgba(255, 255, 255, 0.86);
    background-color: var(--bmp-deep-blue) !important;
}

footer.bmp-site-footer h2,
footer.bmp-site-footer p {
    color: inherit;
}

footer.bmp-site-footer .bmp-footer__column h2 {
    color: var(--bmp-white);
}

footer.bmp-site-footer a,
footer.bmp-site-footer a:visited,
footer.bmp-site-footer .nav-link,
footer.bmp-site-footer .bmp-footer__support {
    color: var(--bmp-white) !important;
}

footer.bmp-site-footer a:hover,
footer.bmp-site-footer a:focus,
footer.bmp-site-footer .nav-link:hover,
footer.bmp-site-footer .nav-link:focus,
footer.bmp-site-footer .bmp-footer__support:hover,
footer.bmp-site-footer .bmp-footer__support:focus {
    color: var(--bmp-white) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

footer.bmp-site-footer .bmp-footer__support-icon {
    color: var(--bmp-white);
}

footer.bmp-site-footer .copyright {
    color: rgba(255, 255, 255, 0.72);
}

footer.bmp-site-footer .bmp-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
}

footer.bmp-site-footer .btn-outline-light {
    color: var(--bmp-white) !important;
    border-color: rgba(255, 255, 255, 0.65);
}

footer.bmp-site-footer .btn-outline-light:hover,
footer.bmp-site-footer .btn-outline-light:focus {
    color: var(--bmp-deep-blue) !important;
    background-color: var(--bmp-white);
    border-color: var(--bmp-white);
    text-decoration: none;
}
