/* Awas — dark minimal theme (child of Nexus).
 * Strategy: re-map Nexus' own design tokens to a dark palette, then flatten a few
 * things (shadows, heavy borders) — no new components, no new badges.           */

:root {
    color-scheme: dark;

    /* accent: soft pastel violet, used sparingly (primary action, links, focus) */
    --accent: #a79ee0;
    --accent-lifted: #b8b0ea;
    --accent-accented: #8f86cc;
    --accent-ink: #14131a;

    --white: #fff;
    --primary: var(--accent);
    --primary-lifted: var(--accent-lifted);
    --primary-accented: var(--accent-accented);
    --secondary: #8a8a96;
    --secondary-lifted: #9b9ba6;
    --secondary-accented: #b0b0ba;

    /* status colors: same hues, softened for dark */
    --success: #6fcf97;  --success-lifted: #86d9a9;  --success-accented: #52b87b;
    --info: #7fb2f5;     --info-lifted: #98c2f7;     --info-accented: #639ae0;
    --notice: var(--accent); --notice-lifted: var(--accent-lifted); --notice-accented: var(--accent-accented);
    --warning: #f0b35e;  --warning-lifted: #f4c27c;  --warning-accented: #d99a43;
    --error: #ef7b7b;    --error-lifted: #f39393;    --error-accented: #d96262;

    /* "grayscale" is what Nexus uses for solid buttons -> accent */
    --grayscale: var(--accent);
    --grayscale-lifted: var(--accent-lifted);
    --grayscale-accented: var(--accent-accented);
    --neutral: #8a8a96; --neutral-lifted: #9b9ba6; --neutral-accented: #b0b0ba;

    /* text */
    --text-inverted: var(--accent-ink);
    --text-muted: #6f6f7b;
    --text-lifted: #8d8d99;
    --text-accented: #b4b4be;
    --text: #e6e6ea;

    /* borders: hairlines */
    --border-muted: #1d1d23;
    --border: #25252d;
    --border-lifted: #34343e;
    --border-accented: #4a4a56;

    /* surfaces */
    --bg: #0d0d10;
    --bg-muted: #111115;
    --bg-lifted: #16161b;
    --bg-accented: #1e1e25;
    --bg-inverted: #0a0a0c;

    --neutral-50: #111115; --neutral-100: #16161b; --neutral-200: #1e1e25; --neutral-300: #25252d;
    --neutral-400: #6f6f7b; --neutral-500: #8a8a96; --neutral-600: #b4b4be; --neutral-700: #cfcfd6;
    --neutral-800: #e6e6ea; --neutral-900: #f2f2f5; --neutral-950: #fafafb;

    --rounding-sm: 0.25rem;
    --rounding-md: 0.375rem;
    --rounding-lg: 0.5rem;
    --letter-spacing: 0em;
}

html, body { background: var(--bg) !important; color: var(--text); }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* flat: no shadows anywhere */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

a { color: var(--accent); }
a:hover { color: var(--accent-lifted); text-decoration: none; }

::selection { background: rgba(167, 158, 224, .28); color: var(--text); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ---------- surfaces (Nexus hard-codes white in Bootstrap 4 components) ---------- */
body header.header,
body .navbar, body .navbar-light { background-color: var(--bg) !important; border-bottom: 1px solid var(--border-muted); }
body .master-breadcrumb, body .breadcrumb { background-color: var(--bg-muted) !important; border-bottom: 1px solid var(--border-muted); }
body .breadcrumb-item, body .breadcrumb-item a { color: var(--text-lifted); }
body .breadcrumb-item.active { color: var(--text-accented); }

body .card, body .mc-promo-manage, body .mc-promo-login,
body .modal-content, body .popover, body .list-group-item,
body .img-thumbnail, body .upgrade .products .product, body .promo-banner,
body .dropdown-menu, body .md-editor > .btn-toolbar,
body .client-home-cards .card-header,
body .bg-white {
    background-color: var(--bg-muted) !important;
    color: var(--text);
    border-color: var(--border) !important;
}
body .card-header, body .card-footer, body .modal-header, body .modal-footer,
body .client-home-cards .card .card-footer {
    background-color: transparent !important;
    border-color: var(--border-muted) !important;
}
body .card-title, body .card-header { color: var(--text); }
body .card-body, body .card-text { color: var(--text-accented); }

body .dropdown-item { color: var(--text-accented); }
body .dropdown-item:hover, body .dropdown-item:focus { background: var(--bg-lifted); color: var(--text); }
body .dropdown-divider { border-color: var(--border-muted); }

/* ---------- forms ---------- */
body .form-control, body .custom-select, body .custom-file-label,
body .input-group-text, body .home-domain-search .input-group-wrapper,
body .input-group .btn-reveal-pw, body #registration .field, body #registration .form-control,
body .md-editor > textarea.markdown-editor, body .md-editor > .md-preview,
body select.form-control, body textarea.form-control {
    background-color: var(--bg-lifted) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}
body .form-control::placeholder, body .md-editor textarea::placeholder { color: var(--text-muted); opacity: 1; }
body .form-control:focus, body .custom-select:focus, body .input-group-wrapper:focus-within {
    border-color: var(--accent) !important;
    background-color: var(--bg-lifted) !important;
    color: var(--text) !important;
    outline: 0;
}
body .form-control:disabled, body .form-control[readonly] { background-color: var(--bg-muted) !important; color: var(--text-lifted) !important; }
body .input-group-text { color: var(--text-lifted) !important; }
body label, body .control-label, body .col-form-label { color: var(--text-accented); }
body .form-text, body .help-block, body small, body .small, body .text-muted { color: var(--text-lifted) !important; }
body .custom-control-label::before { background-color: var(--bg-lifted); border-color: var(--border-lifted); }
body .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--accent); border-color: var(--accent); }
body .iCheck-helper + *, body .icheckbox_square-blue, body .iradio_square-blue { filter: brightness(.9); }

