/*
 * Control Diagonal
 * Child theme for Control / WHMCS.
 *
 * The design tokens mirror diagonalhosting-astro's `diagonal` palette. This
 * file deliberately contains presentation only so updates to the Control
 * parent templates remain safe and easy to apply.
 */

:root {
  --dh-950: #2a1548;
  --dh-900: #4a1d8f;
  --dh-800: #5c2a9e;
  --dh-700: #7c4dbd;
  --dh-600: #8b5cf6;
  --dh-100: #f0e8fa;
  --dh-accent: #ffd800;
  --dh-accent-dark: #e0c200;
  --dh-purple: #b794f6;
  --dh-purple-soft: #f5effc;
  --dh-ink: #2a1838;
  --dh-text: #5a4d6b;
  --dh-muted: #7d708f;
  --dh-bg: #faf7fd;
  --dh-border: #e6dbf2;
  --dh-white: #fff;
  --dh-radius: 18px;
  --dh-radius-md: 12px;
  --dh-radius-sm: 9px;
  --dh-shadow: 0 18px 46px rgba(74, 29, 143, 0.14);
  --dh-shadow-soft: 0 12px 34px rgba(74, 29, 143, 0.1);
  --dh-focus: rgba(255, 216, 0, 0.45);
  --dh-header: linear-gradient(90deg, #1a0b2e, #3d1a6e);
  --dh-sidebar: linear-gradient(180deg, #1a0b2e 0%, #2a1548 52%, #3d1a6e 100%);
  --dh-footer: linear-gradient(145deg, #140a24, #2a1548 55%, #4c2a75);
  --dh-card-bar: linear-gradient(90deg, #3d1a6e, #7c4dbd, #ddd6fe);
}

/* Base and page canvas */

html {
  min-height: 100%;
  background: var(--dh-950);
}

body {
  min-height: 100vh;
  color: var(--dh-text);
  background:
    radial-gradient(circle at 91% 8%, rgba(124, 77, 189, 0.1), transparent 29%),
    radial-gradient(circle at 15% 75%, rgba(183, 148, 246, 0.08), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f7f4fa 48%, #fff 100%);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--dh-700);
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover,
a:focus {
  color: var(--dh-900);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.panel-title {
  color: var(--dh-ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
}

strong,
b,
label {
  color: var(--dh-ink);
}

::selection {
  color: var(--dh-white);
  background: var(--dh-700);
}

#container,
.flex-wrap {
  min-height: 100vh;
}

.flex-wrap {
  align-items: stretch;
  overflow: visible;
}

.main-content-wrapper {
  position: relative;
  z-index: 1;
  border-top: 0;
  background: transparent;
}

.main-content-wrapper #main-content {
  display: block;
  max-width: 1440px;
  min-height: calc(100vh - 151px);
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 44px) 80px;
}

#internal-content {
  padding-right: 15px;
  padding-left: 15px;
}

/* Header and brand */

#header {
  min-height: 78px;
  color: #fff;
  background: var(--dh-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(42, 21, 72, 0.16);
}

#header::after {
  display: block;
  clear: both;
  content: "";
}

#header .brand {
  width: 254px;
  height: 78px;
  background: rgba(20, 10, 36, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  overflow: visible;
}

#header .logo {
  position: relative;
  height: 78px;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 24px;
}

#header .logo img {
  display: block;
  width: 166px;
  max-width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

#header .logotext {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: nowrap;
}

#header .logotext::before {
  display: inline-flex;
  width: 29px;
  height: 29px;
  margin-right: 11px;
  vertical-align: middle;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--dh-accent) 29% 58%, transparent 59%),
    linear-gradient(135deg, transparent 0 45%, var(--dh-purple) 46% 73%, transparent 74%);
  border-radius: 8px;
  content: "";
  transform: rotate(-8deg);
}

#header .toggle-navigation.toggle-left {
  margin: 21px 0 0 22px;
}

#header .user-nav {
  padding-top: 21px;
}

#header .user-nav > ul > li > a,
#header .user-nav > ul > li > a:visited {
  color: #fff;
  text-decoration: none;
}

