/*
 * HTech Solutions WHMCS client-area theme
 * Version 0.2.5 for the Twenty-One parent theme.
 */

:root {
  --htech-slate-950: #0f172a;
  --htech-slate-900: #0f172a;
  --htech-slate-800: #1e293b;
  --htech-slate-700: #334155;
  --htech-teal-700: #0f766e;
  --htech-teal-600: #0d9488;
  --htech-teal-500: #14b8a6;
  --htech-teal-100: #ccfbf1;
  --htech-gold-700: #92400e;
  --htech-gold-600: #9a4510;
  --htech-gold-500: #b45309;
  --htech-gold-100: #fff7ed;
  --htech-green-700: #087a43;
  --htech-green-100: #e8f8ef;
  --htech-red-700: #a93243;
  --htech-red-100: #f9e9ec;
  --htech-ink: #243943;
  --htech-muted: #607681;
  --htech-line: #d7e1e4;
  --htech-canvas: #f3f7f8;
  --htech-surface: #ffffff;
  --htech-radius-sm: 6px;
  --htech-radius: 10px;
  --htech-radius-lg: 16px;
  --htech-shadow-sm: 0 2px 8px rgba(16, 32, 42, 0.06);
  --htech-shadow: 0 14px 38px rgba(16, 32, 42, 0.09);
}

html {
  scroll-behavior: smooth;
}

body,
body.primary-bg-color {
  background: var(--htech-canvas);
  color: var(--htech-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--htech-teal-700);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(210, 162, 59, 0.62);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.panel-title {
  color: var(--htech-slate-900);
  font-weight: 750;
  letter-spacing: -0.018em;
}

/* Header */

.htech-utility-bar {
  background: var(--htech-teal-700);
  color: #d8e5e8;
  font-size: 0.78rem;
  min-height: 38px;
}

.htech-utility-bar .container {
  min-height: 38px;
}

.htech-utility-message i {
  color: var(--htech-gold-500);
  margin-right: 0.4rem;
}

.htech-utility-links {
  align-items: center;
  display: flex;
  gap: 1.2rem;
}

.htech-utility-links a {
  color: #d8e5e8;
  font-weight: 650;
}

.htech-utility-links a:hover,
.htech-utility-links a:focus {
  color: #fff;
  text-decoration: none;
}

.header .topbar.htech-account-bar {
  background: var(--htech-slate-800);
  border: 0;
}

.htech-account-bar .container {
  min-height: 44px;
}

.htech-account-bar .btn,
.htech-account-bar .input-group-text {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8f0f2;
}

.htech-account-bar .btn:hover,
.htech-account-bar .btn:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.htech-notifications {
  border: 0 !important;
  padding-left: 0;
}

.htech-alert-count {
  align-items: center;
  background: var(--htech-gold-500);
  border-radius: 999px;
  color: var(--htech-slate-950);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  margin: 0 0.25rem;
  min-width: 20px;
}

.htech-brandbar {
  background: var(--htech-surface);
  border: 0;
  box-shadow: 0 1px 0 var(--htech-line);
}

.htech-brandbar .container {
  min-height: 82px;
}

.header .logo-img {
  display: block;
  height: auto;
  max-height: 58px;
  max-width: 251px;
}

.htech-client-area-label {
  align-items: center;
  border-left: 1px solid var(--htech-line);
  color: var(--htech-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-left: 1rem;
  min-height: 32px;
  padding-left: 1rem;
  text-transform: uppercase;
}

.htech-brandbar .search .form-control {
  min-width: 245px;
}

.header .toolbar .nav-link {
  color: var(--htech-slate-800);
}

.header .toolbar .nav-link:hover,
.header .toolbar .nav-link:focus {
  color: var(--htech-teal-700);
}

.header .badge-info {
  background: var(--htech-gold-500);
  color: var(--htech-slate-950);
}

.main-navbar-wrapper,
.navbar.main-navbar-wrapper {
  background: var(--htech-slate-900);
  border: 0;
  padding-bottom: 0;
  padding-top: 0;
}

.main-navbar-wrapper .navbar-nav > li > a,
.main-navbar-wrapper .navbar-nav .nav-link {
  color: #e3ecef;
  font-weight: 650;
  padding-bottom: 0.9rem;
  padding-top: 0.9rem;
}

.main-navbar-wrapper .navbar-nav > li > a:hover,
.main-navbar-wrapper .navbar-nav > li > a:focus,
.main-navbar-wrapper .navbar-nav > .active > a,
.main-navbar-wrapper .navbar-nav .active > .nav-link,
.main-navbar-wrapper .navbar-nav .show > .nav-link {
  background: rgba(11, 133, 136, 0.24);
  color: #fff;
}

.main-navbar-wrapper .dropdown-menu {
  border: 1px solid var(--htech-line);
  border-radius: var(--htech-radius);
  box-shadow: var(--htech-shadow);
}

.main-navbar-wrapper .dropdown-item:hover,
.main-navbar-wrapper .dropdown-item:focus,
.main-navbar-wrapper .dropdown-item.active {
  background: var(--htech-teal-100);
  color: var(--htech-slate-950);
}

.master-breadcrumb {
  background: #e7eef0;
  border: 0;
}

.master-breadcrumb .breadcrumb {
  color: var(--htech-muted);
}

/* Main layout */

#main-body {
  background: var(--htech-canvas);
  min-height: 58vh;
  padding: 2.25rem 0 4rem;
}

.header-lined {
  border-bottom-color: var(--htech-line);
  margin-bottom: 1.5rem;
}

.header-lined h1 {
  color: var(--htech-slate-900);
}

.header-lined h1 small,
.text-muted {
  color: var(--htech-muted) !important;
}

/* Controls */

.btn {
  border-radius: var(--htech-radius-sm);
  font-weight: 700;
}

.btn-primary {
  background: var(--htech-teal-700);
  border-color: var(--htech-teal-700);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--htech-slate-900);
  border-color: var(--htech-slate-900);
  color: #fff;
}