/* ---------- buttons: one accent, the rest quiet ---------- */
body .btn { border-radius: var(--rounding-md); font-weight: 500; }
body .btn-primary, body .btn-success, body .btn-order-now, body .btn-checkout,
body #order-standard_cart .products .product footer .btn-order-now,
body #order-standard_cart .text-right .btn-checkout,
body .sidebar .btn-success, body .primary-content .client-home-cards .card .btn-success {
    background-color: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important;
}
body .btn-primary:hover, body .btn-success:hover, body .btn-order-now:hover, body .btn-checkout:hover,
body #order-standard_cart .products .product footer .btn-order-now:hover,
body #order-standard_cart .text-right .btn-checkout:hover {
    background-color: var(--accent-lifted) !important; border-color: var(--accent-lifted) !important; color: var(--accent-ink) !important;
}
body .btn-default, body .btn-secondary, body .btn-outline-primary, body .btn-light,
body .sidebar .btn-default, body .btn.btn-success.open-modal.twofa-config-link.enable,
body .primary-content .client-home-cards .card .card-header .btn {
    background-color: transparent !important; border: 1px solid var(--border-lifted) !important; color: var(--text) !important;
}
body .btn-default:hover, body .btn-secondary:hover, body .btn-outline-primary:hover, body .btn-light:hover {
    background-color: var(--bg-lifted) !important; border-color: var(--border-accented) !important; color: var(--text) !important;
}
body .btn-danger { background-color: transparent !important; border: 1px solid var(--error) !important; color: var(--error) !important; }
body .btn-danger:hover { background-color: var(--error) !important; color: var(--accent-ink) !important; }
body .btn-link { color: var(--accent); }

/* ---------- tables ---------- */
body .table, body table.dataTable { color: var(--text-accented); }
body .table td, body .table th { background-color: transparent !important; border-color: var(--border-muted) !important; }
body .table thead th, body table.dataTable thead th { color: var(--text-lifted); border-bottom: 1px solid var(--border) !important; font-weight: 500; }
body .table-hover tbody tr:hover, body .table-list tbody tr:hover { background-color: var(--bg-lifted) !important; color: var(--text); }
body .table-striped tbody tr:nth-of-type(odd) { background-color: transparent; }
body .dataTables_wrapper .dataTables_filter input, body .dataTables_wrapper .dataTables_length select {
    background: var(--bg-lifted); color: var(--text); border: 1px solid var(--border);
}
body .page-link { background-color: transparent !important; border-color: var(--border) !important; color: var(--text-accented) !important; }
body .page-item.active .page-link { background-color: var(--bg-accented) !important; border-color: var(--border-lifted) !important; color: var(--text) !important; }
body .page-item.disabled .page-link { color: var(--text-muted) !important; }

/* ---------- nav, tabs, sidebar ---------- */
body .nav-tabs { border-color: var(--border); }
body .nav-tabs .nav-link { color: var(--text-lifted); border: 0; border-bottom: 2px solid transparent; background: transparent; }
body .nav-tabs .nav-link.active, body .nav-tabs .nav-item.show .nav-link {
    color: var(--text); background: transparent; border-bottom-color: var(--accent);
}
body .sidebar .list-group-item { background: transparent !important; border-color: var(--border-muted) !important; color: var(--text-accented); }
body .sidebar .list-group-item.active, body .sidebar .list-group-item.active:hover {
    background: var(--bg-lifted) !important; color: var(--text) !important; border-color: var(--border) !important;
}
body .sidebar .list-group-item-action:hover { background: var(--bg-lifted) !important; color: var(--text); }
body .sidebar .card-header .card-title { color: var(--text-lifted); font-weight: 500; }

body .navbar-nav .nav-link, body #main-menu .nav-link, body header .nav-link { color: var(--text-accented); }
body .navbar-nav .nav-link:hover, body header .nav-link:hover { color: var(--text); }
body .navbar-nav .active > .nav-link { color: var(--text); }

/* ---------- alerts: quiet, no colored blocks ---------- */
body .alert { background-color: var(--bg-muted) !important; border: 1px solid var(--border) !important; color: var(--text-accented); }
body .alert-success { border-left: 2px solid var(--success) !important; }
body .alert-info    { border-left: 2px solid var(--info) !important; }
body .alert-warning { border-left: 2px solid var(--warning) !important; }
body .alert-danger  { border-left: 2px solid var(--error) !important; }
body .alert .alert-link { color: var(--accent); }

/* ---------- footer ---------- */
body footer.footer { background-color: var(--bg-inverted) !important; border-top: 1px solid var(--border-muted); color: var(--text-lifted); }
body footer.footer a, body footer.footer .nav-link { color: var(--text-lifted); }
body footer.footer a:hover { color: var(--text); }