#header .user-nav > ul > li > a:hover,
#header .user-nav > ul > li > a:focus,
#header .user-nav > ul > li.open > a {
  color: var(--dh-accent);
  text-decoration: none;
}

#header .user-nav > ul > li > a .caret {
  border-top-color: currentColor;
  border-bottom-color: currentColor;
}

#header .btn-default {
  width: 37px;
  height: 37px;
  padding: 3px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: none;
}

#header .btn-default .fas,
#header .btn-default .far,
#header .options i {
  color: #fff;
}

#header .toggle-navigation button:hover,
#header .toggle-navigation button:focus,
#header .toggle-navigation button:active,
#header .btn-default:hover,
#header .btn-default:focus,
#header .btn-default:active,
#header li.open .btn-default {
  color: var(--dh-950);
  background: var(--dh-accent);
  border-color: var(--dh-accent);
}

#header .toggle-navigation button:hover i,
#header .toggle-navigation button:focus i,
#header .btn-default:hover i,
#header .btn-default:focus i,
#header .btn-default:active i,
#header li.open .btn-default i {
  color: var(--dh-950);
}

#header .messages .badge {
  z-index: 2;
  min-width: 19px;
  padding: 4px 6px;
  color: var(--dh-950);
  background: var(--dh-accent);
  border: 2px solid var(--dh-900);
}

#header .dropdown-menu,
#header .user-nav ul li.dropdown.settings .dropdown-menu,
#header .user-nav ul li.dropdown.messages .dropdown-menu {
  color: var(--dh-text);
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-md);
  box-shadow: var(--dh-shadow);
}

#header .dropdown.settings .dropdown-menu > li > a:hover,
#header .dropdown.settings .dropdown-menu > li > a:active,
#header .user-nav ul li.dropdown.messages .dropdown-menu > li > a:hover {
  color: var(--dh-900);
  background: var(--dh-purple-soft);
}

#header li.dropdown ul.dropdown-menu.alert > li div.header,
#header li.dropdown ul.dropdown-menu.chooser > li div.header {
  color: #fff;
  background: var(--dh-900);
  border-radius: var(--dh-radius-md) var(--dh-radius-md) 0 0;
  font-weight: 700;
}

/* Primary navigation */

