/* =========================================================
   HOSTINGURU MODERN — Standalone WHMCS Theme
   Design system (Bootstrap 3 markup compatible)
   Color variables are injected dynamically in head.tpl
   ========================================================= */

:root {
  --hg-primary: #6366f1;
  --hg-primary-dark: #4f46e5;
  --hg-secondary: #0ea5e9;
  --hg-accent: #06b6d4;
  --hg-success: #10b981;
  --hg-warning: #f59e0b;
  --hg-danger: #ef4444;
  --hg-dark: #0f172a;
  --hg-dark-2: #1e293b;
  --hg-dark-3: #334155;
  --hg-gray: #64748b;
  --hg-gray-light: #94a3b8;
  --hg-light: #f1f5f9;
  --hg-bg: #f8fafc;
  --hg-border: #e2e8f0;
  --hg-radius: 12px;
  --hg-radius-lg: 16px;
  --hg-radius-xl: 24px;
  --hg-shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --hg-shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --hg-shadow-lg: 0 10px 15px -3px rgba(15,23,42,.1), 0 4px 6px -4px rgba(15,23,42,.05);
  --hg-shadow-xl: 0 20px 25px -5px rgba(15,23,42,.12), 0 8px 10px -6px rgba(15,23,42,.06);
  --hg-gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --hg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --hg-transition: all .25s cubic-bezier(.4,0,.2,1);
  --hg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ----- Base ----- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hg-body {
  font-family: var(--hg-font);
  background: var(--hg-bg);
  color: var(--hg-dark-3);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
  font-family: var(--hg-font);
  font-weight: 700;
  color: var(--hg-dark);
  letter-spacing: -0.02em;
}
a { color: var(--hg-primary); transition: var(--hg-transition); }
a:hover, a:focus { color: var(--hg-primary-dark); text-decoration: none; }
img { max-width: 100%; }
.d-none-xs { } /* visible by default; hidden on xs below */

/* ----- Top bar ----- */
.hg-topbar {
  background: var(--hg-dark);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.hg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex-wrap: wrap;
}
.hg-topbar-left { display: flex; align-items: center; gap: 18px; }
.hg-topbar-item { color: rgba(255,255,255,.65); display: inline-flex; align-items: center; gap: 7px; }
a.hg-topbar-item:hover { color: #fff; }
.hg-topbar-item .hg-pulse { color: var(--hg-success); font-size: 8px; animation: hgPulse 2s infinite; }
@keyframes hgPulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.hg-topbar-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.hg-topbar-nav > li > a {
  color: rgba(255,255,255,.7);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 500;
}
.hg-topbar-nav > li > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hg-badge-dot {
  background: var(--hg-danger);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 3px;
}
.hg-admin-badge { color: var(--hg-warning) !important; }
.client-alerts { list-style: none; padding: 6px; margin: 0; min-width: 260px; }
.client-alerts li a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--hg-dark-3); }
.client-alerts li a:hover { background: var(--hg-light); }
.client-alerts li.none { padding: 16px; text-align: center; color: var(--hg-gray); }

/* ----- Header / Navbar ----- */
.hg-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--hg-border);
  transition: var(--hg-transition);
}
.hg-header.hg-header-scrolled { box-shadow: var(--hg-shadow-md); }
.hg-header .navbar-main {
  background: transparent;
  border: none;
  margin: 0;
  min-height: 70px;
}
.hg-header .navbar-header { display: flex; align-items: center; min-height: 70px; }
.hg-logo { display: flex; align-items: center; height: 70px; padding: 0; }
.hg-logo img { max-height: 40px; width: auto; }
.hg-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--hg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hg-header .navbar-nav { margin: 0; }
.hg-header .navbar-nav > li > a {
  color: var(--hg-dark-3);
  font-weight: 500;
  font-size: 14.5px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  transition: var(--hg-transition);
}
.hg-header .navbar-nav > li > a:hover,
.hg-header .navbar-nav > li.active > a {
  color: var(--hg-primary);
  background: transparent;
}
.hg-header .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  height: 2px;
  background: var(--hg-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--hg-transition);
}
.hg-header .navbar-nav > li:hover > a::after,
.hg-header .navbar-nav > li.active > a::after { transform: scaleX(1); }
.hg-header .navbar-nav .caret { border-top-color: currentColor; }

/* Cart button in nav */
.hg-cart-item { display: flex; align-items: center; }
.hg-cart-link {
  margin: 16px 0 16px 10px;
  background: var(--hg-gradient) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: var(--hg-radius) !important;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.hg-cart-link::after { display: none !important; }
.hg-cart-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,.4); color: #fff !important; }