/* ---------- misc ---------- */
body hr { border-color: var(--border-muted); }
body code { color: var(--accent-lifted); background: var(--bg-lifted); padding: .1rem .3rem; border-radius: var(--rounding-sm); }
body pre { color: var(--text-accented); background: var(--bg-lifted); border: 1px solid var(--border-muted); }
body h1, body h2, body h3, body h4, body h5, body h6, body .h1, body .h2, body .h3, body .h4, body .h5, body .h6 { color: var(--text); font-weight: 600; }
body .logo-img, body header img { filter: none; }
body .modal-backdrop { background: #000; }
body .close { color: var(--text); text-shadow: none; opacity: .6; }
body .progress { background: var(--bg-lifted); }
body .badge { font-weight: 500; }

/* ---------- logo: black mark on a dark page -> white ---------- */
body header .navbar-brand img, body header.header img.logo-img, body header .logo img { filter: invert(1) brightness(1.1); }

/* ---------- order form (standard_cart) ---------- */
body #order-standard_cart .products .product,
body #order-standard_cart .cart-body .view-cart-empty,
body #order-standard_cart .domain-selection-options,
body #order-standard_cart .panel,
body #order-standard_cart .domain-promo-box,
body #order-standard_cart .view-cart-items .item,
body #order-standard_cart .view-cart-promotion-code,
body #order-standard_cart .account-select-container div.account.active,
body #order-standard_cart .spotlight-tld,
body #order-standard_cart .mc-promo {
    background: var(--bg-muted) !important; border-color: var(--border) !important; color: var(--text-accented);
}
body #order-standard_cart .cart-body .products .product header,
body #order-standard_cart .panel .panel-heading, body #order-standard_cart .panel .panel-footer,
body #order-standard_cart .products .product header {
    background: transparent !important; border-color: var(--border-muted) !important; color: var(--text);
}
body #order-standard_cart .product-info, body #order-standard_cart .summary-container,
body #order-standard_cart .cc-input-container, body #order-standard_cart .view-cart-tabs .tab-content,
body #order-standard_cart .view-cart-gateway-checkout, body #order-standard_cart .domain-selection-options .option,
body #order-standard_cart .domain-selection-options .option-selected,
body #order-standard_cart .panel-addon .panel-price, body #order-standard_cart .spotlight-tlds,
body #order-standard_cart .account-select-container div.account,
body #order-standard_cart .domain-renewals, body #order-standard_cart .service-renewals {
    background: var(--bg-lifted) !important; border-color: var(--border-muted) !important; color: var(--text-accented);
}
body #order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected="true"],
body #order-standard_cart .secondary-cart-body .view-cart-tabs .nav-tabs a[aria-expanded=true] {
    background: var(--bg-lifted) !important; border-color: var(--border) !important; color: var(--text);
}
body #order-standard_cart .sub-heading { border-top-color: var(--border) !important; }
body #order-standard_cart .sub-heading span, body #order-standard_cart .sub-heading-borderless span { background: var(--bg) !important; color: var(--text-lifted); }
body #order-standard_cart .field, body #order-standard_cart .form-control {
    background: var(--bg-lifted) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
}
body #order-standard_cart .order-summary .summary-totals, body #order-standard_cart .order-summary .subtotal,
body #order-standard_cart .order-summary .bordered-totals { border-color: var(--border) !important; }
body #order-standard_cart .product .product-desc, body #order-standard_cart .product .product-pricing,
body #order-standard_cart .price, body #order-standard_cart .product .price { color: var(--text); }
body #order-standard_cart .product header span, body #order-standard_cart .product-title { color: var(--text); }
body #order-standard_cart .products .product .product-pricing .price { color: var(--text); font-weight: 600; }
body #order-standard_cart .domain-pricing .tld-pricing-header div,
body #order-standard_cart .domain-pricing .tld-pricing-header .tld-column { background: var(--bg-lifted) !important; border-color: var(--border) !important; }
body #order-standard_cart .domain-pricing .tld-row.highlighted { background: var(--bg-lifted); }
body .domain-checker-container { background: var(--bg-muted) !important; border: 1px solid var(--border); }
body .domain-checker-container .input-group-box { background: var(--bg-lifted) !important; }
body #order-standard_cart .products .product header, body #order-standard_cart .products .product header * { color: var(--text) !important; }
body #order-standard_cart .products .product header .qty { color: var(--text-lifted) !important; }
body #order-standard_cart .header-lined h1, body #order-standard_cart .header-lined p, body .primary-content > .header-lined * { color: var(--text); }
body #order-standard_cart .header-lined p { color: var(--text-lifted); }
body header.header .navbar-nav .nav-link, body header.header .nav-link, body #main-menu a { color: var(--text-accented) !important; }
body header.header .nav-link:hover, body #main-menu a:hover { color: var(--text) !important; }

/* ======================================================================
   Header: one slim bar on desktop, small logo, quiet nav with underline
   ====================================================================== */
body header.header { position: sticky; top: 0; z-index: 1030; background: rgba(13, 13, 16, .88) !important;
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border-muted); padding: 0; }
body header.header .navbar { padding: 0; border: 0 !important; background: transparent !important; }
body header.header .navbar-brand { margin: 0; padding: 0; display: flex; align-items: center; }
body header.header .logo-img, body header.header .navbar-brand img { height: 24px !important; width: auto !important; max-height: 24px; }

body header.header .search .form-control { height: 34px; font-size: 13px; background: transparent !important; border-color: var(--border) !important; }
body header.header .search .btn { height: 34px; background: transparent !important; border: 1px solid var(--border) !important; border-right: 0 !important; color: var(--text-lifted) !important; padding: 0 .65rem; }
body header.header .cart-btn { color: var(--text-accented) !important; padding: .4rem .55rem; }
body header.header .cart-btn:hover { color: var(--text) !important; }
body header.header #cartItemCount { background: var(--accent) !important; color: var(--accent-ink) !important; font-size: 10px; }