.sidebar-left {
  position: relative;
  z-index: 120;
  width: 254px;
  padding: 22px 13px 34px;
  background: var(--dh-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.sidebar-left::after {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: 160px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(183, 148, 246, 0.13), transparent 68%);
  content: "";
}

.sidebar-left .nav-pills,
.sidebar-left .nav-pills > li {
  position: relative;
  z-index: 1;
}

.sidebar-left .nav-pills > li + li {
  margin-top: 4px;
}

.sidebar-left .nav-pills > li > a {
  min-height: 44px;
  padding: 11px 13px;
  color: #d8c9eb;
  border: 1px solid transparent;
  border-radius: var(--dh-radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-left .nav i {
  width: 19px;
  margin-right: 7px;
  color: #b9a5d4;
  text-align: center;
}

.sidebar-left .nav > li > a:hover,
.sidebar-left .nav > li > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-left .nav-pills > li.active > a,
.sidebar-left .nav-pills > li.active > a:hover,
.sidebar-left .nav-pills > li.active > a:focus,
.sidebar-left .nav .open > a,
.sidebar-left .nav .open > a:hover,
.sidebar-left .nav .open > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--dh-accent);
}

.sidebar-left .nav-pills > li.active > a i,
.sidebar-left .nav-pills > li > a:hover i {
  color: var(--dh-accent);
}

.sidebar-left .nav .nav-sub {
  margin: 5px 0 8px;
  padding: 5px 0;
  background: rgba(42, 15, 78, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--dh-radius-sm);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

.sidebar-left .nav .nav-sub li > a {
  color: #fff;
  line-height: 1.45;
}

.sidebar-left .nav .nav-sub li > a:hover,
.sidebar-left .nav .nav-sub li > a:focus,
.sidebar-left .nav .nav-sub li.active > a,
.sidebar-left .nav .nav-sub li.active > a:hover,
.sidebar-left .nav .nav-sub li.active > a:focus {
  color: #fff;
  background: rgba(92, 41, 155, 0.68);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

/*
 * Control leaves only 24 px of usable space in its 50 px mini sidebar after
 * the child theme padding is applied. Give icons a real 50 px hit area and
 * restore the flyout dimensions when a menu item is hovered.
 */
@media (min-width: 661px) {
  .sidebar-mini .sidebar-left {
    width: 64px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .sidebar-mini .sidebar-left .nav-pills {
    margin-right: 0;
  }

  .sidebar-mini .sidebar-left .nav-pills > li > a {
    width: 50px;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }

  .sidebar-mini .sidebar-left .nav-pills > li > a > i,
  .sidebar-mini .sidebar-left .nav > li > a > i:first-child {
    width: 50px;
    margin-right: 0;
    margin-left: 0;
  }

  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open,
  .sidebar-mini .sidebar-left .nav-pills > li:hover,
  .es_ES .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open,
  .es_ES .sidebar-mini .sidebar-left .nav-pills > li:hover {
    width: 254px;
  }

  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > a,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > a {
    width: 254px;
    padding-right: 13px;
    padding-left: 13px;
    text-align: left;
  }

  .sidebar-mini .sidebar-left .nav-pills > li.active.nav-dropdown-open > a,
  .sidebar-mini .sidebar-left .nav-pills > li.active:hover > a,
  .sidebar-mini .sidebar-left .nav-pills > li.active > a:hover,
  .sidebar-mini .sidebar-left .nav-pills > li.active > a:focus {
    color: #fff;
    background: var(--dh-950);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--dh-accent);
  }

  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > a > i,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > a > i {
    width: 19px;
    margin-right: 7px;
  }

  .sidebar-mini .sidebar-left .nav-pills > li > .nav-sub,
  .es_ES .sidebar-mini .sidebar-left .nav-pills > li > .nav-sub {
    left: 57px;
    width: 197px;
    background: rgba(42, 15, 78, 0.72);
    box-shadow: 10px 14px 32px rgba(42, 21, 72, 0.18);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
  }

  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > .nav-sub a,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > .nav-sub a {
    background: transparent;
  }

  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > .nav-sub li.active > a,
  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > .nav-sub li > a:hover,
  .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > .nav-sub li > a:focus,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > .nav-sub li.active > a,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > .nav-sub li > a:hover,
  .sidebar-mini .sidebar-left .nav-pills > li:hover > .nav-sub li > a:focus {
    background: rgba(92, 41, 155, 0.68);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
  }

  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills {
    margin-left: 0;
  }

  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > a,
  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills > li:hover > a {
    text-align: right;
  }

  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills > li.nav-dropdown-open > a > i,
  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills > li:hover > a > i {
    margin-right: 0;
    margin-left: 7px;
  }

  html[dir="rtl"] .sidebar-mini .sidebar-left .nav-pills > li > .nav-sub,
  html[dir="rtl"] .es_ES .sidebar-mini .sidebar-left .nav-pills > li > .nav-sub {
    right: 57px;
    left: auto;
  }
}

/*
 * The parent translates the complete 100%-wide container when the optional
 * right off-canvas panel opens. On desktop that makes the content slide below
 * the left navigation. Reserve the panel width instead, keeping both columns
 * in the normal flex layout.
 */
@media (min-width: 992px) {
  body.off-canvas #container {
    padding-right: 0;
    transform: none;
    transition: padding-right 0.3s ease;
  }

  body.off-canvas.off-canvas-open #container {
    padding-right: 240px;
    transform: none;
  }
}

.sidebarRight {
  z-index: 300;
  color: #d8c9eb;
  background: var(--dh-sidebar);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -14px 0 34px rgba(42, 21, 72, 0.18);
}

/* Page title and breadcrumbs */

.breadcrumb {
  margin: 0 0 11px;
  padding: 0 3px;
}

.breadcrumb > li {
  color: var(--dh-muted);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb > li > a {
  color: var(--dh-700);
}

.breadcrumb > li > a:hover,
.breadcrumb > li > a:focus {
  color: var(--dh-900);
}

.breadcrumb > li + li::before {
  color: #b9a5d4;
  content: "›";
}

.breadcrumb > .active {
  color: var(--dh-muted);
}

.main-content-wrapper #main-content .h1 {
  margin: 0 0 25px;
  padding: 0;
  color: var(--dh-ink);
  float: none;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.main-content-wrapper #main-content .h1::after {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--dh-800), var(--dh-purple));
  border-radius: 99px;
  content: "";
}

.res-left.pull-right {
  color: var(--dh-muted);
}

/* Cards, panels and wells */

.panel,
.well,
.modal-content,
.card {
  color: var(--dh-text);
  background: linear-gradient(180deg, #fff 0%, #fcf9ff 100%);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow-soft);
}

.panel {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-default::before,
.custom-module-wrapper::before,
.client-home-panels .panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  background: var(--dh-card-bar);
  content: "";
  opacity: 0.72;
}

.panel-heading {
  padding: 17px 20px;
  border-radius: 0;
}

.panel-default > .panel-heading,
.panel-solid-default > .panel-heading {
  color: var(--dh-ink);
  background: rgba(245, 239, 252, 0.74);
  border-color: var(--dh-border);
}

.panel-title {
  font-size: 15px;
  line-height: 1.35;
}

.panel-title > i,
.panel-heading .panel-title > i {
  color: var(--dh-700);
}

.panel-body {
  padding: 21px;
}

.panel-footer {
  padding: 14px 20px;
  background: #faf7fd;
  border-color: var(--dh-border);
}

.panel-primary,
.panel-primary > .panel-heading {
  border-color: var(--dh-800);
}

.panel-primary > .panel-heading {
  color: #fff;
  background: linear-gradient(135deg, var(--dh-950), var(--dh-800));
}

.well {
  padding: 21px;
  background: rgba(245, 239, 252, 0.66);
  box-shadow: none;
}

.list-group-item {
  padding: 12px 18px;
  color: var(--dh-text);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--dh-border);
}

.list-group-item:hover,
a.list-group-item:hover,
a.list-group-item:focus {
  color: var(--dh-900);
  background: var(--dh-purple-soft);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  color: #fff;
  background: var(--dh-800);
  border-color: var(--dh-800);
}

.whmcs-sidebar .panel {
  border-radius: var(--dh-radius-md);
  box-shadow: 0 8px 24px rgba(74, 29, 143, 0.08);
}

.whmcs-sidebar .panel-heading {
  padding: 15px 17px;
}

.whmcs-sidebar .list-group-item {
  border-right: 0;
  border-left: 0;
}

.whmcs-sidebar a.list-group-item {
  color: var(--dh-700);
}

.whmcs-sidebar a.list-group-item:hover,
.whmcs-sidebar a.list-group-item:focus {
  color: var(--dh-900);
}

.whmcs-sidebar a.list-group-item.active,
.whmcs-sidebar a.list-group-item.active:hover,
.whmcs-sidebar a.list-group-item.active:focus {
  color: #fff;
}

/* Buttons: pill shape from Astro, intentionally without glow or shadow. */

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

.btn:active,
.btn.active {
  transform: translateY(0);
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
.btn-primary:focus,
.btn-primary.focus {
  color: var(--dh-950) !important;
  background: var(--dh-accent) !important;
  border-color: var(--dh-accent) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.btn-3d:hover,
.btn-primary.btn-3d:focus,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
.open .dropdown-toggle.btn-primary,
.open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary.active:hover {
  color: var(--dh-950) !important;
  background: var(--dh-accent-dark) !important;
  border-color: var(--dh-accent-dark) !important;
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover {
  color: var(--dh-950) !important;
  background: var(--dh-accent) !important;
  border-color: var(--dh-accent) !important;
  opacity: 0.55;
}

.btn-primary.btn-trans {
  color: var(--dh-900) !important;
  background: transparent !important;
  border-color: var(--dh-accent) !important;
}

.btn-primary.btn-trans:hover,
.btn-primary.btn-trans:focus,
.btn-primary.btn-trans:active {
  color: var(--dh-950) !important;
  background: var(--dh-accent) !important;
  border-color: var(--dh-accent) !important;
}

.btn-default {
  color: var(--dh-900);
  background: #fff;
  border-color: var(--dh-border);
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
  color: var(--dh-900);
  background: var(--dh-purple-soft);
  border-color: #d5c4e9;
}

.btn-success,
.btn-info,
a.btn-success,
a.btn-success:link,
a.btn-success:visited,
a.btn-info,
a.btn-info:link,
a.btn-info:visited {
  color: #fff;
  background: var(--dh-700);
  border-color: var(--dh-700);
}

.btn-success:hover,
.btn-success:focus,
.btn-info:hover,
.btn-info:focus,
a.btn-success:hover,
a.btn-success:focus,
a.btn-info:hover,
a.btn-info:focus {
  color: #fff;
  background: var(--dh-900);
  border-color: var(--dh-900);
}

.btn-info.btn-3d:hover,
.btn-info.btn-3d:focus {
  color: #fff;
  background: var(--dh-900);
  border-color: var(--dh-900);
}

.btn-info.btn-trans {
  color: var(--dh-700);
  background: transparent;
  border-color: var(--dh-700);
}

.btn-info.btn-trans:hover,
.btn-info.btn-trans:focus,
.btn-info.btn-trans:active {
  color: #fff;
  background: var(--dh-700);
  border-color: var(--dh-700);
}

.btn-warning,
a.btn-warning,
a.btn-warning:link,
a.btn-warning:visited {
  color: var(--dh-950);
  background: var(--dh-accent);
  border-color: var(--dh-accent);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
a.btn-warning:hover,
a.btn-warning:focus,
a.btn-warning:active,
.open .dropdown-toggle.btn-warning {
  color: var(--dh-950);
  background: var(--dh-accent-dark);
  border-color: var(--dh-accent-dark);
}

.btn-primary + .dropdown-menu > li > a:hover,
.btn-primary + .dropdown-menu > li > a:focus,
.btn-primary + .dropdown-menu > li > a.active {
  color: var(--dh-950);
  background: var(--dh-accent);
}

.btn-info + .dropdown-menu > li > a:hover,
.btn-info + .dropdown-menu > li > a:focus {
  color: #fff;
  background: var(--dh-700);
}

.btn-primary .badge {
  color: #fff;
  background: var(--dh-900);
}

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

.btn-link:hover,
.btn-link:focus {
  color: var(--dh-900);
}

section.cart button.btn-link,
section.cart a.btn-link {
  color: var(--dh-700);
}

section.cart button.btn-link:hover,
section.cart button.btn-link:focus,
section.cart a.btn-link:hover,
section.cart a.btn-link:focus {
  color: var(--dh-900);
}

.btn-xs {
  padding: 5px 10px;
}

.btn-sm {
  padding: 8px 14px;
}

.btn-lg {
  padding: 13px 23px;
  font-size: 15px;
}

/* Forms */

.form-control,
.form-wrap-sm input,
.form-wrap-sm select {
  height: 42px;
  color: var(--dh-ink);
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-sm);
  box-shadow: none;
  font-size: 14px;
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-wrap-sm input:focus,
.form-wrap-sm select:focus {
  border-color: var(--dh-700);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(124, 77, 189, 0.14);
}

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

.input-group-addon {
  color: var(--dh-700);
  background: var(--dh-purple-soft);
  border-color: var(--dh-border);
}

.input-group .form-control:first-child,
.input-group-addon:first-child {
  border-radius: var(--dh-radius-sm) 0 0 var(--dh-radius-sm);
}

.input-group .btn:last-child,
.input-group-btn:last-child > .btn {
  border-radius: 0 999px 999px 0;
}

.checkbox label,
.radio label {
  color: var(--dh-text);
}

/* Tables, pagination and tabs */

.table-responsive {
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-md);
}

.table {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.72);
}

.table > thead > tr > th {
  padding: 13px 12px;
  color: var(--dh-ink);
  background: var(--dh-purple-soft);
  border-color: var(--dh-border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td {
  padding: 13px 12px;
  border-color: var(--dh-border);
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(245, 239, 252, 0.42);
}

.table-hover > tbody > tr:hover {
  background: var(--dh-purple-soft);
}

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

.nav-tabs > li > a {
  color: var(--dh-muted);
  border-radius: var(--dh-radius-sm) var(--dh-radius-sm) 0 0;
  font-weight: 700;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--dh-900);
  background: #fff;
  border-color: var(--dh-border) var(--dh-border) #fff;
}

.pagination > li > a,
.pagination > li > span {
  color: var(--dh-700);
  border-color: var(--dh-border);
}

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

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

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

/* Feedback and status */

.alert {
  border-width: 1px;
  border-radius: var(--dh-radius-md);
  box-shadow: none;
}

.alert-success {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

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

.alert-warning {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.label,
.badge {
  border-radius: 999px;
  font-weight: 700;
}

.label-primary,
.badge-primary,
.badge.badge-primary,
.badge.badge-info,
.label-info,
.bg-primary {
  color: #fff;
  background: var(--dh-700) !important;
}

.text-primary {
  color: var(--dh-700) !important;
}

/* Dashboard and WHMCS-specific components */

.dashboard-tile {
  min-height: 128px;
  margin-bottom: 24px;
  padding: 18px;
  color: var(--dh-ink);
  background: linear-gradient(180deg, #fff, #fcf9ff);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow-soft);
}

.dashboard-tile.tile-turquoise,
.dashboard-tile.tile-blue,
.dashboard-tile.tile-purple,
.dashboard-tile.tile-red,
.dashboard-tile.tile-yellow {
  color: #fff;
  background: linear-gradient(135deg, var(--dh-950), var(--dh-800));
}

.dashboard-tile.tile-yellow {
  color: var(--dh-950);
  background: linear-gradient(135deg, var(--dh-accent), #ffe96f);
}

.dashboard-tile .header .title {
  font-weight: 800;
  letter-spacing: 0.06em;
}

#main-content .dashboard-tile .content h1 {
  color: inherit;
  font-weight: 800;
}

.client-home-panels .panel,
.store-promoted-product,
.product-info {
  border-radius: var(--dh-radius);
}

.store-promoted-product ul.features li .fas:not(.fa-spinner),
.store-promoted-product ul.features li .far:not(.fa-spinner) {
  color: var(--dh-700);
}

.domain-checker-container,
body.domainregister .domain-checker-container,
body.domaintransfer .domain-checker-container,
section.cart .domain-checker-container {
  color: var(--dh-text);
  background: linear-gradient(180deg, #fff, #fcf9ff) !important;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow-soft);
  margin-bottom: 24px !important;
  padding: 24px 26px !important;
}

.domain-checker-container > .row {
  margin-right: 0;
  margin-left: 0;
}

.domain-checker-container form,
.domain-checker-container .form-group,
.domain-checker-container .input-group {
  margin-top: 0;
  margin-bottom: 0;
}

.domain-checker-container .input-group {
  width: 100%;
  border-radius: var(--dh-radius-md);
}

.domain-checker-container .input-group .form-control:first-child,
.domain-checker-container .input-group-addon:first-child,
.domain-checker-container .input-group-btn:first-child > .btn {
  border-radius: var(--dh-radius-md) 0 0 var(--dh-radius-md) !important;
}

.domain-checker-container .input-group .form-control:last-child,
.domain-checker-container .input-group-addon:last-child,
.domain-checker-container .input-group-btn:last-child > .btn {
  border-radius: 0 var(--dh-radius-md) var(--dh-radius-md) 0 !important;
}

.domain-checker-container .input-group-btn > .btn,
.domain-checker-container .btn-cart-check-availability,
.domain-checker-container .domain-check-availability {
  height: 42px;
  margin-bottom: 0;
}

.domain-checker-container .input-group-lg .form-control,
.domain-checker-container .input-group-lg .input-group-addon,
.domain-checker-container .input-group-lg .input-group-btn > .btn {
  height: 46px;
}

.domain-checker-container h1,
.domain-checker-container h2,
.domain-checker-container h3,
.domain-checker-container label,
.domain-checker-container p {
  color: var(--dh-ink);
}

@media (max-width: 640px) {
  .domain-checker-container,
  body.domainregister .domain-checker-container,
  body.domaintransfer .domain-checker-container,
  section.cart .domain-checker-container {
    padding: 18px 14px !important;
  }
}

.domain-pricing .tld-pricing-header {
  color: var(--dh-ink) !important;
  background: var(--dh-purple-soft) !important;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-sm) var(--dh-radius-sm) 0 0;
}

.domain-pricing .tld-pricing-header *,
body.domainregister .table > thead > tr > th,
body.domaintransfer .table > thead > tr > th,
section.cart .table > thead > tr > th {
  color: var(--dh-ink) !important;
}

body.domainregister .table > thead > tr > th,
body.domaintransfer .table > thead > tr > th,
section.cart .table > thead > tr > th {
  background: var(--dh-purple-soft) !important;
  border-color: var(--dh-border) !important;
}

.logincontainer,
.login-container {
  max-width: 520px;
  margin-top: 30px;
}

.modal-content {
  overflow: hidden;
}

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

.dropdown-menu {
  border-color: var(--dh-border);
  border-radius: var(--dh-radius-md);
  box-shadow: var(--dh-shadow-soft);
}

.dropdown-menu > li > a {
  padding: 8px 15px;
  color: var(--dh-text);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: var(--dh-900);
  background: var(--dh-purple-soft);
}

/* Footer */

#footer {
  position: relative;
  z-index: 2;
  min-height: 73px;
  margin: 0;
  color: #d8c9eb;
  background: var(--dh-footer);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dh-800), var(--dh-purple));
  content: "";
}

#footer .panel-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 25px clamp(18px, 3vw, 44px);
  color: #d8c9eb;
  background: transparent;
  border: 0;
}

#footer .footer-text {
  color: #d8c9eb;
}

#footer a {
  color: #f3ebfc;
}

#footer a:hover,
#footer a:focus {
  color: var(--dh-accent);
}