/* Dropdown menus */
.hg-header .dropdown-menu,
.navbar-main .dropdown-menu {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow-lg);
  padding: 8px;
  margin-top: 6px;
  min-width: 220px;
}
.navbar-main .dropdown-menu > li > a {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--hg-dark-3);
}
.navbar-main .dropdown-menu > li > a:hover {
  background: var(--hg-light);
  color: var(--hg-primary);
}
.navbar-toggle {
  border: 1px solid var(--hg-border);
  border-radius: 8px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.navbar-toggle .icon-bar { background: var(--hg-dark); }

/* ----- Hero ----- */
.hg-hero {
  position: relative;
  background: var(--hg-gradient-dark);
  padding: 80px 0 90px;
  overflow: hidden;
  text-align: center;
}
.hg-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(99,102,241,.28) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(14,165,233,.22) 0%, transparent 45%);
  animation: hgFloat 12s ease-in-out infinite alternate;
}
@keyframes hgFloat { from{transform:translateY(0) scale(1);} to{transform:translateY(-20px) scale(1.05);} }
.hg-hero-inner { position: relative; z-index: 1; }
.hg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hg-hero-badge i { color: var(--hg-warning); }
.hg-hero-title {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hg-hero-subtitle {
  color: rgba(255,255,255,.7);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hg-hero-search { max-width: 680px; margin: 0 auto; }
.hg-search-group {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--hg-radius-lg);
  padding: 8px;
  box-shadow: var(--hg-shadow-xl);
  position: relative;
}
.hg-search-icon { color: var(--hg-gray-light); margin: 0 6px 0 14px; font-size: 16px; }
.hg-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 16px;
  font-family: var(--hg-font);
  color: var(--hg-dark);
  background: transparent;
  min-width: 0;
}
.hg-search-btn {
  border: none;
  background: var(--hg-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--hg-radius);
  cursor: pointer;
  transition: var(--hg-transition);
  white-space: nowrap;
}
.hg-search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.4); }
.hg-search-btn-alt { background: linear-gradient(135deg, var(--hg-success), #059669); margin-left: 6px; }
.hg-hero-tlds { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hg-tld {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ----- Main body ----- */
.hg-main { padding: 40px 0 70px; min-height: 50vh; }

/* ----- Page header / breadcrumb ----- */
.hg-pageheader { margin-bottom: 28px; }
.hg-pageheader h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.hg-pageheader .lead, .hg-pageheader p { color: var(--hg-gray); font-size: 16px; margin: 0; }
.breadcrumb {
  background: transparent;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--hg-border);
  font-size: 13px;
  border-radius: 0;
}
.breadcrumb > li + li::before { color: var(--hg-gray-light); content: "\203A"; }
.breadcrumb > li > a { color: var(--hg-gray); font-weight: 500; }
.breadcrumb > .active { color: var(--hg-primary); font-weight: 600; }

/* ----- Buttons ----- */
.btn {
  font-family: var(--hg-font);
  font-weight: 600;
  border-radius: var(--hg-radius);
  padding: 9px 18px;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: var(--hg-transition);
}
.btn:focus, .btn:active:focus { outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.btn-primary { background: var(--hg-gradient); border: none; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.25); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--hg-gradient); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,.38); }
.btn-success { background: linear-gradient(135deg, var(--hg-success), #059669); border: none; color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.25); }
.btn-success:hover, .btn-success:focus, .btn-success:active { background: linear-gradient(135deg, var(--hg-success), #059669); color:#fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,185,129,.38); }
.btn-danger { background: linear-gradient(135deg, var(--hg-danger), #dc2626); border: none; color:#fff; }
.btn-warning { background: linear-gradient(135deg, var(--hg-warning), #d97706); border: none; color:#fff; }
.btn-info { background: linear-gradient(135deg, var(--hg-secondary), #0284c7); border: none; color:#fff; }
.btn-default {
  background: #fff;
  border: 1px solid var(--hg-border);
  color: var(--hg-dark-3);
}
.btn-default:hover, .btn-default:focus { background: var(--hg-light); border-color: var(--hg-gray-light); color: var(--hg-dark); }
.btn-link { color: var(--hg-primary); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: var(--hg-radius); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { display: block; width: 100%; }

/* ----- Forms ----- */
.form-control {
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 10px 14px;
  font-size: 14px;
  height: auto;
  color: var(--hg-dark);
  box-shadow: none;
  transition: var(--hg-transition);
  font-family: var(--hg-font);
}
.form-control:focus { border-color: var(--hg-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.input-lg { height: auto; padding: 13px 18px; font-size: 16px; border-radius: var(--hg-radius); }
.input-group-addon {
  background: var(--hg-light);
  border: 1px solid var(--hg-border);
  color: var(--hg-gray);
  border-radius: var(--hg-radius);
}
label { font-weight: 600; color: var(--hg-dark-3); font-size: 14px; margin-bottom: 6px; }
.help-block { color: var(--hg-gray); font-size: 13px; }
select.form-control { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ----- Panels (cards) ----- */
.panel {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow);
  margin-bottom: 24px;
}
.panel-heading {
  background: #fff;
  border-bottom: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg) var(--hg-radius-lg) 0 0;
  padding: 16px 22px;
  font-weight: 700;
}
.panel-title { font-size: 16px; font-weight: 700; color: var(--hg-dark); }
.panel-body { padding: 22px; }
.panel-footer {
  background: var(--hg-light);
  border-top: 1px solid var(--hg-border);
  border-radius: 0 0 var(--hg-radius-lg) var(--hg-radius-lg);
  padding: 14px 22px;
}
.panel-default > .panel-heading { color: var(--hg-dark); background: #fff; }
.panel-primary { border-color: var(--hg-border); }
.panel-primary > .panel-heading { background: var(--hg-gradient); border-color: transparent; color: #fff; }
.panel-primary > .panel-heading .panel-title { color: #fff; }
.panel-group .panel { border-radius: var(--hg-radius-lg); }

/* Accent panels (used on client dashboard) */
.panel-accent-blue { border-top: 3px solid var(--hg-primary); }
.panel-accent-green { border-top: 3px solid var(--hg-success); }
.panel-accent-red { border-top: 3px solid var(--hg-danger); }
.panel-accent-gold, .panel-accent-yellow { border-top: 3px solid var(--hg-warning); }

/* ----- Tables ----- */
.table { background: #fff; }
.table > thead > tr > th {
  background: var(--hg-dark);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
  vertical-align: middle;
}
.table > tbody > tr > td { padding: 14px 16px; border-color: var(--hg-border); vertical-align: middle; font-size: 14px; }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--hg-bg); }
.table-hover > tbody > tr:hover { background: rgba(99,102,241,.05); }
.table-bordered { border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); overflow: hidden; }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--hg-border); }
.panel > .table:last-child { border-radius: 0 0 var(--hg-radius-lg) var(--hg-radius-lg); overflow: hidden; }

/* ----- Sidebar ----- */
.sidebar .panel-sidebar, .sidebar .panel { border-radius: var(--hg-radius-lg); overflow: hidden; }
.sidebar .panel-heading {
  background: var(--hg-dark);
  color: #fff;
  border: none;
  padding: 14px 18px;
}
.sidebar .panel-heading .panel-title { color: #fff; font-size: 14px; font-weight: 600; }
.sidebar .panel-minimise { cursor: pointer; opacity: .6; font-size: 12px; transition: var(--hg-transition); }
.sidebar .list-group { margin: 0; border-radius: 0; }
.sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid var(--hg-border);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hg-dark-3);
  background: #fff;
  transition: var(--hg-transition);
}
.sidebar .list-group-item:last-child { border-bottom: none; }
.sidebar .list-group-item .sidebar-menu-item-icon { width: 18px; text-align: center; margin-right: 8px; color: var(--hg-gray-light); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
  background: var(--hg-gradient);
  color: #fff;
  border-color: transparent;
}
.sidebar .list-group-item.active .sidebar-menu-item-icon { color: #fff; }
.sidebar .list-group-item:hover:not(.active) { background: var(--hg-light); color: var(--hg-primary); }
.sidebar .list-group-item:hover:not(.active) .sidebar-menu-item-icon { color: var(--hg-primary); }

/* ----- Alerts ----- */
.alert { border-radius: var(--hg-radius); border: none; padding: 14px 18px; font-weight: 500; box-shadow: var(--hg-shadow); }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; border-left: 4px solid var(--hg-success); }
.alert-danger { background: rgba(239,68,68,.1); color: #991b1b; border-left: 4px solid var(--hg-danger); }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; border-left: 4px solid var(--hg-warning); }
.alert-info { background: rgba(14,165,233,.1); color: #075985; border-left: 4px solid var(--hg-secondary); }

/* ----- Labels / Badges ----- */
.label { border-radius: 7px; font-weight: 600; padding: 4px 9px; font-size: 11.5px; }
.label-primary { background: var(--hg-primary); }
.label-success { background: var(--hg-success); }
.label-danger { background: var(--hg-danger); }
.label-warning { background: var(--hg-warning); }
.label-info { background: var(--hg-secondary); }
.label-default { background: var(--hg-gray); }
.badge { background: var(--hg-gray); border-radius: 999px; font-weight: 600; padding: 3px 9px; }

/* ----- Pagination ----- */
.pagination > li > a, .pagination > li > span {
  border: 1px solid var(--hg-border);
  color: var(--hg-dark-3);
  margin: 0 3px;
  border-radius: 9px !important;
  min-width: 38px;
  text-align: center;
  font-weight: 500;
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover,
.pagination > .active > a:focus { background: var(--hg-gradient); border-color: transparent; color: #fff; }
.pagination > li > a:hover { background: var(--hg-light); border-color: var(--hg-primary); color: var(--hg-primary); }

/* ----- Tabs ----- */
.nav-tabs { border-bottom: 2px solid var(--hg-border); }
.nav-tabs > li > a {
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hg-gray);
  font-weight: 600;
  margin-bottom: -2px;
  border-radius: 0;
  padding: 11px 18px;
}
.nav-tabs > li > a:hover { border-color: transparent; border-bottom-color: var(--hg-gray-light); background: transparent; color: var(--hg-dark); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  color: var(--hg-primary);
  border: none;
  border-bottom: 2px solid var(--hg-primary);
  background: transparent;
}
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--hg-gradient); }

/* ----- Modals ----- */
.modal-content { border: none; border-radius: var(--hg-radius-xl); box-shadow: var(--hg-shadow-xl); overflow: hidden; }
.modal-header { background: var(--hg-light); border-bottom: 1px solid var(--hg-border); padding: 18px 24px; }
.modal-title { font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--hg-border); padding: 16px 24px; }

/* ----- Well / misc ----- */
.well { background: var(--hg-light); border: 1px solid var(--hg-border); border-radius: var(--hg-radius); box-shadow: none; }
hr { border-top: 1px solid var(--hg-border); }
.popover { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow-lg); }
.tooltip-inner { background: var(--hg-dark); border-radius: 8px; padding: 6px 11px; font-size: 12px; }
.progress { border-radius: 999px; background: var(--hg-light); box-shadow: none; height: 10px; }
.progress-bar { background: var(--hg-gradient); }

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.hg-section { margin-bottom: 56px; }
.hg-section-head { text-align: center; max-width: 580px; margin: 0 auto 36px; }
.hg-section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.hg-section-head p { color: var(--hg-gray); font-size: 16px; margin: 0; }
.hg-section-head .hg-eyebrow {
  display: inline-block;
  color: var(--hg-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* Feature cards */
.hg-feature {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 28px 24px;
  height: 100%;
  transition: var(--hg-transition);
}
.hg-feature:hover { transform: translateY(-4px); box-shadow: var(--hg-shadow-lg); border-color: transparent; }
.hg-feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  margin-bottom: 18px;
}
.hg-feature h4 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.hg-feature p { font-size: 14px; color: var(--hg-gray); margin: 0; line-height: 1.65; }

/* Product / pricing cards */
.hg-product {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 28px 24px;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: var(--hg-transition);
  position: relative;
}
.hg-product:hover { transform: translateY(-5px); box-shadow: var(--hg-shadow-xl); }
.hg-product-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(14,165,233,.12));
  color: var(--hg-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}
.hg-product h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.hg-product .hg-product-tagline { font-size: 14px; color: var(--hg-gray); margin: 0 0 22px; flex: 1; }
.hg-product .btn { margin-top: auto; }

/* Promo banner */
.hg-promo {
  background: var(--hg-gradient-dark);
  border-radius: var(--hg-radius-xl);
  overflow: hidden;
  position: relative;
}
.hg-promo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,.25) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(14,165,233,.18) 0%, transparent 50%);
}
.hg-promo-row { display: flex; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hg-promo-text { flex: 1 1 60%; padding: 44px; }
.hg-promo-badge {
  display: inline-block;
  background: var(--hg-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.hg-promo-text h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.hg-promo-text p { color: rgba(255,255,255,.65); font-size: 16px; margin: 0 0 24px; max-width: 460px; }
.hg-promo-visual { flex: 1 1 30%; padding: 44px; text-align: center; }
.hg-promo-big {
  font-size: 80px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #818cf8, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.05em;
}
.hg-promo-big-label { color: rgba(255,255,255,.5); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }

/* Horizontal promo cards */
.hg-hpromo {
  border-radius: var(--hg-radius-lg);
  padding: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--hg-transition);
}
.hg-hpromo:hover { transform: translateY(-2px); box-shadow: var(--hg-shadow-md); }
.hg-hpromo-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.hg-hpromo h5 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.hg-hpromo p { font-size: 13.5px; color: var(--hg-gray); margin: 0 0 8px; }
.hg-hpromo a { font-size: 13px; font-weight: 600; }

/* Testimonials */
.hg-testimonial {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 26px;
  height: 100%;
  transition: var(--hg-transition);
}
.hg-testimonial:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-md); }
.hg-testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hg-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.hg-testimonial-name { font-weight: 700; font-size: 14.5px; color: var(--hg-dark); }
.hg-testimonial-role { font-size: 12.5px; color: var(--hg-gray); }
.hg-stars { color: var(--hg-warning); font-size: 13px; margin-bottom: 12px; }
.hg-testimonial-text { font-size: 14px; color: var(--hg-dark-3); line-height: 1.7; margin: 0; }

/* Announcement cards */
.hg-announce {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 24px;
  height: 100%;
  transition: var(--hg-transition);
}
.hg-announce:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-md); }
.hg-announce-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.hg-announce-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(99,102,241,.1); color: var(--hg-primary); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.hg-announce-date { font-size: 12.5px; color: var(--hg-gray); font-weight: 500; }
.hg-announce h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.hg-announce h4 a { color: var(--hg-dark); }
.hg-announce h4 a:hover { color: var(--hg-primary); }
.hg-announce p { font-size: 13.5px; color: var(--hg-gray); line-height: 1.6; margin: 0 0 12px; }
.hg-announce .hg-readmore { font-size: 13px; font-weight: 600; color: var(--hg-primary); }

/* Single announcement (legacy on homepage sidebar use) */
.announcement-single { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); padding: 22px; margin-bottom: 16px; }
.announcement-single h3 { font-size: 16px; }
.announcement-single blockquote { border-left: 3px solid var(--hg-primary); padding: 0 0 0 16px; margin: 12px 0 0; font-size: 14px; color: var(--hg-dark-3); }

/* CTA */
.hg-cta {
  background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(14,165,233,.05));
  border: 1px solid rgba(99,102,241,.12);
  border-radius: var(--hg-radius-xl);
  padding: 48px;
  text-align: center;
}
.hg-cta h3 { font-size: 24px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.hg-cta p { font-size: 16px; color: var(--hg-gray); margin: 0 0 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hg-cta .btn + .btn { margin-left: 8px; }

/* =========================================================
   CLIENT AREA DASHBOARD
   ========================================================= */
.hg-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.hg-stat {
  background: #fff;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: var(--hg-transition);
}
.hg-stat:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-lg); }
.hg-stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.hg-stat-num { font-size: 26px; font-weight: 800; color: var(--hg-dark); line-height: 1; }
.hg-stat-label { font-size: 13px; color: var(--hg-gray); font-weight: 500; margin-top: 4px; }
.hg-stat-blue .hg-stat-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.hg-stat-green .hg-stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.hg-stat-red .hg-stat-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.hg-stat-gold .hg-stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hg-dash-search { position: relative; margin-bottom: 28px; }
.hg-dash-search input { padding-left: 46px; height: 52px; border-radius: var(--hg-radius-lg); box-shadow: var(--hg-shadow); }
.hg-dash-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--hg-gray-light); }

/* =========================================================
   AUTH (login / register)
   ========================================================= */
.hg-auth-wrap { max-width: 460px; margin: 20px auto; }
.hg-auth-card { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-xl); box-shadow: var(--hg-shadow-lg); padding: 38px; }
.hg-auth-head { text-align: center; margin-bottom: 26px; }
.hg-auth-head .hg-auth-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--hg-gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.hg-auth-head h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.hg-auth-head p { color: var(--hg-gray); font-size: 14.5px; margin: 0; }
.logincontainer.with-social .hg-auth-wrap { max-width: 760px; }