body header.header .main-navbar-wrapper { padding: 0; }
body header.header #nav > li > a, body header.header .navbar-nav > li > a {
    font-size: 14px; font-weight: 500; color: var(--text-lifted) !important; padding: .55rem .8rem; border-radius: var(--rounding-md);
    transition: color .15s, background .15s;
}
body header.header #nav > li > a:hover, body header.header .navbar-nav > li > a:hover,
body header.header .navbar-nav > li.show > a { color: var(--text) !important; background: var(--bg-lifted); }
body header.header .dropdown-menu { margin-top: .4rem; padding: .35rem; border: 1px solid var(--border) !important; border-radius: var(--rounding-lg); background: var(--bg-muted) !important; }
body header.header .dropdown-menu .dropdown-item { border-radius: var(--rounding-sm); padding: .4rem .6rem !important; font-size: 14px; }
body header.header .dropdown-menu a.dropdown-item { padding: .4rem .6rem !important; }
body header.header .dropdown-menu li.dropdown-item { padding: 0 !important; background: transparent; }
body header.header .dropdown-toggle::after { opacity: .5; }

@media (min-width: 1200px) {
    body header.header { display: flex; align-items: center; height: 56px; padding: 0 max(24px, calc((100vw - 1140px) / 2)); }
    body header.header .navbar, body header.header .navbar > .container { display: contents !important; }
    body header.header .navbar-brand { order: 0; margin-right: 1.5rem; }
    body header.header .main-navbar-wrapper { display: contents; }
    body header.header #mainNavbar { order: 1; display: flex !important; flex: 1 1 auto; align-items: center; }
    body header.header #mainNavbar > form { display: none; }
    body header.header form.form-inline { order: 2; margin: 0 .5rem 0 0 !important; }
    body header.header .search { width: 200px; }
    body header.header ul.toolbar { order: 3; margin: 0; }
}
@media (max-width: 1199.98px) {
    body header.header .navbar:first-child .container { padding-top: .6rem; padding-bottom: .6rem; margin: 0 !important; }
    body header.header #mainNavbar { border-top: 1px solid var(--border-muted); padding: .5rem 0; }
}

/* ======================================================================
   Footer: slim, two zones, nothing shouting
   ====================================================================== */
body footer.footer { margin-top: 3rem; padding: 1.25rem 0; background: transparent !important; border-top: 1px solid var(--border-muted); font-size: 13px; }
body footer.footer .container { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "links tools" "copy tools"; align-items: center; gap: .35rem 1.5rem; }
body footer.footer .container > ul.nav { grid-area: links; justify-content: flex-start !important; gap: 1.25rem; }
body footer.footer .container > ul.list-inline { grid-area: tools; float: none !important; margin: 0; display: flex; align-items: center; gap: .5rem; }
body footer.footer .container > .copyright { grid-area: copy; text-align: left; color: var(--text-muted); font-size: 12px; }
body footer.footer .nav-link { padding: 0; color: var(--text-lifted) !important; }
body footer.footer .nav-link:hover { color: var(--text) !important; }
body footer.footer .list-inline-item { margin: 0; }
body footer.footer .btn-icon, body footer.footer .btn-outline-light {
    background: transparent !important; border: 1px solid var(--border) !important; color: var(--text-lifted) !important;
    border-radius: var(--rounding-md); font-size: 13px; padding: .3rem .7rem; margin: 0 !important; line-height: 1.4;
}
body footer.footer .btn-icon:hover, body footer.footer .btn-outline-light:hover { color: var(--text) !important; border-color: var(--border-lifted) !important; }
@media (max-width: 767.98px) {
    body footer.footer .container { grid-template-columns: 1fr; grid-template-areas: "links" "tools" "copy"; }
    body footer.footer .container > ul.list-inline { justify-content: flex-start; }
}
@media (min-width: 1200px) {
    body header.header #mainNavbar { justify-content: flex-start !important; gap: .15rem; }
    body header.header #mainNavbar > ul.navbar-nav { margin: 0 !important; flex: 0 0 auto; width: auto; }
    body header.header #mainNavbar > ul.navbar-nav:last-of-type { margin-left: auto !important; }
    body header.header #nav { flex-wrap: nowrap; }
}
body header.header #nav > li, body header.header #mainNavbar > ul.navbar-nav > li { margin: 0 !important; padding: 0 !important; }
body header.header #nav, body header.header #mainNavbar > ul.navbar-nav { gap: .1rem !important; column-gap: .1rem !important; }
@media (min-width: 1200px) {
    body header.header #mainNavbar { padding-right: 1.25rem; min-width: 0; }
    body header.header form.form-inline { margin-right: .75rem !important; }
    body header.header .search { width: 190px; }
}
@media (min-width: 1200px) {
    body header.header { padding: 0 max(20px, calc((100vw - 1180px) / 2)); }
    body header.header #nav > li > a, body header.header .navbar-nav > li > a { padding: .5rem .6rem; font-size: 13.5px; }
    body header.header .search { width: 168px; }
    body header.header .navbar-brand { margin-right: 1rem; }
}
body #main-body, body section#main-body { background: transparent !important; }
body footer.footer { margin-top: 0; background: var(--bg) !important; }

/* ======================================================================
   Layout width: page content lines up with the header (1180px inner)
   ====================================================================== */
@media (min-width: 1200px) {
    body .container { max-width: 1210px; }
}

/* ======================================================================
   Home: shortcut tiles + product groups
   ====================================================================== */
body .primary-content > h2.text-center, body h2.text-center.m-4 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 1rem !important; text-align: left !important; color: var(--text); }