/* Keyboard focus */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dh-focus);
  outline-offset: 2px;
}

.btn:focus,
.btn:active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline-color: var(--dh-focus);
}

/* RTL adjustments */

html[dir="rtl"] #header .brand {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

html[dir="rtl"] .sidebar-left .nav-pills > li.active > a,
html[dir="rtl"] .sidebar-left .nav-pills > li.active > a:hover,
html[dir="rtl"] .sidebar-left .nav-pills > li.active > a:focus {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset -3px 0 0 var(--dh-accent);
}

/* Responsive layout */

@media (max-width: 991px) {
  .main-content-wrapper #main-content {
    padding: 24px 18px 64px;
  }

  /*
   * Keep Bootstrap's column gutter in sidebar layouts. The parent `.row`
   * uses negative margins, so removing this padding makes panels touch the
   * viewport while pages without a sidebar retain the main-content inset.
   */
  #internal-content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .whmcs-sidebar {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 660px) {
  #header {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    min-height: 70px;
    overflow: visible;
  }

  #header .brand {
    float: none;
    flex: 0 1 clamp(118px, 40vw, 164px);
    width: clamp(118px, 40vw, 164px);
    min-width: 0;
    height: 70px;
  }

  #header .logo {
    height: 70px;
    padding: 0 10px;
  }

  #header .logo img {
    width: 100%;
    max-width: 144px;
    max-height: 48px;
  }

  #header .logotext {
    font-size: 14px;
  }

  #header .logotext::before {
    width: 25px;
    height: 25px;
    margin-right: 7px;
  }

  #header .toggle-navigation.toggle-left {
    float: none;
    flex: 0 0 auto;
    margin: 0 0 0 6px;
  }

  #header .user-nav {
    float: none;
    flex: 0 0 auto;
    min-width: 0;
    margin-right: 12px;
    margin-left: auto;
    padding-top: 0;
  }

  #header .user-nav > ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  #header .user-nav ul li,
  #header .user-nav ul li.dropdown.settings,
  #header .messages,
  #header .settings,
  #header .languages {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal;
  }

  #header .btn-default {
    width: 35px;
    height: 35px;
  }

  #header .user-nav ul li.dropdown.messages .dropdown-menu {
    position: fixed;
    top: 64px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  #header .user-nav ul li.dropdown.settings .dropdown-menu {
    right: 8px;
    left: auto;
    max-width: calc(100vw - 16px);
  }

  /* Stack navigation and content so neither can shrink the other. */
  .flex-wrap,
  #container.sidebar-opened .flex-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .sidebar.sidebar-left {
    position: relative;
    right: auto !important;
    left: 0 !important;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 14px 12px 22px;
    transform: none !important;
  }

  #container:not(.sidebar-opened) .sidebar.sidebar-left {
    display: none;
  }

  #container.sidebar-opened .sidebar.sidebar-left {
    display: block;
    right: auto !important;
    left: 0 !important;
    transform: none !important;
  }

  html[dir="rtl"] .sidebar.sidebar-left,
  html[dir="rtl"] #container.sidebar-opened .sidebar.sidebar-left {
    right: 0 !important;
    left: auto !important;
  }

  .main-content-wrapper,
  .sidebar-left + .main-content-wrapper {
    width: 100%;
    min-width: 0;
  }

  .sidebar-left .nav-pills,
  .sidebar-left .nav-pills > li,
  .sidebar-left .nav .nav-sub,
  .sidebar-left .nav .nav-sub > li {
    width: 100%;
  }

  .sidebar-left .nav-pills > li,
  .sidebar-left .nav .nav-sub > li,
  .sidebar-left .nav-pills > li:hover,
  .sidebar-left .nav .nav-sub > li:hover {
    background: transparent;
  }

  .sidebar-left .nav-pills > li > a,
  .sidebar-left .nav .nav-sub li > a {
    position: relative !important;
    z-index: 1;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 48px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .sidebar-left .nav-pills > li > a::before,
  .sidebar-left .nav .nav-sub li > a::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    content: "";
    pointer-events: auto;
  }

  .sidebar-left .nav-pills > li > a > *,
  .sidebar-left .nav .nav-sub li > a > *,
  .sidebar-left .nav a::before,
  .sidebar-left .nav a::after {
    pointer-events: none;
  }

  .sidebar-left .nav-dropdown > a::after {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .sidebar-left .nav .nav-sub {
    right: auto !important;
    left: 0 !important;
    width: 100% !important;
    margin-right: 0;
    margin-left: 0;
  }

  html[dir="rtl"] .sidebar-left .nav-dropdown > a::after {
    margin-right: auto;
    margin-left: 0;
  }

  .main-content-wrapper #main-content {
    min-height: auto;
    padding: 22px 14px 48px;
  }

  .main-content-wrapper #main-content .h1 {
    font-size: 28px;
  }

  .panel-body {
    padding: 17px;
  }

  .table-responsive {
    border-radius: var(--dh-radius-sm);
  }

  #footer .panel-body {
    padding: 23px 16px;
  }
}

/*
 * On very narrow screens, keep the header focused on brand and navigation.
 * Account actions reappear in the first row of the expanded mobile menu.
 */
@media (max-width: 380px) {
  #header .toggle-navigation.toggle-left {
    margin-right: 12px;
    margin-left: auto;
  }

  #header .user-nav {
    display: none;
  }

  #container.sidebar-opened #header .user-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 64px;
    margin-right: 0;
    padding: 0 14px;
    background: var(--dh-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  #container.sidebar-opened #header .user-nav > ul {
    justify-content: flex-end;
  }

  #container.sidebar-opened .sidebar.sidebar-left {
    padding-top: 76px;
  }
}

@media (max-width: 480px) {
  .btn:not(.btn-block) {
    white-space: normal;
  }
}

@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;
  }
}