.btn-success {
  background: var(--htech-green-700);
  border-color: var(--htech-green-700);
}

.btn-warning,
.btn-gold {
  background: var(--htech-gold-500);
  border-color: var(--htech-gold-500);
  color: var(--htech-slate-950);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-gold:hover,
.btn-gold:focus {
  background: var(--htech-gold-600);
  border-color: var(--htech-gold-600);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--htech-teal-700);
  color: var(--htech-teal-700);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--htech-teal-700);
  border-color: var(--htech-teal-700);
  color: #fff;
}

.btn-default,
.btn-secondary {
  background: #fff;
  border-color: #b9c9cf;
  color: var(--htech-slate-800);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  background: #e8eff1;
  border-color: #a9bbc2;
  color: var(--htech-slate-950);
}

.form-control,
.custom-select,
.input-group-text {
  border-color: #b9c9cf;
  border-radius: var(--htech-radius-sm);
  color: var(--htech-ink);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--htech-teal-600);
  box-shadow: 0 0 0 3px rgba(11, 133, 136, 0.15);
}

.form-control::placeholder {
  color: #81949c;
}

/* Shared cards and sidebars */

.card,
.panel,
.modal-content {
  background: var(--htech-surface);
  border: 1px solid var(--htech-line);
  border-radius: var(--htech-radius);
  box-shadow: none;
}

.card-header,
.panel-heading,
.modal-header {
  background: #edf3f4;
  border-bottom-color: var(--htech-line);
  color: var(--htech-slate-900);
}

.card-footer,
.panel-footer,
.modal-footer {
  background: #f8fafb;
  border-top-color: var(--htech-line);
}

.card[class*="card-accent-"] {
  border-top: 3px solid var(--htech-teal-600);
}

.card.card-accent-gold,
.card.card-accent-sun-flower,
.card.card-accent-yellow {
  border-top-color: var(--htech-gold-500);
}

.sidebar .card,
.sidebar .panel {
  overflow: hidden;
}

.sidebar .card-header,
.sidebar .panel-heading {
  background: var(--htech-slate-800);
  color: #fff;
}

.sidebar .card-title,
.sidebar .panel-title {
  color: inherit;
}