body .action-icon-btns { margin: 0 -6px 1rem !important; align-items: stretch; }
body .action-icon-btns > [class*="col"] { padding: 6px; display: flex; }
body .action-icon-btns a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
    min-height: 108px; margin: 0 !important; padding: 1.1rem .75rem !important;
    background: var(--bg-muted) !important; border: 1px solid var(--border) !important; border-radius: var(--rounding-lg);
    color: var(--text-accented) !important; font-size: 14px; line-height: 1.3; text-align: center;
    transition: border-color .15s, background .15s, color .15s;
}
body .action-icon-btns a:hover { background: var(--bg-lifted) !important; border-color: var(--border-lifted) !important; color: var(--text) !important; }
body .action-icon-btns .ico-container { margin: 0; line-height: 1; font-size: 22px; }
body .action-icon-btns .ico-container i { color: var(--accent) !important; opacity: .8; }
body .action-icon-btns a:hover .ico-container i { opacity: 1; }
body .action-icon-btns a[class*="card-accent"] { border-top-color: var(--border) !important; }

body .card-columns.home { column-count: initial; column-gap: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body .card-columns.home .card { margin: 0 !important; height: 100%; }
body .card-columns.home .card-body { display: flex; flex-direction: column; padding: 1.25rem !important; text-align: left !important; }
body .card-columns.home .card-title { font-size: 1.05rem; margin-bottom: .5rem; }
body .card-columns.home .card-body p { flex: 1; font-size: 13.5px; color: var(--text-lifted); }
@media (max-width: 991.98px) { body .card-columns.home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { body .card-columns.home { grid-template-columns: 1fr; } }
body .card-columns.home .card { display: flex; flex-direction: column; }
body .card-columns.home .card-body { flex: 1 1 auto; }
body .card-columns.home .btn { margin-top: auto; }

/* dropdown menus: readable text, clear hover */
body .dropdown-menu .dropdown-item,
body .dropdown-menu li.dropdown-item,
body .dropdown-menu li.dropdown-item > a,
body header.header .dropdown-menu a {
    color: var(--text-accented) !important; background: transparent; opacity: 1 !important;
}
body .dropdown-menu .dropdown-item:hover, body .dropdown-menu .dropdown-item:focus,
body .dropdown-menu li.dropdown-item:hover, body .dropdown-menu li.dropdown-item:hover > a,
body header.header .dropdown-menu a:hover {
    color: var(--text) !important; background: var(--bg-lifted) !important; text-decoration: none;
}
body .dropdown-menu .dropdown-item.active, body .dropdown-menu .dropdown-item:active { color: var(--accent-ink) !important; background: var(--accent) !important; }
body .dropdown-menu .dropdown-item.disabled, body .dropdown-menu .dropdown-item:disabled { color: var(--text-muted) !important; }
body .dropdown-menu .dropdown-divider { margin: .35rem 0; }

/* cart counter: keep the badge inside the header bar, never clipped */
body header.header .cart-btn { position: relative; }
body header.header #cartItemCount {
    position: absolute; top: 2px; right: 0; transform: none; min-width: 16px; height: 16px; padding: 0 4px;
    line-height: 16px; font-size: 10px; font-weight: 600; border-radius: 8px;
}

/* ======================================================================
   Logged-in header: slim account strip on top, then the single-row bar
   ====================================================================== */
@media (min-width: 1200px) {
    body header.header { flex-wrap: wrap; height: auto; align-content: flex-start; padding-top: 0; padding-bottom: 0; }
    body header.header > .topbar { order: -1; flex: 0 0 100%; width: 100%; margin: 0; }
    body header.header > .navbar-light, body header.header > .main-navbar-wrapper { min-height: 0; }
    body header.header .navbar-brand, body header.header #mainNavbar, body header.header form.form-inline, body header.header ul.toolbar { margin-top: 0; margin-bottom: 0; }
    body header.header #mainNavbar { height: 56px; }
}
body .topbar { background: var(--bg-muted) !important; border-bottom: 1px solid var(--border-muted); padding: 0 !important; font-size: 12.5px; }
body .topbar .container { padding-top: 0; padding-bottom: 0; }
body .topbar .btn, body .topbar .btn-group .btn {
    background: transparent !important; border: 0 !important; color: var(--text-lifted) !important;
    padding: .4rem .6rem; font-size: 12.5px; line-height: 1.4; border-radius: var(--rounding-sm);
}
body .topbar .btn:hover { color: var(--text) !important; background: var(--bg-lifted) !important; }
body .topbar .btn-active-client { color: var(--text) !important; font-weight: 500; }
body .topbar .btn-return-to-admin { color: var(--accent) !important; }
body .topbar .input-group, body .topbar .input-group-prepend, body .topbar .input-group-text { background: transparent !important; border: 0 !important; }
body .topbar .input-group-text { color: var(--text-muted) !important; font-size: 12.5px; padding: 0 .25rem 0 0; }
body .topbar .input-group { flex-wrap: nowrap; align-items: center; }
body .popover { background: var(--bg-muted) !important; border: 1px solid var(--border) !important; color: var(--text-accented); }
body .popover-body { color: var(--text-accented); }
body .popover .arrow::before, body .popover .arrow::after { border-bottom-color: var(--border) !important; border-top-color: var(--border) !important; }
body .popover .arrow::after { border-bottom-color: var(--bg-muted) !important; }
body .client-alerts li a { color: var(--text-accented); }
body .client-alerts li a:hover { color: var(--text); background: var(--bg-lifted); }

/* ======================================================================
   Client area: tiles, home cards, status labels, tables, tickets, misc
   ====================================================================== */

/* footer controls: same height */
body footer.footer .btn-icon, body footer.footer .btn-outline-light { height: 34px; display: inline-flex; align-items: center; gap: .4rem; }
body footer.footer .btn-icon { width: 34px; justify-content: center; padding: 0; }

/* --- stat tiles --- */
body .tiles .row { margin: -4px; }
body .tiles .row > div { padding: 4px; }
body .tiles .tile {
    background: var(--bg-muted) !important; border: 1px solid var(--border) !important; border-radius: var(--rounding-lg);
    padding: 14px 18px; transition: border-color .15s, background .15s;
}
body .tiles .tile:hover { background: var(--bg-lifted) !important; border-color: var(--border-lifted) !important; }
body .tiles .tile .stat { color: var(--text); font-size: 34px; font-weight: 600; margin-top: 16px; }
body .tiles .tile .title { color: var(--text-lifted) !important; font-weight: 500; letter-spacing: .04em; }
body .tiles .tile i { color: var(--border-lifted) !important; font-size: 42px; top: 12px; right: 16px; }
body .tiles .tile:hover i { color: var(--accent) !important; font-size: 42px; opacity: .7; }
body .tiles .tile .highlight { opacity: .55; }

/* --- home cards: drop the colored top bars --- */
body [class*="card-accent-"] { border-top: 1px solid var(--border) !important; }
body .client-home-cards .card { margin-bottom: 12px; }
body .client-home-cards .card-header { padding: .8rem 1rem; }
body .client-home-cards .card-title { font-size: .95rem; font-weight: 600; color: var(--text); }
body .client-home-cards .card-title i { color: var(--accent); opacity: .85; }
body .client-home-cards .card-body { color: var(--text-accented); }
body .list-group { background: transparent; }
body .list-group-item { background-color: transparent !important; border-color: var(--border-muted) !important; color: var(--text-accented); }
body .list-group-item-action:hover, body .list-group-item-action:focus { background-color: var(--bg-lifted) !important; color: var(--text); }
body .client-home-cards .card-footer:empty { display: none; }
body .btn-xs, body .btn-sm { border-radius: var(--rounding-sm); }
body .bg-color-gold, body .bg-color-green, body .bg-color-red, body .bg-color-blue, body .bg-color-orange { background-color: transparent !important; }
body .client-home-cards .card-header .btn[class*="bg-color"] { background-color: transparent !important; }

/* --- status labels: quiet tinted pills --- */
body .label, body .badge.status { font-weight: 500; font-size: 11.5px; letter-spacing: .01em; border-radius: var(--rounding-md); padding: .25em .7em; color: var(--text-accented) !important; background: var(--bg-accented); }
body .label-success, body .status-active, body .status-open, body .status-completed, body .status-paid, body .status-accepted,
body .div-service-status .label-success { background: rgba(111, 207, 151, .14) !important; color: var(--success) !important; }
body .label-warning, body .status-suspended, body .status-pending, body .status-pending-transfer, body .status-customer-reply, body .status-inprogress,
body .status-refunded, body .status-pending-registration, body .status-redemption, body .status-grace { background: rgba(240, 179, 94, .14) !important; color: var(--warning) !important; }
body .label-danger, body .status-unpaid, body .status-fraud, body .status-lost, body .status-dead, body .status-collections { background: rgba(239, 123, 123, .14) !important; color: var(--error) !important; }
body .label-info, body .status-onhold, body .status-answered, body .status-delivered { background: rgba(167, 158, 224, .16) !important; color: var(--accent) !important; }
body .label-default, body .status-terminated, body .status-cancelled, body .status-closed, body .status-expired, body .status-transferred-away,
body .status-payment-pending { background: var(--bg-accented) !important; color: var(--text-lifted) !important; }
body .badge { background: var(--bg-accented); color: var(--text-accented); }
body .badge-primary, body .badge-info { background: rgba(167, 158, 224, .18); color: var(--accent); }
body .badge-success { background: rgba(111, 207, 151, .16); color: var(--success); }
body .badge-warning { background: rgba(240, 179, 94, .16); color: var(--warning); }
body .badge-danger { background: rgba(239, 123, 123, .16); color: var(--error); }
body .badge-dark { background: var(--bg-accented); color: var(--text-accented); }

/* --- data tables --- */
body .table-container, body .listtable { color: var(--text-accented); }
body .table-list { border: 1px solid var(--border); border-radius: var(--rounding-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; }
body .table-list thead th { background: var(--bg-muted) !important; font-size: 12px; text-transform: none; letter-spacing: 0; }
body .table-list tbody tr { cursor: pointer; }
body .table-list tbody td { vertical-align: middle; }
body .table-list tbody td a { color: var(--text); }
body .table-list tbody td small, body .table-list tbody td .text-muted { color: var(--text-lifted) !important; }
body .dataTables_wrapper .dataTables_info, body .dataTables_wrapper .dataTables_length, body .dataTables_wrapper label { color: var(--text-lifted); font-size: 13px; }
body .dataTables_wrapper .dataTables_filter input { background: var(--bg-lifted) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: var(--rounding-md); }
body .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--text-accented) !important; border: 1px solid var(--border) !important; background: transparent !important; border-radius: var(--rounding-sm); }
body .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--bg-accented) !important; color: var(--text) !important; }
body table.dataTable tbody tr, body table.dataTable tbody td { background: transparent !important; }
body table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before { background-color: var(--accent); color: var(--accent-ink); border: 0; box-shadow: none; }