/* =========================================================
   COMPAT: legacy WHMCS / Six utility classes used by
   the baseline (non-rewritten) templates
   ========================================================= */
.header-lined { border-bottom: 1px solid var(--hg-border); padding-bottom: 12px; margin-bottom: 22px; }
.header-lined h1, .header-lined h2 { display: inline-block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--hg-gray) !important; }
.margin-bottom { margin-bottom: 18px; }
.bg-color-blue { background-color: var(--hg-primary) !important; }
.bg-color-green { background-color: var(--hg-success) !important; }
.bg-color-red { background-color: var(--hg-danger) !important; }
.bg-color-gold, .bg-color-orange { background-color: var(--hg-warning) !important; }
.text-color-blue { color: var(--hg-primary) !important; }
.text-color-green { color: var(--hg-success) !important; }
.text-success { color: var(--hg-success) !important; }
.text-danger { color: var(--hg-danger) !important; }
.text-primary { color: var(--hg-primary) !important; }
/* legacy dashboard tiles fallback */
.tiles .tile { background:#fff; border:1px solid var(--hg-border); border-radius: var(--hg-radius-lg); margin-bottom: 18px; transition: var(--hg-transition); }
.tiles .tile:hover { box-shadow: var(--hg-shadow-md); transform: translateY(-2px); }
.tiles .tile a { display:block; padding: 22px; text-align:center; color: var(--hg-dark-3); }
.tiles .tile .icon { font-size: 26px; color: var(--hg-primary); margin-bottom: 10px; }
.tiles .tile .stat { font-size: 28px; font-weight: 800; color: var(--hg-dark); }
.tiles .tile .title { font-size: 13px; color: var(--hg-gray); }
.tiles .tile .highlight { height: 3px; border-radius: 3px; margin-top: 12px; }
.home-kb-search { position: relative; margin: 8px 0 28px; }
.home-kb-search input { padding-left: 44px; height: 52px; border-radius: var(--hg-radius-lg); }
.home-kb-search i { position:absolute; left:16px; top:50%; transform:translateY(-50%); color: var(--hg-gray-light); }

/* ----- Footer ----- */
.hg-footer { background: var(--hg-dark); color: rgba(255,255,255,.6); padding: 48px 0 26px; margin-top: 40px; }
.hg-footer-top { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hg-footer-about .hg-footer-logo { max-height: 40px; margin-bottom: 14px; }
.hg-footer-brand { margin-bottom: 14px; }
.hg-footer-about p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 320px; }
.hg-footer-social { margin-top: 16px; display: flex; gap: 10px; }
.hg-footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; transition: var(--hg-transition); }
.hg-footer-social a:hover { background: var(--hg-gradient); color: #fff; transform: translateY(-2px); }
.hg-footer-col h5 { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .03em; }
.hg-footer-col ul { list-style: none; padding: 0; margin: 0; }
.hg-footer-col ul li { margin-bottom: 9px; }
.hg-footer-col ul li a { color: rgba(255,255,255,.55); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.hg-footer-col ul li a i { font-size: 9px; opacity: .5; }
.hg-footer-col ul li a:hover { color: #fff; }
.hg-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; flex-wrap: wrap; gap: 12px; }
.hg-footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }
.hg-back-to-top { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; transition: var(--hg-transition); }
.hg-back-to-top:hover { background: var(--hg-gradient); color: #fff; transform: translateY(-3px); }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--hg-light); }
::-webkit-scrollbar-thumb { background: var(--hg-gray-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--hg-gray); }

/* ----- Animations ----- */
@keyframes hgFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.panel, .alert, .hg-feature, .hg-product, .hg-testimonial, .hg-announce, .hg-stat, .hg-hpromo { animation: hgFadeUp .4s ease-out both; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .hg-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .hg-hero-title { font-size: 34px; }
  .hg-promo-text, .hg-promo-visual { flex-basis: 100%; padding: 32px; }
  .hg-promo-visual { padding-top: 0; }
}
@media (max-width: 767px) {
  .hg-main { padding: 28px 0 48px; }
  .hg-hero { padding: 56px 0 64px; }
  .hg-hero-title { font-size: 28px; }
  .hg-hero-subtitle { font-size: 16px; }
  .hg-search-group { flex-wrap: wrap; }
  .hg-search-input { flex-basis: 100%; padding: 12px; }
  .hg-search-btn { flex: 1; margin-top: 6px; }
  .hg-search-btn-alt { margin-left: 6px; }
  .hg-header .navbar-nav > li > a { padding: 12px 14px; }
  .hg-header .navbar-nav > li > a::after { display: none; }
  .hg-cart-link { margin: 12px 14px; }
  .hg-section-head h2 { font-size: 24px; }
  .hg-dash-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hg-stat { flex-direction: column; text-align: center; gap: 10px; padding: 18px; }
  .hg-cta { padding: 30px 22px; }
  .hg-cta .btn { display: block; width: 100%; }
  .hg-cta .btn + .btn { margin-left: 0; margin-top: 10px; }
  .d-none-xs { display: none !important; }
  .hg-topbar-left { gap: 12px; }
  .hg-footer { text-align: center; }
  .hg-footer-about p { margin-left: auto; margin-right: auto; }
  .hg-footer-social { justify-content: center; }
  .hg-footer-bottom { justify-content: center; }
}

/* =========================================================
   ORDER FORM / CART  (overrides the order form's all.min.css)
   Scoped & !important so it wins regardless of which order
   form template is active.
   ========================================================= */
#order-standard_cart { font-family: var(--hg-font) !important; }
#order-standard_cart .header-lined { border-bottom: 1px solid var(--hg-border) !important; padding-bottom: 16px; margin-bottom: 24px; }
#order-standard_cart .header-lined h1,
#order-standard_cart .font-size-36 { font-size: 28px !important; font-weight: 800 !important; color: var(--hg-dark) !important; letter-spacing: -0.03em; }
#order-standard_cart .header-lined p { color: var(--hg-gray) !important; font-size: 15px; }

/* Cart category sidebar */
#order-standard_cart .cart-sidebar .panel,
.sidebar-categories .panel { border-radius: var(--hg-radius-lg) !important; overflow: hidden; }
.sidebar-categories .list-group-item,
#order-standard_cart .cart-sidebar .list-group-item { border: none !important; border-bottom: 1px solid var(--hg-border) !important; padding: 12px 18px !important; font-weight: 500; font-size: 14px; transition: var(--hg-transition); }
.sidebar-categories .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active { background: var(--hg-gradient) !important; border-color: transparent !important; color: #fff !important; }
.sidebar-categories .list-group-item:hover:not(.active) { background: var(--hg-light) !important; color: var(--hg-primary) !important; }

/* Standard product cards (fallback styling) */
#order-standard_cart .products .product { border: 1px solid var(--hg-border) !important; border-radius: var(--hg-radius-lg) !important; background: #fff !important; box-shadow: var(--hg-shadow) !important; transition: var(--hg-transition); overflow: hidden; }
#order-standard_cart .products .product:hover { transform: translateY(-4px); box-shadow: var(--hg-shadow-lg) !important; border-color: var(--hg-primary-light) !important; }
#order-standard_cart .products .product header { background: var(--hg-dark) !important; color: #fff !important; padding: 18px 20px !important; font-weight: 700; font-size: 17px; border: none !important; }
#order-standard_cart .products .product .product-desc { padding: 18px 20px !important; }
#order-standard_cart .products .product .product-desc ul { list-style: none; padding: 0; margin: 0; }
#order-standard_cart .products .product .product-desc ul li { padding: 7px 0; border-bottom: 1px dashed var(--hg-border); font-size: 14px; color: var(--hg-dark-3); }
#order-standard_cart .products .product .feature-value { font-weight: 700; color: var(--hg-primary); margin-right: 4px; }
#order-standard_cart .products .product footer { padding: 18px 20px !important; border-top: 1px solid var(--hg-border) !important; background: var(--hg-bg) !important; }
#order-standard_cart .products .product .product-pricing { color: var(--hg-dark) !important; }
#order-standard_cart .products .product .price { font-size: 28px !important; font-weight: 800 !important; color: var(--hg-primary) !important; letter-spacing: -0.02em; }

/* === Bespoke plan cards (hg-plan) === */
.hg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.hg-plan { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--hg-transition); position: relative; }
.hg-plan:hover { transform: translateY(-6px); box-shadow: var(--hg-shadow-xl); border-color: var(--hg-primary-light); }
.hg-plan-head { padding: 26px 24px 20px; text-align: center; border-bottom: 1px solid var(--hg-border); position: relative; }
.hg-plan-ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(14,165,233,.12)); color: var(--hg-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.hg-plan-name { font-size: 19px; font-weight: 800; color: var(--hg-dark); margin: 0 0 4px; }
.hg-plan-qty { font-size: 12px; color: var(--hg-gray); }
.hg-plan-price { padding: 22px 24px; text-align: center; background: var(--hg-bg); }
.hg-plan-price .amt { font-size: 34px; font-weight: 900; color: var(--hg-primary); letter-spacing: -0.03em; line-height: 1; }
.hg-plan-price .cycle { display: block; font-size: 13px; color: var(--hg-gray); margin-top: 6px; font-weight: 500; }
.hg-plan-price .from { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--hg-gray-light); margin-bottom: 6px; font-weight: 700; }
.hg-plan-price .setup { display: block; font-size: 12px; color: var(--hg-gray); margin-top: 6px; }
.hg-plan-body { padding: 20px 24px; flex: 1; }
.hg-plan-desc { font-size: 13.5px; color: var(--hg-gray); margin: 0 0 14px; }
.hg-plan-features { list-style: none; padding: 0; margin: 0; }
.hg-plan-features li { padding: 8px 0; font-size: 13.5px; color: var(--hg-dark-3); border-bottom: 1px dashed var(--hg-border); display: flex; gap: 9px; align-items: baseline; }
.hg-plan-features li:last-child { border-bottom: none; }
.hg-plan-features li i { color: var(--hg-success); font-size: 12px; }
.hg-plan-features li .fv { font-weight: 700; color: var(--hg-dark); }
.hg-plan-foot { padding: 0 24px 24px; }
.hg-plan-foot .btn { width: 100%; }

/* View cart items */
.view-cart-items-header { background: var(--hg-dark) !important; color: #fff !important; border-radius: var(--hg-radius) var(--hg-radius) 0 0 !important; padding: 12px 20px !important; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.view-cart-items { border: 1px solid var(--hg-border) !important; border-top: none; border-radius: 0 0 var(--hg-radius) var(--hg-radius); background: #fff; }
.view-cart-items .item { padding: 16px 20px !important; border-bottom: 1px solid var(--hg-border) !important; transition: var(--hg-transition); }
.view-cart-items .item:last-child { border-bottom: none !important; }
.view-cart-items .item:hover { background: rgba(99,102,241,.03) !important; }
.view-cart-items .item .item-title { font-weight: 700 !important; color: var(--hg-dark) !important; font-size: 15px; }
.view-cart-items .item .item-domain { color: var(--hg-primary) !important; font-weight: 500; }
.view-cart-items .item .item-price span:first-child { font-weight: 800 !important; color: var(--hg-dark) !important; }
.btn-remove-from-cart { color: var(--hg-gray-light) !important; transition: var(--hg-transition); }
.btn-remove-from-cart:hover { color: var(--hg-danger) !important; }

/* Order summary */
.order-summary, #orderSummary .panel { background: #fff !important; border: 1px solid var(--hg-border) !important; border-radius: var(--hg-radius-lg) !important; box-shadow: var(--hg-shadow-md) !important; overflow: hidden; }
.order-summary h2, #orderSummary .panel-heading { background: var(--hg-dark) !important; color: #fff !important; padding: 16px 22px !important; margin: 0 !important; font-size: 17px !important; font-weight: 700 !important; border: none !important; }
.order-summary .summary-container { padding: 20px 22px !important; }
.order-summary .total-due-today, .total-due-today { background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(14,165,233,.06)) !important; border-radius: var(--hg-radius) !important; padding: 16px 18px !important; text-align: center; margin: 14px 0; }
.order-summary .total-due-today .amt, .total-due-today .amt { font-size: 26px !important; font-weight: 900 !important; color: var(--hg-primary) !important; letter-spacing: -0.03em; }
.bordered-totals { border-top: 1px solid var(--hg-border) !important; border-bottom: 1px solid var(--hg-border) !important; }

/* Promo / continue / checkout buttons */
.btn-checkout, #btnCompleteOrder, .checkout-btn-container .btn-primary { background: linear-gradient(135deg, var(--hg-success), #059669) !important; border: none !important; border-radius: var(--hg-radius) !important; padding: 13px 26px !important; font-size: 15px !important; font-weight: 700 !important; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.btn-checkout:hover, #btnCompleteOrder:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(16,185,129,.4) !important; }

/* Checkout panels & payment methods */
#order-standard_cart .panel, #checkoutFrm .panel { border-radius: var(--hg-radius-lg) !important; border: 1px solid var(--hg-border) !important; box-shadow: var(--hg-shadow) !important; }
.payment-methods .paymentmethod, .paymentmethods label.payment-method { border: 1px solid var(--hg-border) !important; border-radius: var(--hg-radius) !important; padding: 12px 16px !important; transition: var(--hg-transition); }
.payment-methods input:checked + label, .paymentmethod.selected { border-color: var(--hg-primary) !important; box-shadow: 0 0 0 2px rgba(99,102,241,.18) !important; }

/* Domain search results in cart */
.domain-search-results .item, .domain-checker-result { border: 1px solid var(--hg-border) !important; border-radius: var(--hg-radius) !important; margin-bottom: 8px; }

/* =========================================================
   PRODUCT DETAILS (service management)
   ========================================================= */
.hg-service-hero { background: var(--hg-gradient-dark); border-radius: var(--hg-radius-lg); padding: 28px; color: #fff; position: relative; overflow: hidden; margin-bottom: 22px; }
.hg-service-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(99,102,241,.25) 0%, transparent 50%); }
.hg-service-hero-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hg-service-ico { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.hg-service-meta { flex: 1; min-width: 200px; }
.hg-service-meta h2 { color: #fff !important; font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.hg-service-meta .grp { color: rgba(255,255,255,.6); font-size: 14px; }
.hg-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.12); }
.hg-status-badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.product-status-active .hg-status-badge, .hg-status-active { background: rgba(16,185,129,.2) !important; color: #6ee7b7 !important; }
.hg-status-active .dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.hg-status-pending .dot { background: #f59e0b; }
.hg-status-suspended .dot, .hg-status-terminated .dot { background: #ef4444; }
.hg-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--hg-border); border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); overflow: hidden; }
.hg-info-cell { background: #fff; padding: 16px 18px; }
.hg-info-cell .lbl { font-size: 12px; color: var(--hg-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.hg-info-cell .val { font-size: 15px; font-weight: 600; color: var(--hg-dark); }
.product-actions-wrapper { margin-top: 18px; }
.product-actions-wrapper .btn { margin-bottom: 8px; }
.product-details-tab-container { background: #fff; border: 1px solid var(--hg-border); border-top: none; border-radius: 0 0 var(--hg-radius-lg) var(--hg-radius-lg); padding: 24px; }
.product-details-tab-container .row { padding: 8px 0; border-bottom: 1px dashed var(--hg-border); margin: 0; }
.product-details-tab-container .row:last-child { border-bottom: none; }
.nav-tabs-overflow { margin-top: 8px; }
.module-client-area { padding: 10px 0; }
.status-active { color: var(--hg-success) !important; font-weight: 700; }
.status-suspended, .status-terminated, .status-cancelled { color: var(--hg-danger) !important; font-weight: 700; }
.status-pending { color: var(--hg-warning) !important; font-weight: 700; }

/* =========================================================
   INVOICE (standalone page)
   ========================================================= */
.invoice-container { max-width: 920px; margin: 30px auto; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-xl); box-shadow: var(--hg-shadow-lg); padding: 0; overflow: hidden; }
.hg-invoice-top { padding: 32px 36px; background: var(--hg-gradient-dark); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.hg-invoice-top .brand img { max-height: 46px; }
.hg-invoice-top .brand h2 { color: #fff; margin: 0; font-size: 24px; font-weight: 800; }
.hg-invoice-top .brand .sub { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 4px; }
.hg-invoice-statuswrap { text-align: right; }
.hg-invoice-status { display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.hg-invoice-status.paid { background: rgba(16,185,129,.2); color: #6ee7b7; }
.hg-invoice-status.unpaid { background: rgba(245,158,11,.2); color: #fcd34d; }
.hg-invoice-status.cancelled, .hg-invoice-status.refunded { background: rgba(239,68,68,.2); color: #fca5a5; }
.hg-invoice-status.draft, .hg-invoice-status.collections { background: rgba(255,255,255,.15); color: #fff; }
.hg-invoice-due { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 10px; }
.hg-invoice-body { padding: 32px 36px; }
.hg-invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.hg-invoice-party .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--hg-gray); font-weight: 700; margin-bottom: 8px; }
.hg-invoice-party address { font-style: normal; color: var(--hg-dark-3); font-size: 14px; line-height: 1.7; margin: 0; }
.hg-invoice-meta { display: flex; gap: 30px; flex-wrap: wrap; padding: 16px 20px; background: var(--hg-bg); border-radius: var(--hg-radius); margin-bottom: 24px; }
.hg-invoice-meta .lbl { font-size: 12px; color: var(--hg-gray); font-weight: 600; }
.hg-invoice-meta .val { font-size: 15px; font-weight: 700; color: var(--hg-dark); }
.invoice-container .table { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); overflow: hidden; }
.invoice-container .table thead td, .invoice-container .table thead th { background: var(--hg-dark) !important; color: #fff !important; border: none !important; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; padding: 13px 16px; }
.invoice-container .table tbody td { padding: 13px 16px; border-color: var(--hg-border); font-size: 14px; }
.invoice-container .total-row { background: var(--hg-bg); }
.invoice-container .total-row strong { color: var(--hg-dark); }
.invoice-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 36px 28px; }
.hg-invoice-pay { background: linear-gradient(135deg, var(--hg-success), #059669); color: #fff; border-radius: var(--hg-radius); padding: 14px 22px; text-align: center; margin-top: 12px; }
.hg-invoice-pay .payment-btn-container { margin-top: 8px; }
@media (max-width: 767px) {
  .hg-invoice-parties { grid-template-columns: 1fr; }
  .hg-invoice-top, .hg-invoice-body { padding: 22px; }
  .hg-service-hero-row { flex-direction: column; text-align: center; }
}
@media print {
  .hg-invoice-top { background: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; }
  .hg-invoice-top .brand h2 { color: #000; }
  .invoice-container { box-shadow: none; border: none; }
}

/* =========================================================
   STATUS LABELS (tickets, domains, services — shared)
   ========================================================= */
.label.status, .label-status { border-radius: 999px !important; padding: 5px 12px !important; font-size: 12px !important; font-weight: 700 !important; border: 1px solid transparent; background: var(--hg-light) !important; color: var(--hg-dark-3) !important; }
.status-open, .status-active, .status-answered { background: rgba(16,185,129,.12) !important; color: #047857 !important; }
.status-customer-reply, .status-in-progress, .status-pending, .status-pendingtransfer { background: rgba(245,158,11,.14) !important; color: #b45309 !important; }
.status-on-hold, .status-closed, .status-cancelled, .status-expired { background: rgba(100,116,139,.14) !important; color: #475569 !important; }
.status-fraud, .status-terminated, .status-suspended { background: rgba(239,68,68,.12) !important; color: #b91c1c !important; }

/* =========================================================
   SUPPORT — Ticket list
   ========================================================= */
.table-list .ticket-number { display: inline-block; background: var(--hg-light); color: var(--hg-gray); font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 7px; margin-right: 8px; }
.table-list .ticket-subject { font-weight: 600; color: var(--hg-dark-3); }
.table-list .ticket-subject.unread { color: var(--hg-dark); font-weight: 800; }
.table-list .ticket-subject.unread::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hg-primary); margin-right: 7px; vertical-align: middle; }
.table-list tr { cursor: pointer; }

/* =========================================================
   SUPPORT — Ticket conversation (chat bubbles)
   ========================================================= */
.ticket-reply { background: #fff; border: 1px solid var(--hg-border); border-left: 4px solid var(--hg-primary); border-radius: var(--hg-radius-lg); padding: 0; margin-bottom: 18px; overflow: hidden; box-shadow: var(--hg-shadow); position: relative; }
.ticket-reply.staff { border-left-color: var(--hg-success); background: linear-gradient(180deg, rgba(16,185,129,.03), #fff); }
.ticket-reply .user { display: flex; align-items: center; gap: 10px; padding: 14px 110px 12px 20px; border-bottom: 1px solid var(--hg-border); font-weight: 700; color: var(--hg-dark); flex-wrap: wrap; }
.ticket-reply .user > i.fa-user, .ticket-reply .user .fas.fa-user { width: 38px; height: 38px; border-radius: 50%; background: var(--hg-gradient); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ticket-reply.staff .user > i.fa-user { background: linear-gradient(135deg, var(--hg-success), #059669); }
.ticket-reply .user .name { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-reply .user .type { color: var(--hg-gray); font-weight: 500; font-size: 13px; }
.ticket-reply .requestor-type-operator, .ticket-reply .label.requestor-type-operator { background: rgba(16,185,129,.14) !important; color: #047857 !important; border-radius: 6px; font-size: 11px; padding: 3px 8px; }
.ticket-reply .label[class*="requestor-type-"] { background: var(--hg-light); color: var(--hg-gray); border-radius: 6px; font-size: 11px; padding: 3px 8px; font-weight: 600; }
.ticket-reply .date { position: absolute; top: 16px; right: 20px; font-size: 12.5px; color: var(--hg-gray-light); font-weight: 500; }
.ticket-reply .message { padding: 18px 20px; color: var(--hg-dark-3); line-height: 1.7; font-size: 14.5px; }
.ticket-reply .message img { max-width: 100%; border-radius: 8px; }
.ticket-reply .attachments { padding: 12px 20px; background: var(--hg-bg); border-top: 1px solid var(--hg-border); font-size: 13px; }
.ticket-reply .attachments ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-reply .attachments ul li a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--hg-border); border-radius: 8px; padding: 6px 12px; color: var(--hg-primary); font-weight: 500; }
.ticket-reply .attachments ul li a:hover { border-color: var(--hg-primary); background: var(--hg-light); }
.ticket-reply .rating .star, .ticket-reply .rating-done .star { display: inline-block; width: 20px; height: 20px; cursor: pointer; color: var(--hg-gray-light); }
.ticket-reply .rating .star::before, .ticket-reply .rating-done .star::before { content: '\2605'; font-size: 18px; }
.ticket-reply .rating-done .star.active { color: var(--hg-warning); }
.panel-collapsable .panel-heading { cursor: pointer; }
.ticket-attachments-message { font-size: 12.5px; margin-top: 8px; }

/* =========================================================
   SUPPORT — Department cards (open ticket step 1)
   ========================================================= */
.hg-dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hg-dept-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); padding: 22px; text-decoration: none !important; transition: var(--hg-transition); }
.hg-dept-card:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-lg); border-color: var(--hg-primary-light); }
.hg-dept-ico { width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(14,165,233,.12)); color: var(--hg-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hg-dept-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 5px; color: var(--hg-dark); }
.hg-dept-card p { font-size: 13.5px; color: var(--hg-gray); margin: 0; line-height: 1.6; }
.hg-dept-card .hg-dept-go { color: var(--hg-primary); font-size: 13px; font-weight: 600; margin-top: 8px; display: inline-block; }

/* =========================================================
   KNOWLEDGE BASE
   ========================================================= */
.hg-kb-hero { background: var(--hg-gradient-dark); border-radius: var(--hg-radius-lg); padding: 40px 30px; text-align: center; position: relative; overflow: hidden; margin-bottom: 32px; }
.hg-kb-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(99,102,241,.25) 0%, transparent 50%), radial-gradient(circle at 75% 70%, rgba(14,165,233,.18) 0%, transparent 50%); }
.hg-kb-hero-inner { position: relative; z-index: 1; }
.hg-kb-hero h1 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.hg-kb-hero p { color: rgba(255,255,255,.65); font-size: 15px; margin: 0 0 22px; }
.kb-search { max-width: 600px; margin: 0 auto; }
.kb-search.input-group { display: flex; background: #fff; border-radius: var(--hg-radius-lg); padding: 7px; box-shadow: var(--hg-shadow-xl); }
.kb-search .form-control { border: none !important; box-shadow: none !important; background: transparent !important; font-size: 16px; padding-left: 16px; }
.kb-search .form-control:focus { box-shadow: none !important; }
.kb-search .input-group-btn .btn, .kb-search .btn { border-radius: var(--hg-radius) !important; padding: 11px 24px !important; }
.hg-section-title { font-size: 22px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.02em; }
.kbcategories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 36px; }
.kbcategories .col-sm-4 { width: auto !important; float: none !important; padding: 0 !important; background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius-lg); padding: 22px !important; transition: var(--hg-transition); }
.kbcategories .col-sm-4:hover { transform: translateY(-3px); box-shadow: var(--hg-shadow-lg); border-color: var(--hg-primary-light); }
.kbcategories .col-sm-4 > a:first-child { font-size: 16px; font-weight: 700; color: var(--hg-dark); display: flex; align-items: center; gap: 10px; }
.kbcategories .col-sm-4 > a:first-child i, .kbcategories .col-sm-4 > a:first-child .glyphicon { color: var(--hg-primary); }
.kbcategories .col-sm-4 p { font-size: 13.5px; color: var(--hg-gray); margin: 10px 0 0; }
.kbcategories .badge { background: var(--hg-light); color: var(--hg-gray); }
.kbarticles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.kbarticles > a, .kbarticles > div { background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 16px 20px; transition: var(--hg-transition); display: block; }
.kbarticles > a:hover, .kbarticles > div:hover { border-color: var(--hg-primary-light); box-shadow: var(--hg-shadow-md); }
.kbarticles > a, .kbarticles > div > a { font-weight: 600; color: var(--hg-dark); display: flex; align-items: center; gap: 9px; }
.kbarticles > a i, .kbarticles .glyphicon, .kbarticles > div > a i { color: var(--hg-primary); }
.kbarticles p { font-size: 13px; color: var(--hg-gray); margin: 6px 0 0; }
.admin-inline-edit { font-size: 12px; color: var(--hg-gray-light) !important; margin-left: 10px; }

/* KB article view */
.kb-article-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hg-border); padding-bottom: 18px; margin-bottom: 22px; }
.kb-article-title h2 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.kb-article-title .btn-print { color: var(--hg-gray); }
.kb-article-content { font-size: 15px; line-height: 1.8; color: var(--hg-dark-3); }
.kb-article-content img { max-width: 100%; border-radius: 10px; }
.kb-article-content h2, .kb-article-content h3 { margin-top: 28px; }
.kb-article-details { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--hg-gray); font-size: 13px; }
.kb-article-details li i { color: var(--hg-primary); margin-right: 5px; }
.kb-rate-article { background: var(--hg-light); border-radius: var(--hg-radius-lg); padding: 20px 24px; text-align: center; margin-top: 26px; font-weight: 600; color: var(--hg-dark-3); }
.kb-rate-article .btn-link { color: var(--hg-primary); font-weight: 700; }
.kb-also-read { margin-top: 34px; }
.kb-also-read h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* =========================================================
   DOMAINS — list
   ========================================================= */
#tableDomainsList .btn-group .btn, #tableTicketsList .btn-group .btn { border-radius: 8px !important; }
.ssl-info img { width: 16px; }
.table-list td .label.status { white-space: nowrap; }

/* =========================================================
   DATATABLES controls (search / length / info / pagination)
   ========================================================= */
.dataTables_wrapper { padding: 0; margin-top: 4px; }
.dataTables_wrapper .dataTables_filter { margin-bottom: 14px; }
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 9px 14px;
  margin-left: 10px;
  min-width: 220px;
  font-size: 14px;
  transition: var(--hg-transition);
}
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--hg-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--hg-border);
  border-radius: 9px;
  padding: 6px 28px 6px 10px;
  margin: 0 4px;
  font-size: 13px;
}
.dataTables_wrapper .dataTables_info { color: var(--hg-gray); font-size: 13px; padding-top: 16px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.dataTables_wrapper .dataTables_paginate .pagination { margin: 0; }
.dataTables_wrapper .dataTables_paginate .paginate_button > a,
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px !important; }
table.dataTable thead th { position: relative; }
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after { opacity: .5; font-size: 11px; }
.table-list.dataTable, table.table-list { border-collapse: separate; }