.sidebar .list-group-item {
  border-color: var(--htech-line);
  color: var(--htech-ink);
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus,
.sidebar .list-group-item.active {
  background: var(--htech-teal-100);
  border-color: var(--htech-line);
  color: var(--htech-slate-950);
}

/* Tables, pagination, alerts, and statuses */

.table {
  background: var(--htech-surface);
  color: var(--htech-ink);
}

.table thead th,
.dataTables_wrapper table.table-list thead th {
  background: var(--htech-slate-800);
  border-color: var(--htech-slate-700);
  color: #fff;
  font-weight: 700;
}

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

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

.page-item.active .page-link {
  background: var(--htech-teal-700);
  border-color: var(--htech-teal-700);
}

.page-link {
  color: var(--htech-teal-700);
}

.alert-info {
  background: var(--htech-teal-100);
  border-color: #b5dadd;
  color: #28575b;
}

.alert-success,
.status-active,
.status-paid {
  background: var(--htech-green-100) !important;
  border-color: #bfe9d1 !important;
  color: var(--htech-green-700) !important;
}

.alert-warning,
.status-pending,
.status-unpaid {
  background: var(--htech-gold-100) !important;
  border-color: #ead29d !important;
  color: #624812 !important;
}

.alert-danger,
.status-overdue,
.status-cancelled,
.status-terminated {
  background: var(--htech-red-100) !important;
  border-color: #e8bcc4 !important;
  color: var(--htech-red-700) !important;
}

.badge-success,
.label-success,
.bg-success {
  background: var(--htech-green-700) !important;
  color: #fff !important;
}

.badge-warning,
.label-warning {
  background: var(--htech-gold-500) !important;
  color: var(--htech-slate-950) !important;
}

.badge-danger,
.label-danger {
  background: var(--htech-red-700) !important;
  color: #fff !important;
}

/* Logged-in dashboard */

.htech-dashboard-welcome {
  align-items: center;
  background:
    radial-gradient(
      circle at 93% 16%,
      rgba(210, 162, 59, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, var(--htech-slate-950), var(--htech-slate-800));
  border-radius: var(--htech-radius-lg);
  box-shadow: var(--htech-shadow);
  color: #dce8eb;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
}

.htech-dashboard-welcome::after {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  height: 220px;
  position: absolute;
  right: -80px;
  top: -85px;
  width: 220px;
}

.htech-dashboard-welcome > * {
  position: relative;
  z-index: 1;
}

.htech-eyebrow {
  color: var(--htech-gold-500);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.htech-dashboard-welcome h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 0.7rem;
}

.htech-dashboard-welcome p {
  font-size: 1.04rem;
  margin: 0;
  max-width: 630px;
}

.htech-dashboard-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 190px;
}

.htech-dashboard-actions .btn {
  padding: 0.72rem 1rem;
}

.htech-dashboard-actions .btn i {
  margin-right: 0.35rem;
}

.htech-section-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.htech-section-heading h2 {
  font-size: 1.45rem;
  margin: 0;
}

.htech-section-heading .htech-eyebrow {
  color: var(--htech-teal-700);
  margin-bottom: 0.3rem;
}

.htech-secure-label {
  color: var(--htech-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.htech-secure-label i {
  color: var(--htech-teal-700);
  margin-right: 0.3rem;
}

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

.htech-stat-card {
  align-items: center;
  background: var(--htech-surface);
  border: 1px solid var(--htech-line);
  border-radius: var(--htech-radius);
  box-shadow: var(--htech-shadow-sm);
  color: var(--htech-ink);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 1rem;
  position: relative;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.htech-stat-card::before {
  background: var(--htech-teal-600);
  border-radius: var(--htech-radius) 0 0 var(--htech-radius);
  bottom: -1px;
  content: "";
  left: -1px;
  position: absolute;
  top: -1px;
  width: 4px;
}

.htech-stat-card:hover,
.htech-stat-card:focus {
  border-color: #b4ccd1;
  box-shadow: var(--htech-shadow);
  color: var(--htech-slate-950);
  text-decoration: none;
  transform: translateY(-2px);
}

.htech-stat-billing::before {
  background: var(--htech-gold-500);
}

.htech-stat-support::before {
  background: var(--htech-slate-700);
}

.htech-stat-icon {
  align-items: center;
  background: var(--htech-teal-100);
  border-radius: 50%;
  color: var(--htech-teal-700);
  display: inline-flex;
  font-size: 1.05rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.htech-stat-billing .htech-stat-icon {
  background: var(--htech-gold-100);
  color: var(--htech-gold-700);
}

.htech-stat-support .htech-stat-icon {
  background: #e8eef0;
  color: var(--htech-slate-700);
}

.htech-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.htech-stat-content strong {
  color: var(--htech-slate-950);
  font-size: 1.65rem;
  line-height: 1;
}

.htech-stat-content span {
  color: var(--htech-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.htech-stat-arrow {
  color: #9aaeb5;
  font-size: 0.78rem;
}

.htech-addon-output {
  margin-top: 1.5rem;
}

.htech-dashboard-panels {
  margin-top: 2.25rem;
}

.htech-dashboard-panels .card {
  box-shadow: var(--htech-shadow-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.htech-dashboard-panels .list-group-item:hover,
.htech-dashboard-panels .list-group-item:focus {
  background: #edf6f6;
}

/* Public client-area homepage */

.htech-portal-intro {
  align-items: center;
  background:
    radial-gradient(circle at 90% 15%, rgba(180, 83, 9, 0.22), transparent 34%),
    linear-gradient(135deg, var(--htech-slate-950), var(--htech-slate-800));
  border-radius: var(--htech-radius-lg);
  box-shadow: var(--htech-shadow);
  color: #dbe7ea;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 190px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.htech-portal-copy {
  max-width: 690px;
  position: relative;
  z-index: 2;
}

.htech-portal-intro h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.htech-portal-intro p {
  font-size: 1.05rem;
  margin-bottom: 1.65rem;
  max-width: 620px;
}

.htech-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.htech-portal-actions .btn {
  padding: 0.72rem 1.15rem;
}

.htech-portal-mark {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 190px;
  position: relative;
}

.htech-portal-mark i {
  color: var(--htech-gold-500);
  font-size: 3.25rem;
  position: relative;
  z-index: 2;
}

.htech-portal-mark-ring {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  height: 168px;
  position: absolute;
  width: 168px;
}

.htech-portal-mark-ring::before,
.htech-portal-mark-ring::after {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  inset: 18px;
  position: absolute;
}

.htech-portal-mark-ring::after {
  inset: 38px;
}

.htech-quick-links {
  margin-top: 2.25rem;
}

.htech-quick-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.htech-quick-link {
  align-items: center;
  background: var(--htech-surface);
  border: 1px solid var(--htech-line);
  border-radius: var(--htech-radius);
  box-shadow: var(--htech-shadow-sm);
  color: var(--htech-ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 1.15rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.htech-quick-link:hover,
.htech-quick-link:focus {
  border-color: var(--htech-teal-600);
  box-shadow: var(--htech-shadow);
  color: var(--htech-slate-950);
  text-decoration: none;
  transform: translateY(-2px);
}

.htech-quick-link-icon {
  align-items: center;
  background: var(--htech-teal-100);
  border-radius: 50%;
  color: var(--htech-teal-700);
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.htech-quick-link strong,
.htech-quick-link small {
  display: block;
}

.htech-quick-link strong {
  color: var(--htech-slate-900);
  font-size: 1rem;
}

.htech-quick-link small {
  color: var(--htech-muted);
  margin-top: 0.2rem;
}

.htech-quick-link-arrow {
  color: var(--htech-gold-500);
  font-size: 0.8rem;
}

/* Parent domain-search harmony */

.home-domain-search {
  background: var(--htech-slate-800) !important;
  color: #fff;
}

.home-domain-search h2,
.home-domain-search .btn-link {
  color: #fff;
}

.home-domain-search .form-control,
.home-domain-search .btn {
  min-height: 48px;
}

#frmDomainHomepage .btn-success,
#frmDomainHomepage #btnTransfer,
#frmDomainHomepage #btnTransfer2 {
  background: var(--htech-gold-500) !important;
  border-color: var(--htech-gold-500) !important;
  color: var(--htech-slate-950) !important;
}

#frmDomainHomepage .btn-success:hover,
#frmDomainHomepage .btn-success:focus,
#frmDomainHomepage #btnTransfer:hover,
#frmDomainHomepage #btnTransfer:focus,
#frmDomainHomepage #btnTransfer2:hover,
#frmDomainHomepage #btnTransfer2:focus {
  background: var(--htech-gold-600) !important;
  border-color: var(--htech-gold-600) !important;
  color: #fff !important;
}

/* Footer */

.htech-footer {
  background: var(--htech-slate-950);
  border: 0;
  color: #cbdadd;
  padding: 0;
}

.htech-footer-grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 2.7rem 0 2.1rem;
}

.htech-footer-logo {
  display: block;
  height: auto;
  margin-bottom: 0.85rem;
  max-width: 160px;
}

.htech-footer-brand p {
  margin: 0;
  max-width: 420px;
}

.htech-footer-links {
  display: grid;
  gap: 0.6rem 1.4rem;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.htech-footer a,
.htech-footer .btn {
  color: #dfe9eb;
}

.htech-footer a:hover,
.htech-footer a:focus,
.htech-footer .btn:hover,
.htech-footer .btn:focus {
  color: var(--htech-gold-500);
  text-decoration: none;
}

.htech-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 0 1.35rem;
}

.htech-footer-legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: flex-end;
}

.htech-footer-legal p {
  color: #aebfc4;
  font-size: 0.78rem;
}

/* Responsive adjustments */

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

  .main-navbar-wrapper .navbar-nav > li > a,
  .main-navbar-wrapper .navbar-nav .nav-link {
    border-radius: var(--htech-radius-sm);
    padding: 0.65rem 0.8rem;
  }

  .htech-mobile-search {
    padding-top: 0.5rem;
  }

  .htech-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  #main-body {
    padding: 1.4rem 0 3rem;
  }

  .htech-dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .htech-dashboard-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .htech-portal-intro {
    grid-template-columns: 1fr;
  }

  .htech-portal-mark {
    display: none;
  }

  .htech-quick-link-grid {
    grid-template-columns: 1fr;
  }

  .htech-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .htech-footer-grid {
    grid-template-columns: 1fr;
  }

  .htech-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .htech-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .htech-utility-links {
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
  }

  .htech-utility-links a:first-child {
    display: none;
  }

  .htech-brandbar .container {
    min-height: 72px;
  }

  .header .logo-img {
    max-width: 195px;
  }

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

  .htech-dashboard-actions,
  .htech-dashboard-actions .btn {
    width: 100%;
  }

  .htech-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