/* --- section headings --- */
body .header-lined { border-bottom: 1px solid var(--border-muted) !important; margin-bottom: 1.25rem; }
body .header-lined h1 { font-size: 1.5rem; font-weight: 600; color: var(--text); }
body .header-lined h1 small, body .header-lined p { color: var(--text-lifted); }

/* --- tickets --- */
body .view-ticket .posted-by { background: var(--bg-lifted) !important; color: var(--text-lifted); border-bottom: 1px solid var(--border-muted); }
body .view-ticket .card-body, body .view-ticket .mc-promo-manage .content { border-bottom: 1px solid var(--border-muted) !important; }
body .view-ticket .message, body .view-ticket .message p { color: var(--text-accented); }
body .view-ticket .attachments { border-top-color: var(--border) !important; }
body .view-ticket .attachment-list li span { border-color: var(--border) !important; background: var(--bg-lifted); }
body .view-ticket .attachment-list li figure { background-color: var(--bg-accented); color: var(--text-lifted); }
body .view-ticket .requestor-badge { background: var(--bg-accented); color: var(--text-accented); }
body .ticket-number { color: var(--text-lifted); }
body .ticket-subject { color: var(--text); }
body .ticket-reply .rating span.star:before { color: var(--text-muted); }

/* --- misc Bootstrap leftovers --- */
body .text-dark, body .text-body { color: var(--text) !important; }
body .bg-light, body .bg-white, body .jumbotron { background-color: var(--bg-muted) !important; }
body .border, body .border-top, body .border-bottom, body .border-left, body .border-right { border-color: var(--border) !important; }
body .progress { background: var(--bg-lifted); border-radius: var(--rounding-sm); }
body .progress-bar { background-color: var(--accent); }
body .nav-pills .nav-link { color: var(--text-lifted); border-radius: var(--rounding-md); }
body .nav-pills .nav-link.active, body .nav-pills .show > .nav-link { background: var(--bg-accented); color: var(--text); }
body .well, body .panel { background: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body blockquote { border-left: 2px solid var(--border-lifted); color: var(--text-lifted); }
body .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { filter: none; }
body .tooltip-inner { background: var(--bg-accented); color: var(--text); }
body .tooltip .arrow::before { border-top-color: var(--bg-accented) !important; border-bottom-color: var(--bg-accented) !important; }
body .ui-widget-content, body .datepicker, body .daterangepicker { background: var(--bg-muted); border-color: var(--border); color: var(--text); }
body .select2-container--default .select2-selection--single, body .select2-dropdown { background: var(--bg-lifted); border-color: var(--border); color: var(--text); }
body .bootstrap-switch, body .toggle { border-color: var(--border); }

/* ======================================================================
   Printable invoice page: keep it light (it is meant for print / PDF)
   ====================================================================== */
html:has(.invoice-container) {
    color-scheme: light;
    --bg: #fff; --bg-muted: #f8f9fa; --bg-lifted: #f1f3f5; --bg-accented: #e9ecef; --bg-inverted: #fff;
    --text: #111827; --text-accented: #374151; --text-lifted: #6b7280; --text-muted: #9ca3af; --text-inverted: #fff;
    --border-muted: #e5e7eb; --border: #d1d5db; --border-lifted: #9ca3af; --border-accented: #6b7280;
    --accent: #5b4fc4; --accent-ink: #fff;
}
html:has(.invoice-container), html:has(.invoice-container) body { background: #fff !important; color: #111827 !important; }

@media (min-width: 1200px) {
    body header.header { padding-left: 0 !important; padding-right: 0 !important; --hpad: max(20px, calc((100vw - 1180px) / 2)); }
    body header.header .navbar-brand { margin-left: var(--hpad); }
    body header.header ul.toolbar { margin-right: var(--hpad); }
}

/* --- notifications popover (topbar) --- */
body .popover-user-notifications { background: var(--bg-muted) !important; border: 1px solid var(--border) !important; border-radius: var(--rounding-lg); min-width: 300px; padding: 4px; font-family: inherit; }
body .popover-user-notifications .popover-body { padding: 0; }
body .popover-user-notifications ul li { padding: 0; min-height: 0; border-bottom: 1px solid var(--border-muted); }
body .popover-user-notifications ul li:last-child { border-bottom: 0; }
body .popover-user-notifications ul li a { padding: .7rem .8rem; font-size: 13px; line-height: 1.45; color: var(--text-accented) !important; border-radius: var(--rounding-md); display: flex; gap: .65rem; align-items: flex-start; }
body .popover-user-notifications ul li a:hover { background: var(--bg-lifted) !important; color: var(--text) !important; }
body .popover-user-notifications ul li i.fas, body .popover-user-notifications ul li i.far, body .popover-user-notifications ul li i.fal {
    float: none; padding-top: 2px; font-size: 14px; flex: 0 0 auto; color: var(--text-lifted);
}
body .popover-user-notifications ul li i.fa-check-circle { color: var(--success); }
body .popover-user-notifications ul li i.fa-exclamation-triangle, body .popover-user-notifications ul li i.fa-warning { color: var(--warning); }
body .popover-user-notifications ul li i.fa-exclamation-circle { color: var(--error); }
body .popover-user-notifications ul li .message { margin-left: 0; }
body .popover-user-notifications ul li.none { padding: .8rem; text-align: center; font-weight: 400; color: var(--text-lifted); font-size: 13px; }
body .popover-user-notifications .arrow::before { border-bottom-color: var(--border) !important; }
body .popover-user-notifications .arrow::after { border-bottom-color: var(--bg-muted) !important; }
body #accountNotifications, body #accountNotifications:hover, body #accountNotifications:focus, body #accountNotifications:active {
    transition: none; transform: none; min-width: 0; outline: 0;
}
body #accountNotifications:hover, body #accountNotifications[aria-describedby] { background: var(--bg-lifted) !important; color: var(--text) !important; }

/* --- "return to admin" floating tab --- */
body .btn-return-to-admin { background-color: var(--bg-accented) !important; color: var(--text-accented) !important; border: 1px solid var(--border-lifted) !important; border-right: 0 !important; border-radius: var(--rounding-md) 0 0 var(--rounding-md) !important; font-size: 12.5px !important; }
body .btn-return-to-admin:hover { background-color: var(--bg-lifted) !important; color: var(--text) !important; }

/* ======================================================================
   Leftover light-theme rules in Nexus (service page, account pages, markdown…)
   ====================================================================== */
body .client-home-cards .list-group { border-top: 1px solid var(--border-muted) !important; border-bottom: 1px solid var(--border-muted) !important; max-height: 200px; }
body .client-home-cards .list-group .list-group-item { border: 0 !important; border-bottom: 1px solid var(--border-muted) !important; padding: .5rem 1rem; }
body .client-home-cards .list-group .list-group-item:last-child { border-bottom: 0 !important; }
body .client-home-cards small, body .client-home-cards .text-muted { color: var(--text-lifted) !important; }
body .list-group-item.active { background-color: var(--bg-accented) !important; color: var(--text) !important; border-color: var(--border-lifted) !important; }
body .list-group-item.disabled, body .list-group-item:disabled { color: var(--text-muted) !important; }

/* account selection, invites, banners */
body .select-account { border-top-color: var(--border-muted); }
body .select-account a { border-bottom-color: var(--border-muted); color: var(--text-accented); }
body .select-account a:hover { background: var(--bg-lifted); color: var(--text); }
body .continue-container, body .invite-box { background: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body .verification-banner { background: var(--bg-muted); border-bottom: 1px solid var(--border-muted); color: var(--text-accented); }
body .verification-banner .fas, body .verification-banner .fal, body .verification-banner .far { color: var(--accent); }
body .twofa-module, body .twofa-setup .activation-msg { border-color: var(--border); background: var(--bg-muted); }
body .twofa-setup .backup-code { background: var(--bg-lifted); color: var(--text); }

/* service details page */
body div.product-details div.product-icon { background-color: var(--bg-lifted); color: var(--text-lifted); }
body div.product-details-tab-container { background: var(--bg-muted); border-color: var(--border); color: var(--text-accented); }
body .product-status-text { color: var(--text-accented); border-radius: var(--rounding-md); font-size: 12px; font-weight: 500; letter-spacing: .04em; background: var(--bg-accented); }
body .product-status-active .product-status-text { background: rgba(111, 207, 151, .14); color: var(--success); }
body .product-status-suspended .product-status-text, body .product-status-pending .product-status-text { background: rgba(240, 179, 94, .14); color: var(--warning); }
body .product-status-terminated, body .product-status-cancelled, body .product-status-active, body .product-status-suspended, body .product-status-pending { background-color: transparent !important; }
body .product-status-terminated .product-status-text, body .product-status-cancelled .product-status-text { background: var(--bg-accented); color: var(--text-lifted); }
body .responsive-tabs-sm, body .responsive-tabs-sm .nav-item, body .responsive-tabs-sm .nav-item a.active, body .responsive-tabs-sm-connector .channel { background: var(--bg-muted) !important; border-color: var(--border) !important; }

/* tables */
body .table .thead-light th, body .table .thead-dark th { background: var(--bg-muted); color: var(--text-lifted); border-color: var(--border); }
body tr.masspay-total td { background: var(--bg-lifted) !important; color: var(--text); }

/* pagination (Bootstrap + legacy) */
body .pagination > li > a, body .pagination > li > span { color: var(--text-accented); background: transparent; border-color: var(--border); }
body .pagination > .active > a, body .pagination > .active > span { background: var(--bg-accented); color: var(--text); border-color: var(--border-lifted); }

/* markdown content (tickets, announcements, KB articles) */
body .md-preview, body .markdown-content { color: var(--text-accented); }
body .md-preview h1, body .md-preview h2, body .md-preview h3, body .md-preview h4,
body .markdown-content h1, body .markdown-content h2, body .markdown-content h3, body .markdown-content h4 { color: var(--text); }
body .md-preview pre, body .markdown-content pre { background: var(--bg-lifted); color: var(--text-accented); border: 1px solid var(--border-muted); }
body .md-preview table, body .markdown-content table { background: transparent; border-color: var(--border); }
body .md-preview table > thead > tr > th, body .markdown-content table > thead > tr > th { background: var(--bg-lifted); border-color: var(--border); color: var(--text); }
body .md-preview table > tbody > tr > td, body .markdown-content table > tbody > tr > td { border-color: var(--border-muted); }

/* registration form */
body #registration label, body #registration .field-help-text { color: var(--text-lifted); }
body #registration .sub-heading { border-top-color: var(--border); }
body #registration .sub-heading span { background-color: var(--bg); color: var(--text-lifted); }

/* ---------- sticky footer: always at the bottom of the viewport ---------- */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > header.header, body > footer.footer { flex: 0 0 auto; }
body > section#main-body, body > #main-body { flex: 1 0 auto; width: 100%; }
body > footer.footer { margin-top: auto; }
