/* ==========================================================================
   Genhost client area: brand layer on top of WHMCS Twenty-One.
   Twenty-One loads this file automatically (templates/<theme>/css/custom.css).
   Colours, font and radius match the website (genhost.in, src/styles/global.css).
   Only CSS lives here, so WHMCS updates to the parent templates never conflict.
   ========================================================================== */

/* ---------- Font: DM Sans (self-hosted, latin), metric-matched Arial while it loads ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: fallback;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Brand Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 599; size-adjust: 104.53%; ascent-override: 94.9%; descent-override: 29.66%; line-gap-override: 0%; }
@font-face { font-family: 'Brand Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 900; size-adjust: 104.53%; ascent-override: 94.9%; descent-override: 29.66%; line-gap-override: 0%; }

:root {
  --gh-primary: #C9301F;
  --gh-primary-hover: #A82718;
  --gh-primary-soft: #FDEEEC;
  --gh-navy: #23272E;
  --gh-navy-2: #343941;
  --gh-text: #0f172a;
  --gh-muted: #475569;
  --gh-border: #e2e8f0;
  --gh-bg: #ffffff;
  --gh-bg-alt: #f6f8fc;
  --gh-success: #15803d;
  --gh-danger: #b91c1c;
  --gh-radius: 14px;
  --gh-radius-sm: 8px;
  --gh-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --gh-font: 'DM Sans', 'Brand Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
body,
.tooltip,
.popover,
button, input, select, textarea, .btn, .form-control {
  font-family: var(--gh-font);
}
body {
  color: var(--gh-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.primary-bg-color { background-color: var(--gh-bg-alt); }
/* Footer at the bottom of the screen on short pages: the content area grows to fill the space. */
body.primary-bg-color { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.primary-bg-color > * { flex-shrink: 0; }
body.primary-bg-color > #main-body { flex: 1 0 auto; padding-bottom: 48px; }
/* Short pages: the content fills at least one screen below the top bar and breadcrumb (about 110px),
   so the footer starts at the bottom edge of the screen instead of halfway up. Tablets and phones
   also keep room for the bottom tab bar (68px). */
body.primary-bg-color > #main-body { min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); }
@media (max-width: 1199.98px) {
  html.gh-has-tabbar body.primary-bg-color > #main-body { min-height: calc(100vh - 180px); min-height: calc(100dvh - 180px); }
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--gh-text); letter-spacing: -0.02em; line-height: 1.2; }
h1, .h1 { font-weight: 800; }
h2, .h2, h3, .h3 { font-weight: 700; }
a { color: var(--gh-primary); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--gh-primary-hover); }
.text-muted { color: var(--gh-muted) !important; }
.text-primary { color: var(--gh-primary) !important; }
.bg-primary { background-color: var(--gh-primary) !important; }
:focus-visible { outline: 3px solid var(--gh-primary); outline-offset: 2px; }
::selection { background: var(--gh-primary-soft); color: var(--gh-text); }

/* ---------- Header ---------- */
header.header {
  background-color: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--gh-border);
  box-shadow: none;
}
header.header .navbar-brand .logo-img { max-height: 44px; width: auto; }

header.header .navbar-light .navbar-nav .nav-link,
header.header .navbar-nav .nav-link,
header.header .main-navbar-wrapper .navbar-nav .nav-link {
  color: var(--gh-text);
  font-weight: 600;
}
header.header .navbar-nav .nav-link:hover,
header.header .navbar-nav .nav-link:focus,
header.header .navbar-nav .active > .nav-link,
header.header .navbar-nav .show > .nav-link {
  color: var(--gh-primary);
}
header.header .main-navbar-wrapper { border-top: 1px solid var(--gh-border); }
header.header .cart-btn .badge,
.badge-info { background-color: var(--gh-primary); color: #fff; }
header.header .search .form-control { border-radius: var(--gh-radius-sm); }
.dropdown-menu {
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.12);
  padding: 6px;
}
.dropdown-item { border-radius: 8px; padding: 8px 12px; color: var(--gh-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
.dropdown-item.active, .dropdown-item:active { background: var(--gh-primary); color: #fff; }

/* Logged-in top bar */
header.header .topbar { background-color: var(--gh-navy); color: #e2e8f0; }
header.header .topbar .btn, header.header .topbar .input-group-text { color: #e2e8f0; }
header.header .topbar .btn:hover { color: #fff; }
header.header .topbar .active-client .btn.btn-active-client { background: var(--gh-navy-2); border-color: var(--gh-navy-2); color: #fff; }

/* Breadcrumb strip */
.master-breadcrumb { background-color: var(--gh-bg); border-bottom: 1px solid var(--gh-border); }
.master-breadcrumb .breadcrumb { background: transparent; font-size: 0.875rem; }
.master-breadcrumb .breadcrumb-item a { color: var(--gh-muted); }
.master-breadcrumb .breadcrumb-item.active { color: var(--gh-text); }

/* ---------- Buttons (same shapes as the website) ---------- */
.btn { border-radius: 10px; font-weight: 700; transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn-lg { border-radius: 12px; }
.btn-sm { border-radius: 8px; }
.btn-primary,
.btn-success,
.btn-order-now,
.btn-checkout {
  background-color: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled):active {
  background-color: var(--gh-primary-hover);
  border-color: var(--gh-primary-hover);
  color: #fff;
}
.btn-primary:focus, .btn-success:focus,
.btn-primary.focus, .btn-success.focus { box-shadow: 0 0 0 0.2rem rgb(201 48 31 / 0.25); }
.btn-outline-primary { color: var(--gh-primary); border-color: var(--gh-primary); }
.btn-outline-primary:hover { background: var(--gh-primary-soft); color: var(--gh-primary-hover); border-color: var(--gh-primary); }
.btn-default, .btn-light, .btn-secondary {
  background: #fff;
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
}
.btn-default:hover, .btn-light:hover, .btn-secondary:hover { background: var(--gh-primary-soft); border-color: #f4c7c0; color: var(--gh-primary-hover); }
.btn-info { background-color: var(--gh-navy); border-color: var(--gh-navy); color: #fff; }
.btn-info:hover { background-color: var(--gh-navy-2); border-color: var(--gh-navy-2); color: #fff; }
.btn-link { color: var(--gh-primary); font-weight: 600; }

/* ---------- Cards, panels, sidebar ---------- */
.card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
}
.card-header { background: #fff; border-bottom-color: var(--gh-border); }
.card-header:first-child { border-radius: var(--gh-radius) var(--gh-radius) 0 0; }
.card-footer { background: var(--gh-bg-alt); border-top-color: var(--gh-border); }
.card-footer:last-child { border-radius: 0 0 var(--gh-radius) var(--gh-radius); }
.card-title { font-weight: 700; }
.sidebar .card-header { font-weight: 700; }
.list-group-item { border-color: var(--gh-border); }
.list-group-item-action:hover, .list-group-item-action:focus { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
.list-group-item.active,
.sidebar .list-group-item.active {
  background-color: var(--gh-primary-soft);
  border-color: var(--gh-border);
  color: var(--gh-primary-hover);
  font-weight: 700;
}
.list-group-item.active .badge { background: var(--gh-primary); color: #fff; }

/* Client area home tiles */
.tiles .tile { border-radius: var(--gh-radius); transition: border-color 0.15s, box-shadow 0.15s; }
.tiles .tile:hover { border-color: #f4c7c0; box-shadow: 0 12px 28px rgb(15 23 42 / 0.08); }
.tiles .tile i { color: var(--gh-primary); }
.tiles .tile .highlight { background-color: var(--gh-primary); }

/* ---------- Forms ---------- */
.form-control, .custom-select {
  border-color: #cbd5e1;
  border-radius: var(--gh-radius-sm);
  color: var(--gh-text);
}
.form-control:focus, .custom-select:focus {
  border-color: var(--gh-primary);
  box-shadow: 0 0 0 0.2rem rgb(201 48 31 / 0.15);
}
.form-control::placeholder { color: #64748b; }
.input-group-text { background: var(--gh-bg-alt); border-color: #cbd5e1; }
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--gh-primary);
  border-color: var(--gh-primary);
}
label { font-weight: 600; }

/* ---------- Tables, pagination, badges, alerts ---------- */
.table thead th { border-bottom-color: var(--gh-border); color: var(--gh-muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table td, .table th { border-top-color: var(--gh-border); }
.page-item.active .page-link { background-color: var(--gh-primary); border-color: var(--gh-primary); }
.page-link { color: var(--gh-primary); }
.badge { border-radius: 999px; font-weight: 700; }
.alert { border-radius: 12px; }
.nav-tabs .nav-link.active { color: var(--gh-primary); border-bottom-color: #fff; font-weight: 700; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--gh-primary); }
.progress-bar { background-color: var(--gh-primary); }

/* ---------- Login / register ---------- */
.login-form .card, #frmLogin, .card.mw-540 { border-radius: 18px; }
.social-signin-btns .btn { border-radius: 10px; font-weight: 600; }

/* ---------- Footer (navy, like the website) ---------- */
footer.footer {
  background-color: var(--gh-navy);
  color: #cbd5e1;
  font-size: 0.9375rem;
}
footer.footer a, footer.footer .nav-link, footer.footer .btn { color: #cbd5e1; }
footer.footer a:hover, footer.footer .nav-link:hover, footer.footer .btn:hover { color: #fff; }
footer.footer .copyright { color: #94a3b8; }

/* Website footer block (templates/genhost/footer.html, placed by the theme hook) */
footer.footer.gh-has-footer { padding: 56px 0 28px; }
.gh-footer { color: #cbd5e1; font-size: 0.9375rem; text-align: left; }
.gh-footer ul { margin: 0; padding: 0; list-style: none; }
.gh-footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 36px;
}
.gh-footer-brand { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 640px) { .gh-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Desktop: brand row on top, link groups in four columns.
   Wide screens: the footer uses a wider area, with the brand and all seven groups in one row. */
@media (min-width: 992px) {
  .gh-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 28px; }
  .gh-footer-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 32px;
    max-width: none;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gh-navy-2);
  }
  .gh-footer-brand .gh-footer-logo { margin: 0; }
  .gh-footer-brand p { margin: 0; max-width: 560px; }
  .gh-footer-brand .gh-footer-mail { grid-column: 2; grid-row: 2; }
  .gh-footer-brand .gh-footer-social { grid-column: 3; grid-row: 1 / span 2; margin-top: 0 !important; }
}
@media (min-width: 1600px) {
  footer.footer.gh-has-footer > .container { max-width: 1560px; margin-left: 0; }
  .gh-footer-grid { grid-template-columns: minmax(250px, 1.5fr) repeat(7, auto); column-gap: 28px; justify-content: space-between; }
  .gh-footer-brand { display: block; grid-column: auto; max-width: 300px; padding-bottom: 0; border-bottom: 0; }
  .gh-footer-brand .gh-footer-logo { margin-bottom: 14px; }
  .gh-footer-brand p { margin: 0 0 10px; }
  .gh-footer-brand .gh-footer-social { margin-top: 14px !important; }
}
.gh-footer-logo { display: inline-flex; margin-bottom: 14px; }
.gh-footer-logo img { height: 40px; width: auto; }
.gh-footer-brand p { margin: 0 0 10px; line-height: 1.6; }
.gh-footer h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.gh-footer li { margin-bottom: 2px; }
footer.footer .gh-footer a { display: inline-block; padding: 4px 0; color: #cbd5e1; text-decoration: none; }
footer.footer .gh-footer a:hover { color: #fff; text-decoration: underline; }
footer.footer .gh-footer-mail a { color: #fff; font-weight: 600; }
.gh-footer-social { display: flex; gap: 10px; margin-top: 14px !important; }
footer.footer .gh-footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  color: #e2e8f0;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
footer.footer .gh-footer-social a:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
footer.footer .gh-footer-social .fs-facebook:hover { background: #1877f2; border-color: #1877f2; }
footer.footer .gh-footer-social .fs-instagram:hover { background: #e1306c; border-color: #e1306c; }
footer.footer .gh-footer-social .fs-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
footer.footer .gh-footer-social .fs-x:hover { background: #000; border-color: #000; }
.gh-footer-social svg { display: block; }
.gh-footer-pay { padding: 18px 0; border-top: 1px solid var(--gh-navy-2); }
.gh-footer .pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gh-footer .pay-label { color: #94a3b8; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.gh-footer .pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-footer .pay-list li { display: grid; place-items: center; width: 54px; height: 32px; margin: 0; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
.gh-footer .pay-list svg { display: block; width: 50px; height: 25px; }
.gh-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 8px;
  border-top: 1px solid var(--gh-navy-2);
  font-size: 0.875rem;
  color: #94a3b8;
}
.gh-footer-bottom p { margin: 0; flex: 1 1 420px; }
footer.footer .gh-footer-bottom .gh-footer-home { display: inline; padding: 0; color: #cbd5e1; text-decoration: underline; text-decoration-color: rgb(203 213 225 / 0.35); text-underline-offset: 3px; }
footer.footer .gh-footer-bottom .gh-footer-home:hover { color: #fff; text-decoration-color: #fff; }
.gh-footer-bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
/* Twenty-One's language / currency button, moved next to the legal links by the hook */
footer.footer .gh-footer-bottom .gh-footer-lang .btn { padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; line-height: 1.4; }
/* Twenty-One's own footer links, social icons and copyright repeat what the block shows; the
   language / currency switcher stays. */
footer.footer.gh-has-footer > .container > .nav,
footer.footer.gh-has-footer > .container > .list-inline,
footer.footer.gh-has-footer .copyright { display: none; }

/* ---------- Accessibility & touch targets ---------- */
footer.footer .nav-link, header.header .navbar-nav .nav-link { min-height: 44px; display: flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  /* Transitions only: loading spinners (fa-spin) must keep turning. */
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Navigation (script in includes/hooks/genhost_theme.php):
   - 1200px and wider: Twenty-One's main menu is a fixed sidebar on the left.
   - Narrower: an app-style bottom tab bar, and the full menu opens as a sheet.
   - Everywhere: one clean top bar with search, notifications bell, cart and the client's avatar.
   ========================================================================== */

/* ---------- Menu items (sidebar and phone sheet) ---------- */
header.header .main-navbar-wrapper .navbar-nav { flex-direction: column; width: 100% !important; margin: 0 !important; }
header.header .main-navbar-wrapper .navbar-nav > li { width: 100%; }
header.header .main-navbar-wrapper .collapsable-dropdown { display: none !important; }
header.header .main-navbar-wrapper .navbar-nav > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 14px !important;
  border-radius: 10px;
  color: var(--gh-text);
  font-weight: 600;
  text-decoration: none;
}
header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a.gh-current,
header.header .main-navbar-wrapper .navbar-nav > li.gh-current-group > a { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
header.header .main-navbar-wrapper .gh-nav-ico { width: 20px; color: var(--gh-muted); text-align: center; font-size: 1rem; }
header.header .main-navbar-wrapper a:hover .gh-nav-ico,
header.header .main-navbar-wrapper a.gh-current .gh-nav-ico,
header.header .main-navbar-wrapper li.gh-current-group > a .gh-nav-ico { color: var(--gh-primary); }
header.header .main-navbar-wrapper .dropdown-toggle::after { margin-left: auto; transition: transform 0.2s; }
header.header .main-navbar-wrapper .dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }

/* Groups (Services, Domains, Billing, Support, Account) open in place, under their heading */
header.header .main-navbar-wrapper .dropdown-menu {
  position: static !important;
  float: none;
  transform: none !important;
  margin: 0 0 6px;
  padding: 2px 0 4px 18px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
header.header .main-navbar-wrapper .dropdown-menu li.dropdown-item { padding: 0; background: none; }
header.header .main-navbar-wrapper .dropdown-menu a.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px !important;
  border-radius: 8px;
  color: var(--gh-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: normal;
}
header.header .main-navbar-wrapper .gh-sub-ico { width: 18px; flex: none; text-align: center; font-size: 0.85rem; color: #94a3b8; }
header.header .main-navbar-wrapper .dropdown-menu a.dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-menu a.dropdown-item.gh-current { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
header.header .main-navbar-wrapper .dropdown-menu a.dropdown-item:hover .gh-sub-ico,
header.header .main-navbar-wrapper .dropdown-menu a.dropdown-item.gh-current .gh-sub-ico { color: var(--gh-primary); }
header.header .main-navbar-wrapper .dropdown-divider { margin: 4px 12px; border-color: var(--gh-border); }

/* Menu head: logo row + welcome row (+ close button on phones) */
.gh-sidenav-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--gh-border);
}
.gh-head-logo { display: flex; align-items: center; min-height: 64px; padding: 10px 20px; border-bottom: 1px solid var(--gh-border); box-sizing: border-box; }
.gh-sidenav-head .navbar-brand { display: inline-block; margin: 0; padding: 0; }
.gh-sidenav-head .logo-img { max-height: 40px; width: auto; }
.gh-welcome { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 20px; font-size: 0.95rem; font-weight: 700; color: var(--gh-text); box-sizing: border-box; }
.gh-sheet-close {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gh-border);
  border-radius: 50%;
  background: #fff;
  color: var(--gh-text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Top bar ---------- */
header.header { position: sticky; top: 0; z-index: 1020; }
html.gh-appbar header.header .topbar { display: none; }
header.header > .navbar-light { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
header.header > .navbar-light > .container { align-items: center; }
header.header .toolbar { flex-direction: row; align-items: center; flex-wrap: nowrap; }
header.header .toolbar .nav-item { margin-left: 8px !important; }
header.header .gh-icon-btn,
header.header .toolbar .cart-btn {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 42px;
  min-height: 42px !important;
  height: 42px;
  padding: 0 !important;
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gh-text);
  font-size: 1.05rem;
}
header.header .gh-icon-btn:hover,
header.header .toolbar .cart-btn:hover { border-color: #f4c7c0; background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
header.header .gh-icon-btn .d-md-inline-block { display: none !important; } /* "Return to admin" text: icon only */
header.header .toolbar .cart-btn .badge,
header.header .gh-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--gh-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}
header.header .toolbar .cart-btn .badge.gh-zero { display: none; }
.gh-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  height: 42px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: #fff;
  color: var(--gh-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.gh-user-chip:hover { border-color: #f4c7c0; color: var(--gh-primary-hover); text-decoration: none; }
.gh-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gh-primary), #e8563f);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.gh-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popover-user-notifications { border: 1px solid var(--gh-border); border-radius: 14px; box-shadow: 0 16px 40px rgb(15 23 42 / 0.14); font-family: var(--gh-font); }
.popover-user-notifications .client-alerts a { border-radius: 10px; }

/* ---------- Sidebar bottom: Live chat, WhatsApp, Logout ---------- */
.gh-side-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 6px 4px;
  border-top: 1px solid var(--gh-border);
}
.gh-side-act {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  height: 46px;
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gh-muted);
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.gh-side-act-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gh-side-act:hover, .gh-side-act:focus-visible { text-decoration: none; }
.gh-act-chat { color: var(--gh-primary); }
.gh-act-chat:hover { background: var(--gh-primary-soft); border-color: #f4c7c0; color: var(--gh-primary-hover); }
.gh-act-wa { color: #128c4a; }
.gh-act-wa:hover { background: #ecfdf3; border-color: #a7f3c4; color: #0b6b37; }
.gh-act-out:hover, .gh-act-in:hover { background: var(--gh-bg-alt); border-color: #cbd5e1; color: var(--gh-text); }

/* ---------- Account menu under the avatar chip ---------- */
header.header .gh-user-item { position: relative; }
.gh-chip-caret { font-size: 0.7rem; color: var(--gh-muted); margin-left: -2px; transition: transform 0.2s; }
.gh-user-item.show .gh-chip-caret { transform: rotate(180deg); }
header.header .gh-user-item .gh-account-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1040;
  width: 270px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.14);
}
header.header .gh-account-menu li.dropdown-item { padding: 0; background: none; }
header.header .gh-account-menu a.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px !important;
  border-radius: 8px;
  color: var(--gh-text);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: normal;
}
header.header .gh-account-menu .gh-sub-ico { width: 18px; text-align: center; color: #94a3b8; }
header.header .gh-account-menu a.dropdown-item:hover { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
header.header .gh-account-menu a.dropdown-item:hover .gh-sub-ico { color: var(--gh-primary); }
header.header .gh-account-menu .dropdown-divider { margin: 6px 4px; border-color: var(--gh-border); }

/* ---------- Desktop: fixed left sidebar ---------- */
@media (min-width: 1200px) {
  :root { --gh-sidenav-w: 264px; }
  body { padding-left: var(--gh-sidenav-w); }
  header.header .main-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    width: var(--gh-sidenav-w);
    display: block;
    padding: 0 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 0;
    border-right: 1px solid var(--gh-border);
    box-shadow: 4px 0 24px rgb(15 23 42 / 0.04);
  }
  header.header .main-navbar-wrapper > .container { max-width: none; width: 100%; padding: 0 14px; display: block; }
  header.header .main-navbar-wrapper #mainNavbar { display: flex !important; flex-direction: column; align-items: stretch; min-height: calc(100vh - 150px); }
  header.header .main-navbar-wrapper .navbar-nav + .navbar-nav { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--gh-border); }
  html.gh-sidenav header.header > .navbar-light .navbar-brand { display: none; }
  .gh-tabbar { display: none !important; }

  /* Lines line up: sidebar head (109px) = top bar (64px + 1px line) + breadcrumb (43px + 1px line) */
  header.header > .navbar-light { height: 64px; min-height: 64px; padding-top: 0; padding-bottom: 0; }
  header.header { border-bottom: 1px solid var(--gh-border); }
  .master-breadcrumb { display: flex; align-items: center; height: 44px; border-bottom: 1px solid var(--gh-border); box-sizing: border-box; }
  .master-breadcrumb > .container { width: 100%; }
  .master-breadcrumb .breadcrumb { margin: 0; padding: 0; }
  .gh-head-logo { height: 65px; }                 /* = top bar 64px + its line */
  .gh-welcome { min-height: 0; height: 43px; line-height: 1.2; } /* 65 + 43 + 1px line = 109px, the breadcrumb line */
  /* Pinned to the bottom of the sidebar (after the Account menu for guests) */
  header.header .main-navbar-wrapper .gh-side-actions { margin-top: auto; }
  header.header .main-navbar-wrapper .navbar-nav.ml-auto + .gh-side-actions { margin-top: 12px; }

  /* Content starts right next to the left menu (no centred gap), up to 1480px wide */
  header.header > .navbar-light > .container,
  .master-breadcrumb > .container,
  #main-body > .container,
  #main-body > .container-fluid,
  footer.footer > .container,
  .network-issues-notifications > .container {
    max-width: 1480px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ---------- Phones and tablets: app layout ---------- */
@media (max-width: 1199.98px) {
  header.header { box-shadow: 0 1px 0 var(--gh-border); }
  header.header > .navbar-light { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  header.header > .navbar-light > .container { flex-wrap: nowrap; }
  .gh-user-chip { padding-right: 4px; }
  .gh-user-name { display: none; }

  /* The menu is a full-screen sheet, opened from the tab bar (or the menu button) */
  header.header .main-navbar-wrapper { display: none; }
  html.gh-menu-open { overflow: hidden; }
  html.gh-menu-open header.header .main-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 1035;
    display: block;
    padding: 0 0 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 0;
    animation: gh-sheet-in 0.22s ease-out;
  }
  html.gh-menu-open header.header .main-navbar-wrapper > .container { max-width: 640px; padding: 0 14px; }
  html.gh-menu-open #mainNavbar { display: block !important; height: auto !important; }
  html.gh-menu-open header.header .main-navbar-wrapper .navbar-nav + .navbar-nav { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--gh-border); }
  .gh-sheet-close { display: grid; place-items: center; }
  .gh-sidenav-head .navbar-brand { margin-right: auto; }

  /* Bottom tab bar */
  html.gh-has-tabbar body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .gh-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1036;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px env(safe-area-inset-bottom, 0px);
    background: rgb(255 255 255 / 0.97);
    border-top: 1px solid var(--gh-border);
    box-shadow: 0 -6px 24px rgb(15 23 42 / 0.06);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .gh-tabbar { background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  }
  .gh-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #64748b;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .gh-tab i { font-size: 1.2rem; }
  .gh-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gh-tab:hover, .gh-tab:focus-visible { color: var(--gh-primary-hover); text-decoration: none; }
  .gh-tab.is-active,
  html.gh-menu-open .gh-tab-menu { color: var(--gh-primary); }
  .gh-tab.is-active::before,
  html.gh-menu-open .gh-tab-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 28px;
    height: 3px;
    margin-left: -14px;
    border-radius: 0 0 3px 3px;
    background: var(--gh-primary);
  }
  header.header .toolbar [data-target="#mainNavbar"] { display: none !important; }

  /* App feel: full-width content cards, comfortable spacing, no tiny tap targets */
  #main-body { padding-top: 16px; }
  .card { border-radius: 16px; }
  .table-responsive, .table-container { -webkit-overflow-scrolling: touch; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}
@media (max-width: 575.98px) {
  header.header .navbar-brand .logo-img { max-height: 30px; }
  header.header .toolbar .nav-item { margin-left: 6px !important; }
  header.header .gh-icon-btn, header.header .toolbar .cart-btn { width: 40px; height: 40px; min-height: 40px !important; }
  .gh-user-chip { height: 40px; }
  #main-body > .container { padding-left: 12px; padding-right: 12px; }
  /* Bootstrap rows pull out 15px; match the 12px padding so pages don't scroll sideways by 3px */
  #main-body .row:not(.no-gutters) { margin-left: -12px; margin-right: -12px; }
  #main-body .row:not(.no-gutters) > [class*='col'] { padding-left: 12px; padding-right: 12px; }
  /* Switch account / return to admin: also in the Account menu, so hidden on phones */
  header.header .toolbar .gh-extra-item { display: none; }
  header.header > .navbar-light > .container { padding-left: 12px; padding-right: 12px; }
  header.header .navbar-brand { margin-right: 4px !important; flex: 0 1 auto; min-width: 0; }
  header.header .navbar-brand .logo-img { max-width: 100%; }
}
@media (max-width: 359.98px) {
  header.header .navbar-brand .logo-img { max-height: 24px; }
  header.header .gh-icon-btn, header.header .toolbar .cart-btn { width: 36px; height: 36px; min-height: 36px !important; }
  .gh-user-chip { height: 36px; padding: 2px; }
  .gh-avatar { width: 30px; height: 30px; }
}
@keyframes gh-sheet-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { html.gh-menu-open header.header .main-navbar-wrapper { animation: none; } }

/* ==========================================================================
   Client area dashboard (templates/genhost/clientareahome.tpl)
   ========================================================================== */
.gh-dash { --gh-card-r: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 8px; }
.gh-dash > * { min-width: 0; }
.gh-dash h1, .gh-dash h2 { letter-spacing: -0.02em; }
/* No underlines on the dashboard: links are cards, buttons and coloured text */
.gh-dash a, .gh-dash a:hover, .gh-dash a:focus { text-decoration: none !important; }

/* Greeting */
.gh-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(560px 280px at 100% 0%, rgb(255 255 255 / 0.18), transparent 70%),
    radial-gradient(460px 240px at 0% 120%, rgb(255 140 110 / 0.35), transparent 70%),
    linear-gradient(135deg, #C9301F 0%, #B42A1B 55%, #96220F 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgb(201 48 31 / 0.28);
}
.gh-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.gh-hero > * { position: relative; z-index: 1; }
.gh-hero-date { margin: 0 0 6px; color: #ffe1dc; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.gh-hero h1 { margin: 0; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; }
.gh-hero-sub { margin: 6px 0 0; color: #ffe9e5; }
.gh-hero-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gh-qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  padding: 14px 12px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.gh-qa i { font-size: 1.15rem; color: #fff; }
.gh-qa:hover, .gh-qa:focus-visible { background: #fff; border-color: #fff; color: var(--gh-primary-hover); text-decoration: none; transform: translateY(-2px); }
.gh-qa:hover i, .gh-qa:focus-visible i { color: var(--gh-primary); }

/* Alerts */
.gh-alerts { display: grid; gap: 10px; }
.gh-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--gh-border);
  border-radius: 16px;
  background: #fff;
}
.gh-alert p { flex: 1; margin: 0; font-weight: 600; color: var(--gh-text); }
.gh-alert-ico { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.gh-alert-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.gh-alert-btn:hover { text-decoration: none; filter: brightness(0.95); }
.gh-alert-danger { border-color: #fecaca; background: #fff7f7; }
.gh-alert-danger .gh-alert-ico { background: #fee2e2; color: #b91c1c; }
.gh-alert-danger .gh-alert-btn { background: var(--gh-primary); color: #fff; }
.gh-alert-warning { border-color: #fde68a; background: #fffbeb; }
.gh-alert-warning .gh-alert-ico { background: #fef3c7; color: #b45309; }
.gh-alert-warning .gh-alert-btn { background: #fff; border: 1px solid #fcd34d; color: #92400e; }
.gh-alert-info { border-color: #bfdbfe; background: #f5f9ff; }
.gh-alert-info .gh-alert-ico { background: #dbeafe; color: #1d4ed8; }
.gh-alert-info .gh-alert-btn { background: #fff; border: 1px solid #93c5fd; color: #1e40af; }

/* Counters */
.gh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gh-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-card-r);
  background: #fff;
  color: var(--gh-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.gh-stat:hover, .gh-stat:focus-visible { color: var(--gh-text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(15 23 42 / 0.08); }
.gh-stat-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 1.25rem; }
.gh-stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.gh-stat-label { color: var(--gh-muted); font-size: 0.85rem; font-weight: 600; }
.gh-stat-go { position: absolute; top: 16px; right: 16px; color: #cbd5e1; font-size: 0.8rem; transition: transform 0.2s, color 0.2s; }
.gh-stat:hover .gh-stat-go { color: var(--gh-primary); transform: translateX(3px); }
.gh-tone-red .gh-stat-ico { background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-tone-blue .gh-stat-ico { background: #e0ecff; color: #1d4ed8; }
.gh-tone-amber .gh-stat-ico { background: #fef3c7; color: #b45309; }
.gh-tone-green .gh-stat-ico { background: #dcfce7; color: #15803d; }
.gh-tone-alert { border-color: #fecaca; }
.gh-tone-alert .gh-stat-ico { background: var(--gh-primary); color: #fff; }
.gh-tone-alert .gh-stat-num { color: var(--gh-primary); }

/* Layout */
.gh-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.gh-col-main, .gh-col-side { display: grid; gap: 22px; min-width: 0; }

/* Cards */
.gh-card {
  padding: 20px 22px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-card-r);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.gh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gh-card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; font-weight: 800; }
.gh-card-head h2 i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--gh-bg-alt); color: var(--gh-primary); font-size: 0.9rem; }
.gh-link { font-size: 0.85rem; font-weight: 700; color: var(--gh-primary); text-decoration: none; white-space: nowrap; }
.gh-link:hover { text-decoration: underline; }
.gh-list { display: grid; margin: 0; padding: 0; list-style: none; }
.gh-list > li { border-top: 1px solid #eef1f5; }
.gh-list > li:first-child { border-top: 0; }

/* Status badges */
.gh-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.gh-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gh-status-active, .gh-status-paid { background: #dcfce7; color: #15803d; }
.gh-status-suspended, .gh-status-unpaid, .gh-status-overdue { background: #fee2e2; color: #b91c1c; }
.gh-status-pending, .gh-status-payment-pending { background: #fef3c7; color: #b45309; }
.gh-status-cancelled, .gh-status-refunded, .gh-status-collections { background: #f1f5f9; color: #64748b; }

/* Status dots (services): colour = status, with a soft pulsing glow */
.gh-dot {
  --gh-dot: #94a3b8;
  position: relative;
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--gh-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gh-dot) 22%, transparent);
}
.gh-dot::after {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border-radius: 50%;
  background: var(--gh-dot);
  opacity: 0.45;
  animation: gh-pulse 1.8s ease-out infinite;
}
@supports not (color: color-mix(in srgb, red 10%, transparent)) { .gh-dot { box-shadow: none; } }
.gh-dot-active { --gh-dot: #16a34a; }
.gh-dot-pending { --gh-dot: #eab308; }
.gh-dot-suspended { --gh-dot: #f97316; }
.gh-dot-terminated { --gh-dot: #dc2626; }
.gh-dot-cancelled, .gh-dot-fraud { --gh-dot: #111827; }
.gh-dot-cancelled::after, .gh-dot-fraud::after { opacity: 0.25; }
@keyframes gh-pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .gh-dot::after { animation: none; opacity: 0; } }

/* Services */
.gh-svc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; }
.gh-svc-name { display: block; color: var(--gh-text); font-size: 0.95rem; font-weight: 700; line-height: 1.45; text-decoration: none; }
.gh-svc-name:hover { color: var(--gh-primary); }
.gh-svc-name .gh-sep { margin: 0 6px; color: #94a3b8; font-weight: 400; }
.gh-svc-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 0.875rem; line-height: 1.5; }
.gh-svc-due, .gh-svc-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gh-svc-due { color: #1d4ed8; }
.gh-svc-price { color: #15803d; }
.gh-svc-due i, .gh-svc-price i { color: inherit; font-size: 0.8rem; }
.gh-svc-due.gh-soon { color: #c2410c; }
.gh-soon, .gh-soon i { color: #b45309 !important; font-weight: 700; }
.gh-svc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* Up to 1599px: buttons go under the service text, so renewal date and price stay on one line */
@media (max-width: 1599.98px) {
  .gh-svc { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .gh-svc .gh-dot { align-self: start; margin-top: 6px; }
  .gh-svc-actions { grid-column: 2; justify-content: flex-start; }
}

/* Buttons */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.gh-btn:hover { text-decoration: none; }
.gh-btn-primary { background: var(--gh-primary); color: #fff; }
.gh-btn-primary:hover { background: var(--gh-primary-hover); color: #fff; }
.gh-btn-soft { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
.gh-btn-soft:hover { background: #fbdcd7; color: var(--gh-primary-hover); }
.gh-btn-ghost { border-color: var(--gh-border); background: #fff; color: var(--gh-text); }
.gh-btn-ghost:hover { border-color: #cbd5e1; background: var(--gh-bg-alt); color: var(--gh-text); }

/* Domains */
.gh-dom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; }
.gh-dom-name { overflow: hidden; color: var(--gh-text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.gh-dom-name:hover { color: var(--gh-primary); }
.gh-dom-date { color: var(--gh-muted); font-size: 0.85rem; white-space: nowrap; }
.gh-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.gh-pill-ok { background: #dcfce7; color: #15803d; }
.gh-pill-off { background: #f1f5f9; color: #64748b; }

/* Empty states */
.gh-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 12px 8px; color: var(--gh-muted); text-align: center; }
.gh-empty > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gh-bg-alt); color: var(--gh-primary); font-size: 1.3rem; }
.gh-empty p { margin: 0; }
.gh-empty-sm { padding-top: 10px; }
.gh-empty-sm > i { width: 42px; height: 42px; font-size: 1.05rem; color: #15803d; background: #ecfdf3; }

/* News */
.gh-news { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gh-news a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--gh-bg-alt); color: var(--gh-text); text-decoration: none; transition: background-color 0.15s; }
.gh-news a:hover { background: var(--gh-primary-soft); }
.gh-news-date { color: var(--gh-primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-news-title { font-weight: 700; }
.gh-news-text { color: var(--gh-muted); font-size: 0.86rem; }

/* Billing */
.gh-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gh-balance > div { padding: 14px; border-radius: 14px; background: var(--gh-bg-alt); }
.gh-balance-label { display: block; color: var(--gh-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-balance-num { display: block; margin-top: 4px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.gh-balance-num.is-due { color: var(--gh-primary); }
.gh-balance-credit { color: #15803d; }
.gh-billing-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 8px; }
.gh-inv { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
.gh-inv li { border-top: 1px solid #eef1f5; }
.gh-inv a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; color: var(--gh-text); text-decoration: none; }
.gh-inv a:hover .gh-inv-no { color: var(--gh-primary); }
.gh-inv-no { font-weight: 700; }
.gh-inv-no small { display: block; color: var(--gh-muted); font-size: 0.78rem; font-weight: 500; }
.gh-inv-total { font-weight: 700; font-size: 0.9rem; }

/* Help */
.gh-help { background: linear-gradient(160deg, #fff, #fff7f5); border-color: #f6d6d0; }
.gh-help h2 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.gh-help > p { margin: 0 0 14px; color: var(--gh-muted); font-size: 0.9rem; }
.gh-help-search { position: relative; margin-bottom: 12px; }
.gh-help-search i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #94a3b8; }
.gh-help-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; font-size: 0.9rem; }
.gh-help-search input:focus { outline: none; border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-help-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gh-help-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: #fff;
  color: var(--gh-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.gh-help-btn i { font-size: 1.15rem; color: var(--gh-primary); }
.gh-help-wa i { color: #128c4a; }
.gh-help-btn:hover { border-color: #f4c7c0; color: var(--gh-primary-hover); text-decoration: none; transform: translateY(-1px); }

/* Tickets */
.gh-tix { display: grid; margin: 0; padding: 0; list-style: none; }
.gh-tix li { border-top: 1px solid #eef1f5; }
.gh-tix li:first-child { border-top: 0; }
.gh-tix a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 0; color: var(--gh-text); text-decoration: none; }
.gh-tix a:hover .gh-tix-title { color: var(--gh-primary); }
.gh-tix-title { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gh-tix-meta { grid-column: 1; color: var(--gh-muted); font-size: 0.8rem; }
.gh-tix-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gh-st, #64748b) 14%, #fff);
  color: var(--gh-st, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
@supports not (background: color-mix(in srgb, red 10%, #fff)) { .gh-tix-status { background: #f1f5f9; } }

/* Responsive */
@media (max-width: 1399.98px) {
  .gh-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .gh-grid { grid-template-columns: minmax(0, 1fr); }
  /* One column: interleave the two columns so billing comes right after services */
  .gh-col-main, .gh-col-side { display: contents; }
  .gh-o-services { order: 1; } .gh-o-billing { order: 2; } .gh-o-domains { order: 3; }
  .gh-o-help { order: 4; } .gh-o-tickets { order: 5; } .gh-o-news { order: 6; }
  .gh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-hero-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 767.98px) {
  .gh-dash { gap: 16px; }
  .gh-hero { padding: 22px 18px; border-radius: 20px; }
  .gh-hero-actions { gap: 8px; }
  .gh-qa { min-width: 0; padding: 12px 4px; border-radius: 14px; font-size: 0.72rem; }
  .gh-stats { gap: 10px; }
  .gh-stat { padding: 14px; column-gap: 10px; border-radius: 16px; }
  .gh-stat-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
  .gh-stat-num { font-size: 1.35rem; }
  .gh-stat-label { font-size: 0.76rem; }
  .gh-stat-go { display: none; }
  .gh-card { padding: 16px; border-radius: 18px; }
  .gh-svc { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
  .gh-svc .gh-dot { align-self: start; margin-top: 6px; }
  .gh-svc-actions { grid-column: 1 / -1; }
  .gh-svc-actions { justify-content: flex-start; }
  .gh-svc-actions .gh-btn { flex: 1; }
  .gh-dom { grid-template-columns: minmax(0, 1fr) auto; }
  .gh-dom-date { grid-column: 1; grid-row: 2; }
  .gh-dom .gh-pill { grid-row: 1 / span 2; grid-column: 2; }
  .gh-alert { flex-wrap: wrap; }
  .gh-alert p { flex-basis: calc(100% - 52px); }
  .gh-alert-btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .gh-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .gh-qa:hover, .gh-stat:hover, .gh-help-btn:hover { transform: none; }
}

/* ==========================================================================
   My services page (templates/genhost/clientareaproducts.tpl)
   ========================================================================== */
.gh-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.gh-page-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.gh-page-head p { margin: 4px 0 0; color: var(--gh-muted); }

.gh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.gh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: #fff;
  color: var(--gh-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.gh-filter [data-count] { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--gh-bg-alt); color: var(--gh-muted); font-size: 0.75rem; text-align: center; }
.gh-filter .gh-dot { width: 8px; height: 8px; margin: 0; box-shadow: none; }
.gh-filter .gh-dot::after { display: none; }
.gh-filter:hover { border-color: #f4c7c0; }
.gh-filter.is-on { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-filter.is-on [data-count] { background: rgb(255 255 255 / 0.22); color: #fff; }
.gh-toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-search { position: relative; margin: 0; }
.gh-search i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #94a3b8; }
.gh-search input { width: 260px; max-width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; font-size: 0.9rem; }
.gh-sort { margin: 0; }
.gh-sort select { height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; font-size: 0.9rem; font-weight: 600; }
.gh-search input:focus, .gh-sort select:focus { outline: none; border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }

.gh-flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 3px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgb(15 23 42 / 0.12); vertical-align: -2px; }
.gh-flag-fr { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzMCAyMCc+PHJlY3Qgd2lkdGg9JzEwJyBoZWlnaHQ9JzIwJyBmaWxsPScjMDA1NUE0Jy8+PHJlY3QgeD0nMTAnIHdpZHRoPScxMCcgaGVpZ2h0PScyMCcgZmlsbD0nI2ZmZicvPjxyZWN0IHg9JzIwJyB3aWR0aD0nMTAnIGhlaWdodD0nMjAnIGZpbGw9JyNFRjQxMzUnLz48L3N2Zz4='); }
.gh-flag-us { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzMCAyMCc+PHJlY3Qgd2lkdGg9JzMwJyBoZWlnaHQ9JzIwJyBmaWxsPScjZmZmJy8+PHJlY3QgeT0nMC4wMDAnIHdpZHRoPSczMCcgaGVpZ2h0PScxLjUzOCcgZmlsbD0nI0IyMjIzNCcvPjxyZWN0IHk9JzMuMDc3JyB3aWR0aD0nMzAnIGhlaWdodD0nMS41MzgnIGZpbGw9JyNCMjIyMzQnLz48cmVjdCB5PSc2LjE1NCcgd2lkdGg9JzMwJyBoZWlnaHQ9JzEuNTM4JyBmaWxsPScjQjIyMjM0Jy8+PHJlY3QgeT0nOS4yMzEnIHdpZHRoPSczMCcgaGVpZ2h0PScxLjUzOCcgZmlsbD0nI0IyMjIzNCcvPjxyZWN0IHk9JzEyLjMwOCcgd2lkdGg9JzMwJyBoZWlnaHQ9JzEuNTM4JyBmaWxsPScjQjIyMjM0Jy8+PHJlY3QgeT0nMTUuMzg1JyB3aWR0aD0nMzAnIGhlaWdodD0nMS41MzgnIGZpbGw9JyNCMjIyMzQnLz48cmVjdCB5PScxOC40NjInIHdpZHRoPSczMCcgaGVpZ2h0PScxLjUzOCcgZmlsbD0nI0IyMjIzNCcvPjxyZWN0IHdpZHRoPScxMycgaGVpZ2h0PScxMC43NycgZmlsbD0nIzNDM0I2RScvPjwvc3ZnPg=='); }
.gh-flag-in { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzMCAyMCc+PHJlY3Qgd2lkdGg9JzMwJyBoZWlnaHQ9JzYuNjcnIGZpbGw9JyNGRjk5MzMnLz48cmVjdCB5PSc2LjY3JyB3aWR0aD0nMzAnIGhlaWdodD0nNi42NycgZmlsbD0nI2ZmZicvPjxyZWN0IHk9JzEzLjMzJyB3aWR0aD0nMzAnIGhlaWdodD0nNi42NycgZmlsbD0nIzEzODgwOCcvPjxjaXJjbGUgY3g9JzE1JyBjeT0nMTAnIHI9JzIuNicgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAwMDgwJyBzdHJva2Utd2lkdGg9JzAuNycvPjxjaXJjbGUgY3g9JzE1JyBjeT0nMTAnIHI9JzAuNicgZmlsbD0nIzAwMDA4MCcvPjwvc3ZnPg=='); }
.gh-flag-offshore { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAzMCAyMCc+PHJlY3Qgd2lkdGg9JzMwJyBoZWlnaHQ9JzIwJyBmaWxsPScjMjMyNzJFJy8+PGNpcmNsZSBjeD0nMTUnIGN5PScxMCcgcj0nNi41JyBmaWxsPSdub25lJyBzdHJva2U9JyNmZmYnIHN0cm9rZS13aWR0aD0nMS4yJy8+PGVsbGlwc2UgY3g9JzE1JyBjeT0nMTAnIHJ4PSczJyByeT0nNi41JyBmaWxsPSdub25lJyBzdHJva2U9JyNmZmYnIHN0cm9rZS13aWR0aD0nMScvPjxwYXRoIGQ9J004LjUgMTBoMTMnIHN0cm9rZT0nI2ZmZicgc3Ryb2tlLXdpZHRoPScxJy8+PC9zdmc+'); }

/* Service rows */
.gh-table { overflow: hidden; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }
.gh-tr { display: grid; grid-template-columns: minmax(0, 1fr) 140px 180px 500px; align-items: center; gap: 16px; padding: 16px 22px; }
.gh-thead { padding-top: 12px; padding-bottom: 12px; background: var(--gh-bg-alt); border-bottom: 1px solid var(--gh-border); color: var(--gh-muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-svcrow { border-top: 1px solid #eef1f5; transition: background-color 0.15s; }
.gh-tbody .gh-svcrow:first-child { border-top: 0; }
.gh-svcrow:hover { background: #fffbfa; }
.gh-svcrow[hidden] { display: none; }
.gh-td-svc { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.gh-td-svc > .gh-dot { margin-top: 7px; }
.gh-svc-info { min-width: 0; }
.gh-svc-group { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; color: var(--gh-primary); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-svc-title { display: block; color: var(--gh-text); font-size: 1rem; font-weight: 800; line-height: 1.35; }
.gh-svc-title:hover { color: var(--gh-primary); }
.gh-svc-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; font-size: 0.875rem; }
.gh-copyable { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.gh-copyable a { overflow: hidden; color: var(--gh-muted); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gh-copyable a:hover { color: var(--gh-primary); }
.gh-ip { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-muted); font-weight: 600; }
.gh-ip i { font-size: 0.72rem; color: #94a3b8; }
.gh-copy { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; color: #94a3b8; font-size: 0.8rem; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.gh-copy:hover, .gh-copy:focus-visible { background: var(--gh-bg-alt); color: var(--gh-primary); }
.gh-copy.is-done { color: #15803d; }
.gh-svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.gh-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.gh-tag i { font-size: 0.7rem; }
.gh-tag-addon { background: #eef2ff; color: #4338ca; }
.gh-tag-cancel { background: #fee2e2; color: #b91c1c; }
.gh-td-label { display: none; }
.gh-td-due .gh-svc-due, .gh-td-price .gh-svc-price { font-size: 0.9rem; }
.gh-svc-price small { display: block; color: #15803d; opacity: 0.75; font-size: 0.75rem; font-weight: 600; }
.gh-muted { color: #94a3b8; }
.gh-td-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gh-btn-sm { min-height: 36px; padding: 6px 12px; border-radius: 10px; font-size: 0.82rem; }
.gh-btn-sm i { font-size: 0.75rem; }
.gh-add-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px dashed #e2e8f0; color: var(--gh-text); transition: background-color 0.15s; }
.gh-add-row:hover { background: var(--gh-primary-soft); color: var(--gh-text); }
.gh-add-row > span:nth-child(2) { flex: 1; display: grid; }
.gh-add-row b { font-weight: 800; }
.gh-add-row small { color: var(--gh-muted); font-size: 0.82rem; }
.gh-add-row > i { color: var(--gh-primary); }
.gh-add-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-table .gh-empty { padding: 26px 12px; }

/* Below 1600px: actions go under the service details, columns stay aligned */
@media (max-width: 1599.98px) {
  .gh-tr { grid-template-columns: minmax(0, 1fr) 140px 160px; }
  .gh-th-actions { display: none; }
  .gh-td-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 26px; }
}
/* Phones: one stacked block per service */
@media (max-width: 767.98px) {
  .gh-thead { display: none; }
  .gh-tr { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; }
  .gh-td-svc { grid-column: 1 / -1; }
  .gh-td-due, .gh-td-price { padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); }
  .gh-td-label { display: block; margin-bottom: 2px; color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .gh-td-actions { padding-left: 0; }
  .gh-td-actions .gh-btn { flex: 1 1 auto; }
  .gh-add-row { padding: 16px; }
}

@media (max-width: 767.98px) {
  .gh-toolbar-right, .gh-search, .gh-search input { width: 100%; }
  .gh-sort { flex: 1; }
  .gh-sort select { width: 100%; }
  .gh-toolbar { flex-direction: column; align-items: stretch; }
  .gh-filters { flex-wrap: nowrap; min-width: 0; max-width: calc(100% + 24px); overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gh-filters::-webkit-scrollbar { display: none; }
  .gh-filter { flex: none; }
  .gh-page-head .gh-btn { width: 100%; }
}

/* ==========================================================================
   Compact sizing for the dashboard and My services (neater, denser pages)
   ========================================================================== */
.gh-dash { gap: 18px; font-size: 0.875rem; }
.gh-hero { padding: 22px 26px; gap: 18px 28px; border-radius: 20px; }
.gh-hero h1 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.gh-hero-date { font-size: 0.72rem; }
.gh-hero-sub { font-size: 0.875rem; }
.gh-qa { min-width: 92px; padding: 10px; gap: 6px; border-radius: 14px; font-size: 0.76rem; }
.gh-qa i { font-size: 1rem; }
.gh-alert { padding: 9px 12px 9px 10px; border-radius: 14px; }
.gh-alert p { font-size: 0.85rem; }
.gh-alert-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 0.9rem; }
.gh-alert-btn { padding: 6px 12px; font-size: 0.8rem; }
.gh-stats { gap: 14px; }
.gh-stat { padding: 14px 16px; column-gap: 12px; border-radius: 16px; }
.gh-stat-ico { width: 42px; height: 42px; border-radius: 13px; font-size: 1.05rem; }
.gh-stat-num { font-size: 1.4rem; }
.gh-stat-label { font-size: 0.78rem; }
.gh-grid, .gh-col-main, .gh-col-side { gap: 18px; }
.gh-card { padding: 16px 18px; border-radius: 16px; }
.gh-card-head { margin-bottom: 8px; }
.gh-card-head h2 { font-size: 0.95rem; gap: 8px; }
.gh-card-head h2 i { width: 28px; height: 28px; border-radius: 9px; font-size: 0.8rem; }
.gh-link { font-size: 0.8rem; }
.gh-svc { padding: 11px 0; gap: 12px; }
.gh-svc-name { font-size: 0.875rem; }
.gh-svc-meta { font-size: 0.8rem; gap: 2px 14px; margin-top: 2px; }
.gh-btn { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: 0.8rem; }
.gh-btn-sm { min-height: 32px; padding: 5px 11px; border-radius: 9px; font-size: 0.78rem; }
.gh-dom { padding: 9px 0; }
.gh-dom-name { font-size: 0.875rem; }
.gh-dom-date, .gh-pill { font-size: 0.75rem; }
.gh-balance > div { padding: 10px 12px; border-radius: 12px; }
.gh-balance-label { font-size: 0.68rem; }
.gh-balance-num { font-size: 1.05rem; }
.gh-inv a { padding: 8px 0; }
.gh-inv-no, .gh-inv-total { font-size: 0.85rem; }
.gh-inv-no small { font-size: 0.72rem; }
.gh-status { font-size: 0.68rem; padding: 2px 8px; }
.gh-help h2 { font-size: 0.95rem; }
.gh-help > p { font-size: 0.82rem; margin-bottom: 10px; }
.gh-help-search input { height: 38px; font-size: 0.85rem; }
.gh-help-btn { padding: 9px 6px; border-radius: 12px; font-size: 0.75rem; }
.gh-help-btn i { font-size: 1rem; }
.gh-tix a { padding: 9px 0; }
.gh-tix-title { font-size: 0.85rem; }
.gh-tix-meta { font-size: 0.75rem; }
.gh-tix-status { font-size: 0.68rem; }
.gh-news a { padding: 10px 12px; border-radius: 12px; }
.gh-news-title { font-size: 0.875rem; }
.gh-news-text { font-size: 0.8rem; }
.gh-news-date { font-size: 0.68rem; }
.gh-empty p { font-size: 0.85rem; }

/* My services */
.gh-page-head h1 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); }
.gh-page-head p { font-size: 0.85rem; margin-top: 2px; }
.gh-toolbar-full { flex: 1; justify-content: flex-end; }
.gh-search input, .gh-sort select { height: 38px; font-size: 0.85rem; border-radius: 10px; }
.gh-search input { width: 280px; }
.gh-sort select { min-width: 230px; }
.gh-tr { gap: 14px; padding: 12px 18px; grid-template-columns: minmax(0, 1fr) 120px 160px 460px; }
.gh-thead { padding-top: 9px; padding-bottom: 9px; font-size: 0.68rem; }
.gh-td-svc { gap: 12px; }
.gh-td-svc > .gh-dot { margin-top: 5px; width: 10px; height: 10px; }
.gh-svc-group { font-size: 0.66rem; gap: 6px; }
.gh-flag { width: 18px; height: 12px; border-radius: 2px; }
.gh-svc-title { font-size: 0.9rem; }
.gh-svc-sub { font-size: 0.8rem; margin-top: 2px; gap: 2px 14px; }
.gh-copy { width: 22px; height: 22px; font-size: 0.72rem; }
.gh-svc-tags { margin-top: 6px; gap: 5px; }
.gh-tag { padding: 2px 8px; font-size: 0.7rem; }
.gh-td-due .gh-svc-due, .gh-td-price .gh-svc-price { font-size: 0.82rem; }
.gh-svc-price small { font-size: 0.7rem; }
.gh-add-row { padding: 12px 18px; gap: 12px; }
.gh-add-row b { font-size: 0.875rem; }
.gh-add-row small { font-size: 0.75rem; }
.gh-add-ico { width: 30px; height: 30px; border-radius: 9px; font-size: 0.8rem; }
@media (max-width: 1599.98px) { .gh-tr { grid-template-columns: minmax(0, 1fr) 120px 150px; } .gh-td-actions { padding-left: 22px; } }
@media (max-width: 767.98px) {
  .gh-tr { grid-template-columns: 1fr 1fr; padding: 14px; }
  .gh-td-actions { padding-left: 0; }
  .gh-sort select, .gh-search input { width: 100%; min-width: 0; }
  .gh-toolbar-full { flex-direction: column; }
}

/* My services: product group next to the plan in the title line */
.gh-svc-title { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 2px; }
.gh-svc-title .gh-flag { margin-right: 8px; }
.gh-svc-title .gh-title-group { color: var(--gh-text); }
.gh-svc-title .gh-sep { margin: 0 7px; color: #94a3b8; font-weight: 400; }
.gh-svc-title:hover .gh-title-group, .gh-svc-title:hover span { color: var(--gh-primary); }

/* My services: icon-only action buttons (name on hover / for screen readers; labels on phones) */
.gh-tr { grid-template-columns: minmax(0, 1fr) 130px 170px 180px; }
.gh-th-actions { display: block !important; }
.gh-td-actions { grid-column: auto !important; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; padding-left: 0 !important; }
.gh-act {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gh-text);
  font-size: 0.85rem;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.gh-act:hover, .gh-act:focus-visible { transform: translateY(-1px); }
.gh-act-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gh-act-renew { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-act-renew:hover { background: var(--gh-primary-hover); border-color: var(--gh-primary-hover); color: #fff; }
.gh-act-login { border-color: #fbd5cf; background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
.gh-act-login:hover { background: #fbdcd7; color: var(--gh-primary-hover); }
.gh-act-upgrade { color: #15803d; }
.gh-act-upgrade:hover { border-color: #a7f3c4; background: #ecfdf3; color: #15803d; }
.gh-act-manage:hover { border-color: #cbd5e1; background: var(--gh-bg-alt); color: var(--gh-text); }
@media (max-width: 1199.98px) { .gh-tr { grid-template-columns: minmax(0, 1fr) 120px 150px 172px; } }
@media (max-width: 767.98px) {
  .gh-tr { grid-template-columns: 1fr 1fr; }
  .gh-th-actions { display: none !important; }
  .gh-td-actions { grid-column: 1 / -1 !important; flex-wrap: wrap; justify-content: flex-start; }
  .gh-act { display: inline-flex; flex: 1 1 auto; gap: 8px; width: auto; padding: 0 12px; font-size: 0.8rem; font-weight: 700; }
  .gh-act-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (prefers-reduced-motion: reduce) { .gh-act:hover { transform: none; } }

/* ==========================================================================
   Collapsible sidebar (desktop): icons only, remembered per browser
   ========================================================================== */
.gh-collapse { display: none; }
@media (min-width: 1200px) {
  /* Slide only when the visitor clicks the collapse button (gh-anim), never on page load */
  html.gh-anim body, html.gh-anim header.header .main-navbar-wrapper { transition: padding-left 0.2s ease, width 0.2s ease; }
  .gh-collapse {
    position: fixed;
    top: 50px;
    left: calc(var(--gh-sidenav-w) - 14px);
    z-index: 1032;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--gh-border);
    border-radius: 50%;
    background: #fff;
    color: var(--gh-muted);
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.1);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
  }
  html.gh-anim .gh-collapse { transition: left 0.2s ease, color 0.15s, border-color 0.15s; }
  .gh-collapse:hover, .gh-collapse:focus-visible { border-color: #f4c7c0; color: var(--gh-primary); }

  html.gh-collapsed { --gh-sidenav-w: 76px; }
  html.gh-collapsed header.header .main-navbar-wrapper { overflow: visible; }
  html.gh-collapsed header.header .main-navbar-wrapper > .container { padding: 0 10px; }

  /* Head: Genhost mark only (left part of the logo), welcome row kept for alignment */
  html.gh-collapsed .gh-head-logo { justify-content: center; padding: 10px 0; }
  html.gh-collapsed .gh-head-logo .logo-img { width: 40px; height: 40px; max-height: none; object-fit: cover; object-position: left center; }
  html.gh-collapsed .gh-welcome { justify-content: center; padding: 0; font-size: 0; }
  html.gh-collapsed .gh-welcome[data-initial]::before {
    content: attr(data-initial);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gh-primary), #e8563f);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
  }

  /* Icon-only items */
  html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li { position: relative; }
  html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li > a {
    justify-content: center;
    gap: 0;
    padding: 10px 0 !important;
    font-size: 0;
  }
  html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li > a .gh-nav-ico { width: auto; font-size: 1.05rem; }
  html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li > a .badge { position: absolute; top: 4px; right: 6px; font-size: 0.6rem; }
  html.gh-collapsed header.header .main-navbar-wrapper .dropdown-toggle::after { display: none; }

  /* Groups open as a pop-out beside the icon */
  html.gh-collapsed header.header .main-navbar-wrapper .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 78px !important; /* the item starts 10px inside the 76px bar: this puts the pop-out 12px past its edge */
    z-index: 1040;
    min-width: 230px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgb(15 23 42 / 0.14);
  }
  html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav.ml-auto .dropdown-menu { top: auto !important; bottom: 0; }

  /* Live chat / WhatsApp / Logout stack */
  html.gh-collapsed .gh-side-actions { flex-direction: column; align-items: center; padding: 12px 0 4px; }
  html.gh-collapsed .gh-side-act { flex: none; width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  body, header.header .main-navbar-wrapper, .gh-collapse { transition: none !important; }
}

/* Dropdown arrows in the menu: same position on every row, whatever the label length */
header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle { position: relative; padding-right: 30px !important; }
header.header .main-navbar-wrapper .navbar-nav > li > a.dropdown-toggle::after {
  position: absolute;
  top: 50%;
  right: 12px;
  margin: -2px 0 0;
  transform-origin: 50% 25%;
}
header.header .main-navbar-wrapper .dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }
.gh-wave { display: inline-block; margin-left: 6px; transform-origin: 70% 70%; animation: gh-wave 2.4s ease-in-out 0.6s 2; }
@keyframes gh-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .gh-wave { animation: none; } }
header.header .main-navbar-wrapper .navbar-nav > li > a .gh-nav-ico { flex: none; }
header.header .main-navbar-wrapper .gh-nav-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; white-space: normal; }
html.gh-collapsed header.header .main-navbar-wrapper .gh-nav-text { display: none; }
header.header .main-navbar-wrapper .navbar-nav > li > a { font-size: 0.9rem; }
/* Twenty-One pads the menu container 16px each side; the sidebar has its own padding */
@media (min-width: 1200px) {
  header.header .main-navbar-wrapper #mainNavbar { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   Refinement pass: flatter, quieter, more "product" than "template".
   Thin borders instead of shadows, smaller radii, no hover lift, fewer
   decorative icon tiles, and content that always fills the space next to
   the left menu (expanded or collapsed).
   ========================================================================== */
:root { --gh-line: #e6e8ec; }

/* Content fills the width beside the menu, whatever its state */
@media (min-width: 1200px) {
  header.header > .navbar-light > .container,
  .master-breadcrumb > .container,
  #main-body > .container,
  #main-body > .container-fluid,
  footer.footer > .container,
  footer.footer.gh-has-footer > .container,
  .network-issues-notifications > .container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1800px) {
  #main-body > .container, .master-breadcrumb > .container, header.header > .navbar-light > .container { padding-left: 40px; padding-right: 40px; }
}

/* Surfaces: one border colour, small radius, no shadows, no lift */
.gh-dash { --gh-card-r: 10px; }
.gh-card, .gh-stat, .gh-table, .gh-alert, .card { border-color: var(--gh-line); box-shadow: none !important; }
.gh-card, .gh-stat, .gh-table { border-radius: 10px; }
.card { border-radius: 10px; }
.gh-stat:hover, .gh-svcrow:hover, .gh-qa:hover, .gh-help-btn:hover, .gh-act:hover, .gh-news a:hover { transform: none !important; }
.gh-stat:hover { border-color: #d5d9e0; box-shadow: none; }
.gh-btn, .gh-act, .gh-search input, .gh-sort select, .gh-help-search input, .gh-help-btn, .btn { border-radius: 8px; }

/* Header bar: flat brand red, no glow or pattern */
.gh-hero {
  background: var(--gh-primary);
  box-shadow: none;
  border-radius: 10px;
  padding: 20px 24px;
}
.gh-hero::after { display: none; }
.gh-hero-date { color: rgb(255 255 255 / 0.75); letter-spacing: 0.06em; }
.gh-hero-sub { color: rgb(255 255 255 / 0.85); font-variant-numeric: tabular-nums; }
.gh-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-qa {
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 8px;
  background: transparent;
  font-size: 0.82rem;
}
.gh-qa i { font-size: 0.85rem; }
.gh-qa:hover, .gh-qa:focus-visible { background: #fff; color: var(--gh-primary-hover); }

/* Alerts: white with a coloured left edge */
.gh-alert { border-left-width: 3px; border-radius: 8px; background: #fff; }
.gh-alert-danger { border-color: var(--gh-line); border-left-color: #dc2626; background: #fff; }
.gh-alert-warning { border-color: var(--gh-line); border-left-color: #d97706; background: #fff; }
.gh-alert-info { border-color: var(--gh-line); border-left-color: #2563eb; background: #fff; }
.gh-alert-ico { width: auto; height: auto; background: none !important; }
.gh-alert-btn { border-radius: 6px; }

/* Counters: number first, small plain icon, no tinted tiles */
.gh-stat { grid-template-columns: 1fr auto; padding: 14px 16px; }
.gh-stat-ico { grid-row: 1; grid-column: 2; width: auto; height: auto; background: none !important; font-size: 0.95rem; align-self: start; }
.gh-stat-num { grid-row: 1; grid-column: 1; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gh-stat-label { grid-row: 2; grid-column: 1 / -1; }
.gh-tone-red .gh-stat-ico { color: var(--gh-primary); }
.gh-tone-blue .gh-stat-ico { color: #2563eb; }
.gh-tone-amber .gh-stat-ico { color: #d97706; }
.gh-tone-green .gh-stat-ico { color: #16a34a; }
.gh-tone-alert { border-color: var(--gh-line); border-top: 3px solid var(--gh-primary); }
.gh-tone-alert .gh-stat-ico { color: var(--gh-primary); }

/* Card headings: plain text, small muted icon */
.gh-card-head { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #f0f2f5; }
.gh-card-head h2 { font-weight: 700; }
.gh-card-head h2 i { width: auto; height: auto; background: none; color: #94a3b8; font-size: 0.85rem; }

/* Badges: small, squared */
.gh-status, .gh-pill, .gh-tix-status, .gh-tag { border-radius: 5px; }
.gh-status::before { display: none; }

/* Quieter status dot: small ring, slower pulse */
.gh-dot { width: 9px; height: 9px; box-shadow: none; }
.gh-dot::after { animation-duration: 2.6s; opacity: 0.3; }

/* Support card: plain */
.gh-help { background: #fff; border-color: var(--gh-line); }
.gh-help-btn { flex-direction: row; justify-content: center; gap: 8px; padding: 9px 8px; font-size: 0.8rem; }
.gh-help-btn i { font-size: 0.9rem; }

/* News: list, not tiles */
.gh-news { gap: 0; }
.gh-news li { border-top: 1px solid #f0f2f5; }
.gh-news li:first-child { border-top: 0; }
.gh-news a { padding: 10px 0; border-radius: 0; background: none; }
.gh-news a:hover { background: none; }
.gh-news a:hover .gh-news-title { color: var(--gh-primary); }

/* Billing figures */
.gh-balance > div { border: 1px solid var(--gh-line); background: #fafbfc; border-radius: 8px; }
.gh-balance-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.gh-inv-total, .gh-svc-price, .gh-svc-due { font-variant-numeric: tabular-nums; }

/* Services table and toolbar */
.gh-table { border-radius: 10px; }
.gh-thead { background: #fafbfc; }
.gh-svcrow:hover { background: #fcfcfd; }
.gh-add-row { border-top-style: solid; border-top-color: #f0f2f5; }
.gh-add-ico { border-radius: 6px; }

/* Left menu: flatter active state */
header.header .main-navbar-wrapper .navbar-nav > li > a { border-radius: 8px; }
header.header .main-navbar-wrapper .navbar-nav > li > a.gh-current,
header.header .main-navbar-wrapper .navbar-nav > li.gh-current-group > a { box-shadow: inset 3px 0 0 var(--gh-primary); }
.gh-side-act { border-radius: 8px; }
html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li > a.gh-current,
html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li.gh-current-group > a { box-shadow: none; }

/* Top bar controls */
header.header .gh-icon-btn, header.header .toolbar .cart-btn { border-radius: 8px; }
.gh-user-chip { border-radius: 8px; }
.gh-avatar { border-radius: 6px; background: var(--gh-primary); }
header.header .gh-user-item .gh-account-menu, .popover-user-notifications { border-radius: 10px; }

@media (max-width: 767.98px) {
  .gh-hero { padding: 16px; }
  .gh-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .gh-qa { justify-content: center; }
}

/* Dashboard header: plain welcome + quick actions (no banner, no counter cards) */
.gh-home-head { align-items: center; }
.gh-home-head h1 { margin: 0; }
.gh-home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-home-actions .gh-btn i { font-size: 0.8rem; }
@media (max-width: 767.98px) {
  .gh-home-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .gh-home-actions .gh-btn { width: 100%; }
}
/* Phone order (one column): services, active domains, support, billing, renewing domains, tickets, news */
@media (max-width: 1199.98px) {
  .gh-o-services { order: 1; } .gh-o-mydomains { order: 2; } .gh-o-help { order: 3; } .gh-o-billing { order: 4; }
  .gh-o-domains { order: 5; } .gh-o-tickets { order: 6; } .gh-o-news { order: 7; }
}
/* Closable alerts */
.gh-alert[hidden] { display: none; }
.gh-alert-close { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; margin-left: -4px; padding: 0; border: 0; border-radius: 6px; background: none; color: #94a3b8; cursor: pointer; }
.gh-alert-close:hover, .gh-alert-close:focus-visible { background: #f1f5f9; color: var(--gh-text); }
@media (max-width: 767.98px) { .gh-alert-close { position: absolute; top: 8px; right: 8px; } .gh-alert { position: relative; padding-right: 40px; } }
/* Support: four contact buttons (chat, WhatsApp, ticket, call) */
.gh-help-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1600px) { .gh-help-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   My services: header tools, product icons, status column
   ========================================================================== */
.gh-svcpage .gh-page-head { align-items: center; }
.gh-head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.gh-head-controls { display: flex; gap: 8px; }
.gh-head-controls .gh-search input { width: 240px; }
.gh-head-controls .gh-sort select { min-width: 220px; }
.gh-head-tools .gh-btn { min-height: 38px; }

/* Product icon (module / group based) */
.gh-pico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  user-select: none;
}
.gh-pico i { font-size: 1rem; }
.gh-pico-cpanel { background: #fff1ea; color: #ff6c2c; font-size: 0.95rem; }
.gh-pico-whm { background: #2b3445; color: #ff8a52; font-size: 0.7rem; letter-spacing: 0.02em; }
.gh-pico-plesk { background: #e9f6fc; color: #1f8fc7; font-size: 0.68rem; }
.gh-pico-da { background: #e8f0fe; color: #1a5fb4; }
.gh-pico-kvm { background: #ecfdf3; color: #15803d; font-size: 0.7rem; letter-spacing: 0.02em; }
.gh-pico-dedicated { background: #23272e; color: #fff; }
.gh-pico-windows { background: #e8f3fd; color: #0078d4; }
.gh-pico-ssl { background: #ecfdf3; color: #15803d; }
.gh-pico-security { background: #fef3c7; color: #b45309; }
.gh-pico-mail { background: #eef2ff; color: #4338ca; }
.gh-td-svc > .gh-pico { margin-top: 1px; }

/* Status column */
.gh-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--gh-text); white-space: nowrap; }
.gh-state .gh-dot { margin: 0; }

/* Columns: Service | Status | Renews | Price | actions */
.gh-tr { grid-template-columns: minmax(0, 1fr) 120px 130px 170px 180px; }
@media (max-width: 1399.98px) { .gh-tr { grid-template-columns: minmax(0, 1fr) 110px 120px 150px 172px; } }
@media (max-width: 1199.98px) {
  .gh-head-tools { width: 100%; justify-content: flex-start; }
  .gh-head-controls { flex: 1; }
  .gh-head-controls .gh-search { flex: 1; }
  .gh-head-controls .gh-search input { width: 100%; }
}
@media (max-width: 767.98px) {
  .gh-tr { grid-template-columns: 1fr 1fr; }
  .gh-td-status { grid-column: 1 / -1; order: -1; }
  .gh-td-svc { order: -2; }
  .gh-td-status .gh-td-label { display: none; }
  .gh-head-controls { flex-direction: column; width: 100%; }
  .gh-head-controls .gh-sort select { width: 100%; min-width: 0; }
  .gh-head-tools .gh-btn { width: 100%; }
}

/* ==========================================================================
   Offer banner: one personal offer at a time (GoDaddy-style), flat and quiet
   ========================================================================== */
.gh-offer-wrap[hidden], .gh-offer[hidden] { display: none; }
.gh-offer {
  --tone: var(--gh-primary);
  --tone-soft: var(--gh-primary-soft);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--gh-line, #e6e8ec);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--tone-soft) 0, #fff 62%);
}
.gh-offer-blue { --tone: #2563eb; --tone-soft: #eef4ff; }
.gh-offer-green { --tone: #15803d; --tone-soft: #ecfdf3; }
.gh-offer-amber { --tone: #b45309; --tone-soft: #fff7e6; }
.gh-offer-navy { --tone: #23272e; --tone-soft: #eef0f3; }
.gh-offer-red { --tone: var(--gh-primary); --tone-soft: var(--gh-primary-soft); }
.gh-offer-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--tone); font-size: 1.1rem; box-shadow: 0 0 0 1px rgb(15 23 42 / 0.06); }
.gh-offer-text { flex: 1; min-width: 0; }
.gh-offer-title { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--gh-text); overflow-wrap: anywhere; }
.gh-offer-sub { margin: 2px 0 0; font-size: 0.82rem; color: var(--gh-muted); }
.gh-offer-cta { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: var(--tone); color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.gh-offer-cta i { font-size: 0.7rem; }
.gh-offer-cta:hover, .gh-offer-cta:focus-visible { color: #fff; filter: brightness(0.92); }
.gh-offer-close { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 6px; background: none; color: #94a3b8; cursor: pointer; }
.gh-offer-close:hover, .gh-offer-close:focus-visible { background: rgb(15 23 42 / 0.05); color: var(--gh-text); }
@media (max-width: 767.98px) {
  .gh-offer { flex-wrap: wrap; padding: 14px 44px 14px 14px; background: var(--tone-soft); }
  .gh-offer-cta { width: 100%; justify-content: center; }
  .gh-offer-close { top: 12px; margin-top: 0; }
}
/* "Best deal" state of the offer banner */
.gh-deal-tag { display: none; }
.gh-offer.is-deal { --tone: var(--gh-primary); --tone-soft: var(--gh-primary-soft); border-color: #f4c7c0; }
.gh-offer.is-deal .gh-deal-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gh-primary);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ==========================================================================
   Manage SSL certificates (/clientarea/ssl-certificates/manage): same table
   look as My Services. html.gh-page-ssl is set in <head> by the theme hook.
   ========================================================================== */
html.gh-page-ssl .primary-content > .card,
html.gh-page-ssl .table-container {
  border: 1px solid var(--gh-line, #e6e8ec);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
html.gh-page-ssl .primary-content > .card .table-container { border: 0; border-radius: 0; }
/* Narrow screens: the table scrolls sideways inside its box instead of being cut off. */
html.gh-page-ssl .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html.gh-page-ssl .dataTables_wrapper .listtable { padding: 0; }
html.gh-page-ssl .dataTables_wrapper .dataTables_filter,
html.gh-page-ssl .dataTables_wrapper .dataTables_length,
html.gh-page-ssl .dataTables_wrapper .dataTables_info { padding: 12px 18px; color: var(--gh-muted); font-size: 0.82rem; }
html.gh-page-ssl .dataTables_wrapper .dataTables_filter input,
html.gh-page-ssl .dataTables_wrapper .dataTables_length select { height: 36px; border: 1px solid var(--gh-border); border-radius: 8px; }
html.gh-page-ssl #tableSslList { margin: 0 !important; border: 0; font-size: 0.875rem; }
html.gh-page-ssl #tableSslList thead th {
  padding: 10px 18px;
  border: 0;
  border-bottom: 1px solid var(--gh-border);
  background: var(--gh-bg-alt);
  color: var(--gh-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
html.gh-page-ssl #tableSslList tbody td { text-align: left; }
html.gh-page-ssl #tableSslList tbody td {
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--gh-line, #e6e8ec);
  background: #fff;
  color: var(--gh-text);
  vertical-align: middle;
}
html.gh-page-ssl #tableSslList tbody tr:last-child td { border-bottom: 0; }
html.gh-page-ssl #tableSslList tbody tr:hover td { background: #fcfcfd; }
html.gh-page-ssl #tableSslList tbody td:first-child { font-weight: 700; white-space: nowrap; }
html.gh-page-ssl #tableSslList tbody td.dataTables_empty { padding: 22px 18px; color: var(--gh-muted); font-weight: 500; text-align: center; white-space: normal; }
html.gh-page-ssl #tableSslList .label {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}
html.gh-page-ssl #tableSslList .label-default { background: #eef0f3; color: #334155; }
html.gh-page-ssl #tableSslList .label-info { background: #eef4ff; color: #1d4ed8; }
html.gh-page-ssl #tableSslList .label-warning { background: #fff7e6; color: #b45309; }
html.gh-page-ssl #tableSslList .label-success { background: #ecfdf3; color: #15803d; }
html.gh-page-ssl #tableSslList .label-danger { background: #fef2f2; color: #b91c1c; }
html.gh-page-ssl #tableSslList .fa-bolt { color: #eab308; }
html.gh-page-ssl #tableSslList td:last-child { white-space: nowrap; }
html.gh-page-ssl #tableSslList td:last-child form { display: inline-block; margin: 0; }
html.gh-page-ssl #tableSslList .btn-sm {
  min-height: 32px;
  margin: 2px 0 2px 4px;
  padding: 4px 12px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gh-text);
  font-size: 0.78rem;
  font-weight: 700;
}
html.gh-page-ssl #tableSslList .btn-sm:hover:not(:disabled) { border-color: #cbd5e1; background: var(--gh-bg-alt); }
html.gh-page-ssl #tableSslList a.btn-sm[href*='configure'],
html.gh-page-ssl #tableSslList a.btn-sm { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
html.gh-page-ssl #tableSslList a.btn-sm:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); color: #fff; }
html.gh-page-ssl .alert-table-ssl-manage { border-radius: 10px; }
html.gh-page-ssl .dataTables_wrapper .dataTables_paginate { padding: 10px 18px; }
@media (max-width: 767.98px) {
  html.gh-page-ssl #tableSslList thead th,
  html.gh-page-ssl #tableSslList tbody td { padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   Empty states and promo panels (includes/hooks/genhost_pages.php)
   ========================================================================== */
[data-gh-slot][hidden] { display: none; }
[data-gh-slot] + .gh-offer-wrap, [data-gh-slot] .gh-offer-wrap { margin-top: 16px; }

/* Add-ons: nothing available for the client's plans */
.gh-blank {
  max-width: 760px;
  margin: 8px auto 24px;
  padding: 36px 32px 28px;
  border: 1px solid var(--gh-line, #e6e8ec);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.gh-empty-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--gh-primary-soft);
  color: var(--gh-primary);
  font-size: 1.35rem;
}
.gh-blank h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.gh-blank > p { max-width: 560px; margin: 0 auto; color: var(--gh-muted); font-size: 0.93rem; line-height: 1.6; }
.gh-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.gh-empty-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}
.gh-empty-actions .btn i { font-size: 0.8rem; }
.gh-empty-actions .btn-default { border: 1px solid var(--gh-border); background: #fff; color: var(--gh-text); }
.gh-empty-actions .btn-default:hover { border-color: #cbd5e1; background: var(--gh-bg-alt); }
.gh-empty-more { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--gh-line, #e6e8ec); text-align: left; }
.gh-empty-more h3 { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gh-muted); }
.gh-empty-note { margin: 2px 0 12px; color: var(--gh-muted); font-size: 0.8rem; }
.gh-empty-list, .gh-promo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gh-empty-list li, .gh-promo-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--gh-bg-alt); }
.gh-empty-li-ico, .gh-promo-li-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--gh-primary);
  font-size: 0.8rem;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.06);
}
.gh-empty-list strong, .gh-promo-list strong { display: block; color: var(--gh-text); font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.gh-empty-list small, .gh-promo-list small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: 0.78rem; line-height: 1.45; }

/* SSL: no premium certificate yet */
.gh-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--gh-line, #e6e8ec);
  border-radius: 14px;
  background: linear-gradient(120deg, #ecfdf3 0, #fff 55%);
}
.gh-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px #bbf7d0;
}
.gh-promo h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; }
.gh-promo-main > p { margin: 0; color: var(--gh-muted); font-size: 0.93rem; line-height: 1.6; }
.gh-promo .gh-empty-actions { justify-content: flex-start; }
.gh-promo-list li { background: #fff; box-shadow: 0 0 0 1px var(--gh-line, #e6e8ec); }
.gh-promo-li-ico { background: #ecfdf3; color: #15803d; box-shadow: none; }
/* SSL page: the promo sits under the certificates table. */
[data-gh-slot] > .gh-promo { margin-top: 20px; }

@media (max-width: 991.98px) {
  .gh-promo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 575.98px) {
  .gh-blank { padding: 26px 18px 20px; }
  .gh-promo { padding: 20px 16px; }
  .gh-empty-list, .gh-promo-list { grid-template-columns: minmax(0, 1fr); }
  .gh-empty-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   My domains (templates/genhost/clientareadomains.tpl): same rows as My services
   ========================================================================== */
.gh-domtable .gh-tr { grid-template-columns: 22px minmax(0, 1fr) 140px 110px 130px 96px 170px; }
.gh-domtable input[type='checkbox'] { width: 16px; height: 16px; margin: 0; accent-color: var(--gh-primary); cursor: pointer; }
.gh-td-check, .gh-th-check { display: flex; align-items: center; }
.gh-domtable .gh-td-check { align-self: start; padding-top: 9px; }
.gh-domrow.is-picked { background: #fffbfa; }
/* SSL badge from WHMCS in front of each domain */
.gh-ssl { display: inline-grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f6f8fc; box-shadow: 0 0 0 1px #eef1f5; color: #94a3b8; }
.gh-ssl img { display: block; width: 24px; height: auto; }
.gh-ssl .ssl-inactive { cursor: pointer; }
.gh-domtable .gh-copyable a { display: inline-flex; align-items: center; gap: 5px; }
.gh-domtable .gh-copyable a i { font-size: 0.62rem; }
.gh-tag-on { background: #ecfdf3; color: #15803d; }
.gh-tag-off { background: #f1f5f9; color: #64748b; }
.gh-tag-soon { background: #fff7e6; color: #b45309; }
.gh-dom-date { font-size: 0.82rem; color: var(--gh-text); }
.gh-act-dns { color: #1d4ed8; }
.gh-act-dns:hover { border-color: #bfdbfe; background: #eef4ff; color: #1d4ed8; }

/* Domain statuses for the dots */
.gh-dot-expired { --gh-dot: #dc2626; }
.gh-dot-grace, .gh-dot-redemption { --gh-dot: #f97316; }
.gh-dot-pending-transfer, .gh-dot-pending-registration { --gh-dot: #eab308; }
.gh-dot-transferred-away { --gh-dot: #94a3b8; }

/* Bulk changes bar on top of the table */
.gh-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--gh-border);
  background: #fff;
}
.gh-bulk-count { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-bulk.is-on { background: var(--gh-primary-soft); }
.gh-bulk.is-on .gh-bulk-count { color: var(--gh-primary-hover); font-weight: 800; }
.gh-bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gh-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.gh-bulk-btn i { font-size: 0.7rem; color: var(--gh-muted); }
.gh-bulk-btn:hover:not(:disabled) { border-color: #f4c7c0; background: #fff; color: var(--gh-primary-hover); }
.gh-bulk-btn:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 1199.98px) {
  .gh-domtable .gh-tr { grid-template-columns: 22px minmax(0, 1fr) 130px 130px 90px 170px; }
  .gh-domtable .gh-td-reg, .gh-domtable .gh-thead > :nth-child(4) { display: none; }
}
@media (max-width: 767.98px) {
  /* Phones: tick box beside the domain; status and renewal as two tiles; buttons underneath. */
  .gh-domtable .gh-tr { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .gh-domtable .gh-td-check { grid-column: 1 !important; grid-row: 1; }
  .gh-domtable .gh-td-svc { grid-column: 2 / -1 !important; grid-row: 1; }
  .gh-domtable .gh-td-status { grid-column: 2 !important; grid-row: 2; padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); }
  .gh-domtable .gh-td-due { grid-column: 3 !important; grid-row: 2; }
  .gh-domtable .gh-td-auto { grid-column: 2 / -1 !important; grid-row: 3; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--gh-bg-alt); }
  .gh-domtable .gh-td-auto .gh-td-label { display: block; margin: 0; }
  .gh-domtable .gh-td-actions { grid-column: 2 / -1 !important; grid-row: 4; }
  .gh-domtable .gh-td-status .gh-td-label { display: block; }
  .gh-bulk { padding: 10px 14px; }
  .gh-bulk-actions { width: 100%; }
  .gh-bulk-btn { flex: 1 1 auto; justify-content: center; }
}

/* My domains: auto-renew tick, order hosting button */
.gh-auto { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; }
.gh-auto i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.62rem; }
.gh-auto-on { color: #15803d; }
.gh-auto-on i { background: #dcfce7; color: #15803d; }
.gh-auto-off { color: #94a3b8; }
.gh-auto-off i { background: #f1f5f9; color: #94a3b8; }
.gh-act-host { border-color: #fde3c4; background: #fff7ed; color: #c2410c; }
.gh-act-host:hover { border-color: #fdba74; background: #ffedd5; color: #c2410c; }

/* My domains: hosting banner for a domain with no website */
.gh-hostpromo[hidden] { display: none; }
.gh-hostpromo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
  padding: 24px 56px 24px 26px;
  overflow: hidden;
  border: 1px solid #f4c7c0;
  border-radius: 16px;
  background:
    radial-gradient(70% 140% at 100% 0, rgb(201 48 31 / 0.14) 0, transparent 60%),
    linear-gradient(120deg, #fff 0, #fff7f5 100%);
  box-shadow: 0 10px 28px rgb(201 48 31 / 0.08);
}
.gh-hostpromo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--gh-primary-hover);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px #f4c7c0;
  overflow-wrap: anywhere;
}
.gh-hostpromo h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.gh-hostpromo-main > p { margin: 0; max-width: 760px; color: var(--gh-muted); font-size: 0.9rem; line-height: 1.6; }
.gh-hostpromo-main > p b { color: var(--gh-text); overflow-wrap: anywhere; }
.gh-hostpromo-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.gh-hostpromo-points li { display: inline-flex; align-items: center; gap: 7px; color: var(--gh-text); font-size: 0.82rem; font-weight: 700; }
.gh-hostpromo-points i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 0.58rem; }
.gh-hostpromo-cta { display: grid; justify-items: center; gap: 10px; }
.gh-hostpromo-btn { min-height: 48px !important; padding: 10px 22px !important; font-size: 0.95rem !important; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 22px rgb(201 48 31 / 0.25); }
.gh-hostpromo-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-muted); font-size: 0.82rem; font-weight: 700; }
.gh-hostpromo-link i { font-size: 0.62rem; }
.gh-hostpromo-link:hover { color: var(--gh-primary); }
.gh-hostpromo .gh-offer-close { top: 14px; margin-top: 0; }
@media (max-width: 991.98px) {
  .gh-hostpromo { grid-template-columns: minmax(0, 1fr); padding: 20px 46px 20px 18px; }
  .gh-hostpromo-cta { justify-items: start; }
}
@media (max-width: 575.98px) {
  .gh-hostpromo { padding: 18px 16px; }
  .gh-hostpromo .gh-offer-close { top: 10px; right: 8px; }
  .gh-hostpromo-eyebrow { margin-right: 26px; }
  .gh-hostpromo-cta, .gh-hostpromo-btn { width: 100%; justify-items: center; }
  .gh-hostpromo-btn { justify-content: center; white-space: normal; }
}

/* ==========================================================================
   My invoices (templates/genhost/clientareainvoices.tpl): summary cards + rows like My services
   ========================================================================== */
.gh-invsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gh-invcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-card-r);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.gh-invcard-label { color: var(--gh-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-invcard-num { max-width: 100%; overflow: hidden; color: var(--gh-text); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gh-invcard-date { font-size: 1.2rem; line-height: 1.45; }
.gh-invcard-sub { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--gh-muted); font-size: 0.8rem; line-height: 1.45; }
.gh-invcard-sub i { margin-top: 3px; font-size: 0.75rem; }
.gh-invcard-good { color: #15803d; font-weight: 700; }
.gh-invcard-bad { color: #b91c1c; font-weight: 600; }
.gh-invcard .gh-btn { margin-top: 8px; }
.gh-invcard-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-primary-hover); font-size: 0.8rem; font-weight: 700; }
.gh-invcard-link i { font-size: 0.65rem; transition: transform 0.15s; }
.gh-invcard-link:hover { color: var(--gh-primary); }
.gh-invcard-link:hover i { transform: translateX(3px); }
.gh-invcard-due { border-color: #f4c7c0; background: linear-gradient(140deg, #fff 0, #fff6f4 100%); }
.gh-invcard-due .gh-invcard-num { color: var(--gh-primary-hover); }
.gh-invcard-ok .gh-invcard-num { color: #15803d; }
.gh-invcard-late { border-color: #fecaca; background: #fffafa; }
.gh-invcard-late .gh-invcard-num { color: #b91c1c; }

/* Columns: Invoice | Status | Due date | Total | actions */
.gh-invtable .gh-tr { grid-template-columns: minmax(0, 1fr) 150px 170px 140px 196px; }
.gh-invico { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f6f8fc; box-shadow: 0 0 0 1px #eef1f5; color: #64748b; font-size: 1rem; }
.gh-muted-text { color: var(--gh-muted); font-size: 0.82rem; }
.gh-th-num, .gh-td-total { text-align: right; }
.gh-inv-total { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-inv-pay { white-space: nowrap; }
.gh-invtable .gh-td-actions { align-items: center; }
/* Invoice icon coloured by status */
.gh-invico-paid { background: #f0fdf4; box-shadow: 0 0 0 1px #bbf7d0; color: #16a34a; }
.gh-invico-unpaid { background: #fffbeb; box-shadow: 0 0 0 1px #fde68a; color: #d97706; }
.gh-invico-overdue { background: #fef2f2; box-shadow: 0 0 0 1px #fecaca; color: #dc2626; }
.gh-invico-payment-pending { background: #eff6ff; box-shadow: 0 0 0 1px #bfdbfe; color: #2563eb; }
.gh-invico-cancelled { background: #f8fafc; box-shadow: 0 0 0 1px #e2e8f0; color: #94a3b8; }
.gh-invico-refunded { background: #f5f3ff; box-shadow: 0 0 0 1px #ddd6fe; color: #7c3aed; }
.gh-invico-collections { background: #fff1f2; box-shadow: 0 0 0 1px #fecdd3; color: #be123c; }

/* Pager: 8 invoices per page */
.gh-inv-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; border-top: 1px solid #eef1f5; }
.gh-inv-pager[hidden] { display: none; }
.gh-pg-info { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gh-pg-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gh-pg { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--gh-border); border-radius: 9px; background: #fff; color: var(--gh-text); font: inherit; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.gh-pg i { font-size: 0.68rem; }
.gh-pg:hover:not(:disabled):not(.is-on) { border-color: #f4c7c0; color: var(--gh-primary-hover); }
.gh-pg.is-on { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; cursor: default; }
.gh-pg:disabled { opacity: 0.4; cursor: not-allowed; }
.gh-pg:focus-visible { outline: 2px solid var(--gh-primary); outline-offset: 2px; }
.gh-pg-gap { padding: 0 2px; color: #94a3b8; }
@media (max-width: 575.98px) {
  .gh-inv-pager { flex-direction: column; padding: 12px 14px; }
}

/* Status badge with a note underneath for unpaid invoices */
.gh-invtable .gh-td-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gh-invtable .gh-svc-title { font-variant-numeric: tabular-nums; }
.gh-invtable .gh-td-svc { align-items: center; }

.gh-inv-date { color: var(--gh-text); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-inv-when { color: var(--gh-muted); font-size: 0.75rem; font-weight: 600; }
.gh-inv-when[hidden] { display: none; }
.gh-inv-when.is-late { color: #b91c1c; }
.gh-inv-when.is-soon { color: #b45309; }

/* Status badges (invoices): soft colour, icon + text */
.gh-ipill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.gh-ipill i { font-size: 0.72rem; }
.gh-ipill-paid { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.gh-ipill-unpaid { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.gh-ipill-overdue { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.gh-ipill-payment-pending { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.gh-ipill-cancelled { border-color: #e2e8f0; background: #f8fafc; color: #64748b; }
.gh-ipill-refunded { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
.gh-ipill-collections { border-color: #fecaca; background: #fff1f2; color: #9f1239; }

@media (max-width: 1399.98px) {
  .gh-invtable .gh-tr { grid-template-columns: minmax(0, 1fr) 130px 160px 130px 190px; }
}
@media (max-width: 1199.98px) {
  .gh-invsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .gh-invtable .gh-tr { grid-template-columns: minmax(0, 1fr) 110px 140px 115px 180px; gap: 12px; }
}
@media (max-width: 767.98px) {
  .gh-invsum { gap: 10px; }
  .gh-invcard { padding: 14px; }
  .gh-invcard-num { font-size: 1.15rem; }
  .gh-invcard-date { font-size: 1rem; }
  .gh-invcard .gh-btn { width: 100%; }
  /* Phones: invoice + status on top; due date and total as two tiles; buttons underneath. */
  .gh-invtable .gh-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gh-invtable .gh-td-total { padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); text-align: left; }
  .gh-invtable .gh-td-due, .gh-invtable .gh-td-total { align-self: stretch; }
  .gh-invtable .gh-td-actions .gh-inv-pay { flex: 1 1 100%; justify-content: center; min-height: 40px; }
}

/* ==========================================================================
   Credit history (credithistory.php + templates/genhost/credithistory.tpl)
   ========================================================================== */
.gh-crtable .gh-tr { grid-template-columns: 130px minmax(0, 1fr) 150px 150px; }
.gh-crtable .gh-td-svc { align-items: center; }
.gh-crico { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 0.8rem; }
.gh-crico-in { background: #f0fdf4; box-shadow: 0 0 0 1px #bbf7d0; color: #16a34a; }
.gh-crico-out { background: #fef2f2; box-shadow: 0 0 0 1px #fecaca; color: #dc2626; }
.gh-cr-desc { margin: 0; color: var(--gh-text); font-size: 0.9rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.gh-crtable .gh-svc-sub { margin-top: 2px; align-items: center; }
.gh-cr-inv { display: inline-flex; align-items: center; gap: 5px; color: var(--gh-primary-hover); font-size: 0.8rem; font-weight: 700; }
.gh-cr-inv i { font-size: 0.7rem; }
.gh-cr-inv:hover { color: var(--gh-primary); }
.gh-cr-in { color: #15803d; }
.gh-cr-out { color: #b91c1c; }
.gh-cr-bal { color: var(--gh-text); font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-crcard-bal { border-color: #bbf7d0; background: linear-gradient(140deg, #fff 0, #f3fdf6 100%); }
@media (max-width: 991.98px) {
  .gh-crtable .gh-tr { grid-template-columns: 110px minmax(0, 1fr) 120px 120px; gap: 12px; }
}
@media (max-width: 767.98px) {
  /* Phones: transaction on top; date, amount and balance as tiles underneath */
  .gh-crtable .gh-tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .gh-crtable .gh-td-svc { grid-column: 1 / -1; order: -1; }
  .gh-crtable .gh-td-crdate, .gh-crtable .gh-td-total { padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); text-align: left; align-self: stretch; }
  .gh-crtable .gh-td-crdate .gh-td-label { display: block; margin-bottom: 2px; color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .gh-crtable .gh-inv-total, .gh-cr-bal { font-size: 0.82rem; }
}

/* ==========================================================================
   Support tickets (templates/genhost/supportticketslist.tpl)
   ========================================================================== */
/* Columns: Ticket | Status | Last reply | Priority | Last update | actions */
.gh-tktable .gh-tr { grid-template-columns: minmax(0, 1fr) 170px 170px 96px 130px 110px; }
.gh-tktable .gh-td-svc { align-items: flex-start; gap: 12px; }
/* Department icon: plain, grey (the shape tells the department apart) */
.gh-tkico { display: inline-grid; flex: none; place-items: center; width: 26px; height: 24px; margin-top: 1px; color: #64748b; font-size: 1.15rem; }
.gh-tktable .gh-tk-subject { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
.gh-tk-subject > span:last-child { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.gh-tk-new { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.15); }
.gh-tkrow.is-unread { background: #fffbfa; }
.gh-tktable .gh-tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin-top: 2px; color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-tk-sep { margin: 0 6px; color: #cbd5e1; }
.gh-tk-id { font-variant-numeric: tabular-nums; }
.gh-tk-meta .gh-copy { width: 24px; height: 24px; font-size: 0.75rem; }
.gh-tktable .gh-td-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gh-tk-note { color: var(--gh-muted); font-size: 0.72rem; font-weight: 600; }
.gh-tk-by { display: inline-flex; align-items: flex-start; gap: 7px; min-width: 0; max-width: 100%; font-size: 0.82rem; font-weight: 700; }
.gh-tk-by span { line-height: 1.35; overflow-wrap: anywhere; }
.gh-tk-by i { flex: none; margin-top: 3px; font-size: 0.75rem; }
.gh-tk-by.is-agent { color: #1d4ed8; }
.gh-tk-by.is-you { color: var(--gh-text); }
.gh-tk-by.is-you i { color: #94a3b8; }
.gh-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; color: #64748b; }
.gh-prio i { font-size: 0.72rem; }
.gh-prio-high { color: #dc2626; }
.gh-prio-medium { color: #d97706; }
.gh-prio-low { color: #64748b; }
.gh-tktable .gh-td-due { display: flex; flex-direction: column; gap: 1px; }
.gh-tk-ago { color: var(--gh-text); font-size: 0.85rem; font-weight: 700; }
.gh-tk-when { color: var(--gh-muted); font-size: 0.75rem; }
.gh-td-due.no-ago .gh-tk-when { display: none; }
.gh-tktable .gh-td-actions { align-items: center; }
.gh-tk-replybtn { white-space: nowrap; }

/* Status: coloured icon + text; only "Awaiting your reply" (the client's turn) is a solid badge */
.gh-tst { --gh-tc: #64748b; display: inline-flex; align-items: center; gap: 7px; color: var(--gh-tc); font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.gh-tst i { font-size: 0.85rem; }
.gh-tst-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gh-tc); }
.gh-tst-open { --gh-tc: #2563eb !important; }
.gh-tst-customer-reply { --gh-tc: #7c3aed !important; }
.gh-tst-in-progress { --gh-tc: #0891b2 !important; }
.gh-tst-on-hold { --gh-tc: #a16207 !important; }
.gh-tst-closed { --gh-tc: #64748b !important; }
.gh-tst-closed i { color: #16a34a; }
.gh-tst-answered { --gh-tc: #fff !important; padding: 5px 11px; border-radius: 999px; background: #ea580c; box-shadow: 0 4px 10px rgb(234 88 12 / 0.22); font-size: 0.78rem; }
.gh-tst-answered i { font-size: 0.72rem; }
/* Resolved tickets are history: quieter row */
.gh-tkrow[data-status='closed'] .gh-tk-subject { color: #475569; font-weight: 700; }

/* "Need a faster answer?" strip */
.gh-tkhelp {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #f6d6d0;
  border-radius: var(--gh-card-r);
  background: linear-gradient(120deg, #fff 0, #fff7f5 100%);
}
.gh-tkhelp h2 { margin: 0 0 2px; font-size: 1rem; font-weight: 800; }
.gh-tkhelp p { margin: 0; color: var(--gh-muted); font-size: 0.85rem; line-height: 1.5; }
.gh-tkhelp-search { margin: 0; }
.gh-tkhelp-actions { display: flex; gap: 8px; }
.gh-tkhelp-actions .gh-btn { white-space: nowrap; }
.gh-tkhelp-actions .gh-btn i { color: var(--gh-primary); }
.gh-tkhelp-actions .gh-tkhelp-wa i { color: #16a34a; }

@media (max-width: 1399.98px) {
  .gh-tktable .gh-tr { grid-template-columns: minmax(0, 1fr) 160px 150px 86px 120px 104px; gap: 12px; }
}
@media (max-width: 1199.98px) {
  .gh-tkhelp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gh-tkhelp-actions { grid-column: 1 / -1; }
}
@media (max-width: 1199.98px) {
  /* Tablets: the last update column is left out (the newest tickets are listed first anyway) */
  .gh-tktable .gh-tr { grid-template-columns: minmax(0, 1fr) 160px 150px 84px 104px; }
  .gh-tktable .gh-td-due, .gh-tktable .gh-thead > :nth-child(5) { display: none; }
}
@media (max-width: 767.98px) {
  /* Phones: ticket on top; status / priority and last reply / last update as tiles; buttons underneath */
  .gh-tktable .gh-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gh-tktable .gh-td-svc { grid-column: 1 / -1; order: -2; }
  .gh-tktable .gh-td-status, .gh-tktable .gh-td-prio, .gh-tktable .gh-td-by, .gh-tktable .gh-td-due { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--gh-bg-alt); align-self: stretch; min-width: 0; }
  .gh-tktable .gh-td-status { grid-column: 1; order: 0; }
  .gh-tktable .gh-td-prio { grid-column: 2; order: 1; }
  .gh-tktable .gh-td-by { grid-column: 1; order: 2; }
  .gh-tktable .gh-td-due { grid-column: 2; order: 3; }
  .gh-tktable .gh-td-actions { order: 4; }
  .gh-tktable .gh-td-label { display: block !important; margin-bottom: 2px; color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
  .gh-tk-subject > span:last-child { -webkit-line-clamp: 3; line-clamp: 3; }
  .gh-tkhelp { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .gh-tkhelp-actions .gh-btn { flex: 1; justify-content: center; }
}


/* ==========================================================================
   Announcements (templates/genhost/announcements.tpl, viewannouncement.tpl,
   includes/gh-wachannel.tpl)
   ========================================================================== */
/* Feed + side rail (WhatsApp channel, links). The feed uses the full width, so when the left menu
   collapses the cards gain a column. Below 1400px the rail sits on top and the links are dropped. */
.gh-ann-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.gh-ann-main { display: grid; gap: 18px; min-width: 0; }
.gh-ann-rail { display: grid; gap: 16px; min-width: 0; }
.gh-ann-links { display: none; }
@media (min-width: 1400px) {
  .gh-ann-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .gh-ann-rail { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }
  .gh-ann-main { grid-column: 1; grid-row: 1; }
  .gh-ann-rail .gh-wach { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .gh-ann-rail .gh-wach-btn { justify-self: stretch; }
  .gh-ann-links { display: grid; padding: 8px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; }
}
.gh-ann-links h2 { margin: 8px 12px 6px; color: var(--gh-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-ann-links a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--gh-text); transition: background-color 0.15s; }
.gh-ann-links a:hover { background: var(--gh-bg-alt); color: var(--gh-text); text-decoration: none; }
.gh-ann-links a > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gh-primary-soft); color: var(--gh-primary); font-size: 0.85rem; }
.gh-ann-links b { display: block; font-size: 0.88rem; font-weight: 800; }
.gh-ann-links small { display: block; color: var(--gh-muted); font-size: 0.78rem; }

/* WhatsApp channel banner */
.gh-wach {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: center;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid #bbf7d0;
  border-radius: var(--gh-card-r);
  background:
    radial-gradient(60% 140% at 100% 0, rgb(37 211 102 / 0.16) 0, transparent 60%),
    linear-gradient(120deg, #fff 0, #f2fdf6 100%);
}
.gh-wach-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 22px rgb(37 211 102 / 0.3); }
.gh-wach-eyebrow { display: block; margin-bottom: 2px; color: #128c4a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-wach h2 { margin: 0 0 4px; color: var(--gh-text); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.gh-wach p { margin: 0; max-width: 640px; color: var(--gh-muted); font-size: 0.88rem; line-height: 1.55; }
.gh-wach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #128c4a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}
.gh-wach-btn i { font-size: 1.05rem; }
.gh-wach-btn:hover, .gh-wach-btn:focus-visible { background: #0b6b37; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* List */
.gh-ann-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.gh-ann {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-card-r);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gh-ann:hover { border-color: #e2c4be; box-shadow: 0 12px 26px rgb(15 23 42 / 0.06); }
.gh-ann-lead { grid-column: 1 / -1; padding: 26px 28px; border-color: #f4c7c0; background: linear-gradient(120deg, #fff 0, #fff8f6 100%); }
.gh-ann-date { display: grid; align-self: start; align-content: start; justify-items: center; width: 64px; padding: 10px 0 9px; border-radius: 12px; background: var(--gh-bg-alt); box-shadow: inset 0 0 0 1px var(--gh-border); text-align: center; }
.gh-ann-day { color: var(--gh-text); font-size: 1.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gh-ann-mon { margin-top: 4px; color: var(--gh-muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-ann-lead .gh-ann-date { width: 76px; background: var(--gh-primary); box-shadow: none; }
.gh-ann-lead .gh-ann-day, .gh-ann-lead .gh-ann-mon { color: #fff; }
.gh-ann-lead .gh-ann-day { font-size: 1.9rem; }
.gh-ann-body { display: flex; flex-direction: column; min-width: 0; }
.gh-ann-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; color: var(--gh-muted); font-size: 0.78rem; font-weight: 600; }
.gh-ann-tag { padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-ann-tag-maint { background: #fef3c7; color: #92400e; }
.gh-ann-tag-offer { background: var(--gh-primary-soft); color: var(--gh-primary-hover); }
.gh-ann-tag-new { background: #e0f2fe; color: #075985; }
.gh-ann-tag-update { background: #ede9fe; color: #5b21b6; }
.gh-ann-latest { padding: 2px 8px; border-radius: 6px; background: var(--gh-primary); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-ann h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.gh-ann-lead h2 { font-size: 1.4rem; }
.gh-ann h2 a { color: var(--gh-text); }
.gh-ann h2 a:hover { color: var(--gh-primary); }
.gh-ann-excerpt { margin: 0 0 12px; color: var(--gh-muted); font-size: 0.88rem; line-height: 1.6; overflow-wrap: anywhere; }
.gh-ann-lead .gh-ann-excerpt { font-size: 0.95rem; }
.gh-ann-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; }
.gh-ann-more { display: inline-flex; align-items: center; gap: 7px; color: var(--gh-primary-hover); font-size: 0.85rem; font-weight: 800; }
.gh-ann-more i { font-size: 0.7rem; transition: transform 0.15s; }
.gh-ann-more:hover { color: var(--gh-primary); }
.gh-ann-more:hover i { transform: translateX(3px); }
.gh-ann-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-muted); font-size: 0.8rem; font-weight: 700; }
.gh-ann-edit i { font-size: 0.7rem; }
.gh-ann-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.gh-ann-pager a.gh-pg { text-decoration: none; }
.gh-ann-pager .gh-pg[aria-disabled='true'] { opacity: 0.4; cursor: not-allowed; }

/* Single announcement */
.gh-ann-back { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: var(--gh-muted); font-size: 0.85rem; font-weight: 700; }
.gh-ann-back i { font-size: 0.75rem; }
.gh-ann-back:hover { color: var(--gh-primary); }
.gh-annpost { padding: 30px 34px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }
.gh-annpost-head { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #eef1f5; }
.gh-annpost-head h1 { margin: 4px 0 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.gh-annpost-head .gh-ann-edit { margin-top: 10px; }
.gh-annpost-text { max-width: 760px; color: #334155; font-size: 0.98rem; line-height: 1.75; overflow-wrap: anywhere; }
.gh-annpost-text > :first-child { margin-top: 0; }
.gh-annpost-text > :last-child { margin-bottom: 0; }
.gh-annpost-text h2, .gh-annpost-text h3, .gh-annpost-text h4 { margin: 1.6em 0 0.5em; color: var(--gh-text); font-weight: 800; }
.gh-annpost-text p, .gh-annpost-text ul, .gh-annpost-text ol { margin: 0 0 1em; }
.gh-annpost-text a { color: var(--gh-primary-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gh-annpost-text img { max-width: 100%; height: auto; border-radius: 12px; }
.gh-annpost-text table { display: block; max-width: 100%; overflow-x: auto; }
.gh-annpost-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #eef1f5; color: var(--gh-muted); font-size: 0.88rem; font-weight: 600; }

@media (max-width: 991.98px) {
  .gh-wach { grid-template-columns: auto minmax(0, 1fr); }
  .gh-wach-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 575.98px) {
  .gh-ann-list { grid-template-columns: minmax(0, 1fr); }
  .gh-wach { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .gh-wach-ico { width: 46px; height: 46px; font-size: 1.45rem; }
  .gh-wach-btn { justify-self: stretch; }
  .gh-ann, .gh-ann-lead { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .gh-ann-date, .gh-ann-lead .gh-ann-date { display: none; }
  .gh-ann-lead h2 { font-size: 1.2rem; }
  .gh-annpost { padding: 22px 18px; }
}

/* ==========================================================================
   Knowledgebase (knowledgebase.tpl, knowledgebasecat.tpl, knowledgebasearticle.tpl,
   includes/gh-kbsearch.tpl, gh-kbhelp.tpl, gh-kbicons.tpl)
   ========================================================================== */
/* Hero with the big search */
.gh-kbhero {
  position: relative;
  padding: 44px 28px 36px;
  overflow: hidden;
  border: 1px solid #f4d5cf;
  border-radius: var(--gh-card-r);
  background:
    radial-gradient(55% 120% at 100% 0, rgb(201 48 31 / 0.10) 0, transparent 60%),
    radial-gradient(45% 110% at 0 100%, rgb(35 39 46 / 0.06) 0, transparent 60%),
    linear-gradient(135deg, #fff 0, #fff7f5 100%);
  text-align: center;
}
.gh-kbhero-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--gh-primary-soft); color: var(--gh-primary-hover); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-kbhero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.gh-kbhero > p { max-width: 620px; margin: 0 auto 22px; color: var(--gh-muted); font-size: 0.98rem; line-height: 1.6; }
.gh-kbhero-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 760px; margin: 16px auto 0; font-size: 0.82rem; }
.gh-kbhero-chips > span { color: var(--gh-muted); font-weight: 700; }
/* beats .gh-kbhero > p (that rule is for the intro text) */
.gh-kbhero > .gh-kbhero-chips { max-width: 760px; margin: 20px auto 0; font-size: 0.82rem; line-height: 1.4; }
.gh-kbhero-chips a { padding: 5px 12px; font-size: 0.82rem; line-height: 1.4; border: 1px solid var(--gh-border); border-radius: 999px; background: #fff; color: var(--gh-text); font-weight: 700; transition: border-color 0.15s, color 0.15s; }
.gh-kbhero-chips a:hover { border-color: #f4c7c0; color: var(--gh-primary-hover); text-decoration: none; }

/* Search box */
.gh-kbsearch { position: relative; display: flex; align-items: center; margin: 0; }
.gh-kbsearch > i { position: absolute; left: 16px; color: #94a3b8; pointer-events: none; }
.gh-kbsearch input { flex: 1; min-width: 0; height: 44px; padding: 0 92px 0 42px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; color: var(--gh-text); font-size: 0.9rem; }
.gh-kbsearch input:focus { outline: none; border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-kbsearch .gh-btn { position: absolute; right: 5px; min-height: 34px; padding: 6px 14px; border-radius: 9px; }
.gh-kbsearch-lg { max-width: 720px; margin: 0 auto; }
.gh-kbsearch-lg > i { left: 22px; font-size: 1.05rem; }
.gh-kbsearch-lg input { height: 60px; padding: 0 128px 0 54px; border-radius: 16px; font-size: 1.02rem; box-shadow: 0 14px 34px rgb(15 23 42 / 0.08); }
.gh-kbsearch-lg .gh-btn { right: 8px; min-height: 44px; padding: 8px 24px; border-radius: 12px; font-size: 0.92rem; }

/* Sections */
.gh-kbsec { display: grid; gap: 14px; }
.gh-kbsec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.gh-kbsec-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.gh-kbsec-head p { margin: 0; color: var(--gh-muted); font-size: 0.85rem; }

/* Topic cards */
/* Wrapping row: cards in a short last row share the width, so there are never empty slots */
.gh-kbcats { display: flex; flex-wrap: wrap; gap: 14px; }
.gh-kbcats > .gh-kbcat { flex: 1 1 270px; min-width: 0; }
.gh-kbcat { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; color: var(--gh-text); box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.gh-kbcat:hover, .gh-kbcat:focus-visible { border-color: #f4c7c0; box-shadow: 0 14px 30px rgb(15 23 42 / 0.07); color: var(--gh-text); text-decoration: none; transform: translateY(-2px); }
.gh-kbcat-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gh-primary-soft); color: var(--gh-primary); font-size: 1.1rem; }
.gh-kbcat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gh-kbcat-name { font-size: 0.98rem; font-weight: 800; line-height: 1.35; }
.gh-kbcat-desc { margin-top: 3px; color: var(--gh-muted); font-size: 0.82rem; line-height: 1.5; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gh-kbcat-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--gh-primary-hover); font-size: 0.78rem; font-weight: 800; }
.gh-kbcat-count i { font-size: 0.65rem; transition: transform 0.15s; }
.gh-kbcat:hover .gh-kbcat-count i { transform: translateX(3px); }

/* Most read */
.gh-kbpop { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 18px; margin: 0; padding: 6px 18px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; list-style: none; }
.gh-kbpop li { border-bottom: 1px solid #eef1f5; }
.gh-kbpop a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 4px; color: var(--gh-text); }
.gh-kbpop a:hover { color: var(--gh-text); text-decoration: none; }
.gh-kbpop a:hover .gh-kbpop-title { color: var(--gh-primary); }
.gh-kbpop a > i { color: #cbd5e1; font-size: 0.7rem; }
.gh-kbpop-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--gh-bg-alt); color: var(--gh-muted); font-size: 0.8rem; font-weight: 800; }
.gh-kbpop-body, .gh-kblist-body { display: flex; flex-direction: column; min-width: 0; }
.gh-kbpop-title, .gh-kblist-title { font-size: 0.92rem; font-weight: 800; line-height: 1.4; transition: color 0.15s; }
.gh-kbpop-text { overflow: hidden; color: var(--gh-muted); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }

/* Help strip */
.gh-kbhelp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; border-radius: var(--gh-card-r); background: var(--gh-navy, #23272e); color: #fff; }
.gh-kbhelp h2 { margin: 0 0 3px; color: #fff; font-size: 1.05rem; font-weight: 800; }
.gh-kbhelp p { margin: 0; max-width: 560px; color: rgb(255 255 255 / 0.72); font-size: 0.86rem; line-height: 1.5; }
.gh-kbhelp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-kbhelp-actions .gh-btn-ghost { border-color: rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); color: #fff; }
.gh-kbhelp-actions .gh-btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.gh-kbhelp-actions .gh-kbhelp-wa i { color: #4ade80; }

/* Category / search page */
.gh-kbcat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.gh-kbcat-head h1 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; }
.gh-kbcat-head p { margin: 4px 0 0; color: var(--gh-muted); font-size: 0.88rem; }
.gh-kbcat-head .gh-kbhero-eyebrow { margin-bottom: 8px; }
.gh-kbcat-tools { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); }
.gh-kbcat-tools .gh-kbsearch { flex: 1; }
.gh-kblist { margin: 0; padding: 0; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; list-style: none; overflow: hidden; }
.gh-kblist li { position: relative; border-top: 1px solid #eef1f5; }
.gh-kblist li:first-child { border-top: 0; }
.gh-kblist li > a:first-child { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; color: var(--gh-text); transition: background-color 0.15s; }
.gh-kblist li > a:first-child:hover { background: #fffbfa; color: var(--gh-text); text-decoration: none; }
.gh-kblist li > a:first-child:hover .gh-kblist-title { color: var(--gh-primary); }
.gh-kblist li > a:first-child > i { color: #cbd5e1; font-size: 0.75rem; }
.gh-kblist-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gh-bg-alt); color: #64748b; font-size: 0.95rem; }
.gh-kblist-text { margin-top: 2px; color: var(--gh-muted); font-size: 0.83rem; line-height: 1.5; }
.gh-kblist-edit { position: absolute; top: 16px; right: 46px; }

/* Article page */
.gh-kb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.gh-kb-rail { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1200px) {
  .gh-kb-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .gh-kb-rail { position: sticky; top: 90px; }
}
.gh-kbpost-text { max-width: 860px; }
.gh-kbpost-text pre, .gh-kbpost-text code { border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 0.85em; }
.gh-kbpost-text code { padding: 2px 6px; }
.gh-kbpost-text pre { padding: 14px 16px; overflow-x: auto; }
.gh-kbpost-text pre code { padding: 0; background: none; }
.gh-kbpost-text blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid var(--gh-primary); border-radius: 0 10px 10px 0; background: #fff7f5; }
.gh-kbpost-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; color: var(--gh-muted); font-size: 0.82rem; font-weight: 600; }
.gh-kbpost-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.gh-kbpost-meta i { font-size: 0.75rem; color: #94a3b8; }
.gh-kbprint { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--gh-muted); font: inherit; font-weight: 700; cursor: pointer; }
.gh-kbprint:hover { color: var(--gh-primary); }
.gh-kbvote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--gh-bg-alt); }
.gh-kbvote-q { margin: 0; font-weight: 800; }
.gh-kbvote-form { display: flex; gap: 8px; margin: 0; }
.gh-kbvote-done { display: flex; align-items: center; gap: 8px; margin: 0; color: #15803d; font-weight: 700; }
.gh-kb-rail .gh-kbrel { display: grid; padding: 8px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; }
.gh-kbrel a { grid-template-columns: 26px minmax(0, 1fr); }
.gh-kbrel a > i { width: 26px; height: 26px; border-radius: 8px; background: var(--gh-bg-alt); color: #64748b; font-size: 0.75rem; }
.gh-kbrel b { font-size: 0.85rem; line-height: 1.4; }
.gh-kbask { display: grid; justify-items: start; gap: 6px; padding: 20px; border: 1px solid #f4c7c0; border-radius: var(--gh-card-r); background: linear-gradient(140deg, #fff 0, #fff6f4 100%); }
.gh-kbask-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 12px; background: var(--gh-primary); color: #fff; }
.gh-kbask h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.gh-kbask p { margin: 0 0 6px; color: var(--gh-muted); font-size: 0.85rem; }
.gh-kbask .gh-btn { width: 100%; justify-content: center; }
.gh-kbask-link { display: inline-flex; align-items: center; gap: 6px; justify-self: center; color: var(--gh-muted); font-size: 0.8rem; font-weight: 700; }
.gh-kbask-link i { font-size: 0.65rem; }
.gh-kbask-link:hover { color: var(--gh-primary); }

@media print {
  .gh-kb-rail, .gh-kbvote, .gh-ann-back, .gh-kbprint, .gh-kbhelp { display: none !important; }
  .gh-kb-layout { display: block; }
  .gh-annpost { border: 0; padding: 0; }
}
@media (max-width: 767.98px) {
  .gh-kbhero { padding: 30px 16px 26px; }
  .gh-kbsearch-lg input { height: 54px; padding: 0 16px 0 46px; }
  .gh-kbsearch-lg > i { left: 18px; }
  .gh-kbsearch-lg .gh-btn { display: none; }
  .gh-kbhero-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .gh-kbhero-chips::-webkit-scrollbar { display: none; }
  .gh-kbhero-chips a { flex: none; }
  .gh-kbhero-chips > span { flex: none; }
  .gh-kbpop { grid-template-columns: minmax(0, 1fr); padding: 4px 12px; }
  .gh-kbcat-tools { width: 100%; }
  .gh-kblist li > a:first-child { padding: 14px; gap: 12px; }
  .gh-kblist-edit { position: static; display: inline-flex; margin: -6px 0 12px 64px; }
  .gh-kbhelp { padding: 18px 16px; }
  .gh-kbhelp-actions, .gh-kbhelp-actions .gh-btn { width: 100%; justify-content: center; }
  .gh-kbhelp-actions .gh-btn { flex: 1 1 auto; }
  .gh-kbvote { flex-direction: column; align-items: stretch; text-align: center; }
  .gh-kbvote-form { justify-content: center; }
}

/* ==========================================================================
   Server status (templates/genhost/serverstatus.tpl, uptime from includes/hooks/genhost_uptime.php)
   ========================================================================== */
.gh-ss-updated { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-ss-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px 22px; border: 1px solid #bbf7d0; border-radius: var(--gh-card-r); background: linear-gradient(120deg, #fff 0, #f0fdf4 100%); }
.gh-ss-overall > div { flex: 1 1 320px; min-width: 0; }
.gh-ss-overall h2 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 800; }
.gh-ss-overall p { margin: 0; color: var(--gh-muted); font-size: 0.88rem; }
.gh-ss-overall-ico { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 1.1rem; box-shadow: 0 0 0 6px rgb(22 163 74 / 0.14); }
.gh-ss-overall.is-issue, .gh-ss-overall.is-partial { border-color: #fde68a; background: linear-gradient(120deg, #fff 0, #fffbeb 100%); }
.gh-ss-overall.is-issue .gh-ss-overall-ico, .gh-ss-overall.is-partial .gh-ss-overall-ico { background: #d97706; box-shadow: 0 0 0 6px rgb(217 119 6 / 0.14); }

.gh-sssec { display: grid; gap: 14px; }
.gh-ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.gh-ss-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--gh-border); border-radius: var(--gh-card-r); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }
.gh-ss-card.has-issue { border-color: #fde68a; }
.gh-ss-card-head { display: flex; align-items: center; gap: 12px; }
.gh-ss-card-head h3 { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: 1rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.gh-ss-srv-ico { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #23272e; color: #fff; font-size: 0.9rem; }
.gh-ss-state { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.gh-ss-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gh-ss-state.is-checking .gh-ss-dot { animation: gh-ss-blink 1s ease-in-out infinite; }
.gh-ss-state.is-up { background: #f0fdf4; color: #15803d; }
.gh-ss-state.is-partial { background: #fffbeb; color: #b45309; }
.gh-ss-state.is-down { background: #fef2f2; color: #b91c1c; }
@keyframes gh-ss-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .gh-ss-state.is-checking .gh-ss-dot { animation: none; } }

.gh-ss-services { display: grid; gap: 0; margin: 0; padding: 0; border-radius: 12px; background: var(--gh-bg-alt); list-style: none; }
.gh-ss-services li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid #eef1f5; font-size: 0.85rem; }
.gh-ss-services li:first-child { border-top: 0; }
.gh-ss-services li > span:first-child { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.gh-ss-services li > span:first-child i { width: 16px; color: #94a3b8; font-size: 0.8rem; text-align: center; }
.gh-ss-port { font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.gh-ss-port img { display: none; }
.gh-ss-wait { color: #94a3b8; font-weight: 600; }
.gh-ss-ok, .gh-ss-bad { display: inline-flex; align-items: center; gap: 6px; }
.gh-ss-ok { color: #15803d; }
.gh-ss-bad { color: #b91c1c; }
.gh-ss-ok i, .gh-ss-bad i { font-size: 0.7rem; }

.gh-ss-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.gh-ss-stats > div { padding: 10px 12px; border: 1px solid #eef1f5; border-radius: 12px; }
.gh-ss-stats dt { color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-ss-stats dd { margin: 2px 0 0; overflow: hidden; color: var(--gh-text); font-size: 0.88rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.gh-ss-uptime { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.gh-ss-uptime-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.82rem; font-weight: 700; }
.gh-ss-uptime-head small { color: var(--gh-muted); font-weight: 600; }
.gh-ss-pct { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gh-ss-pct.is-good { color: #15803d; }
.gh-ss-pct.is-warn { color: #b45309; }
.gh-ss-pct.is-bad { color: #b91c1c; }
.gh-ss-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 30px; }
.gh-ss-bar { border-radius: 3px; background: #e2e8f0; }
.gh-ss-bar.is-good { background: #22c55e; }
.gh-ss-bar.is-warn { background: #f59e0b; }
.gh-ss-bar.is-bad { background: #ef4444; }
.gh-ss-bars-foot { display: flex; justify-content: space-between; color: #94a3b8; font-size: 0.7rem; font-weight: 600; }

/* Issues */
.gh-ss-issues-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.gh-ss-issues-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.gh-ss-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--gh-bg-alt); box-shadow: inset 0 0 0 1px var(--gh-border); }
.gh-ss-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; color: var(--gh-muted); font-size: 0.82rem; font-weight: 700; }
.gh-ss-tabs a:hover { color: var(--gh-text); text-decoration: none; }
.gh-ss-tabs a.is-on { background: #fff; color: var(--gh-primary-hover); box-shadow: 0 1px 3px rgb(15 23 42 / 0.12); }
.gh-ss-tabs a span { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--gh-primary); color: #fff; font-size: 0.68rem; text-align: center; }
.gh-ss-issues { display: grid; gap: 14px; }
.gh-ss-issue { padding: 18px 20px; border: 1px solid var(--gh-border); border-left: 4px solid #64748b; border-radius: var(--gh-card-r); background: #fff; }
.gh-ss-issue-critical { border-left-color: #dc2626; }
.gh-ss-issue-high { border-left-color: #ea580c; }
.gh-ss-issue-medium { border-left-color: #d97706; }
.gh-ss-issue-low { border-left-color: #16a34a; }
.gh-ss-issue header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gh-ss-issue h3 { flex: 1 1 100%; margin: 4px 0 0; font-size: 1.02rem; font-weight: 800; }
.gh-ss-prio, .gh-ss-istatus { padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-ss-prio { background: #f1f5f9; color: #475569; }
.gh-ss-prio-critical { background: #fef2f2; color: #b91c1c; }
.gh-ss-prio-high { background: #fff7ed; color: #c2410c; }
.gh-ss-prio-medium { background: #fffbeb; color: #b45309; }
.gh-ss-prio-low { background: #f0fdf4; color: #15803d; }
.gh-ss-istatus { background: #eef2ff; color: #4338ca; }
.gh-ss-affects { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.86rem; }
.gh-ss-affects i, .gh-ss-imeta i { color: #94a3b8; font-size: 0.75rem; }
.gh-ss-imeta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; list-style: none; }
.gh-ss-imeta li { display: inline-flex; align-items: center; gap: 7px; }
.gh-ss-you { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 0.84rem; font-weight: 700; }
.gh-ss-idesc { margin-top: 12px; color: #334155; font-size: 0.9rem; line-height: 1.65; overflow-wrap: anywhere; }
.gh-ss-idesc > :last-child { margin-bottom: 0; }
.gh-ss-none { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px dashed var(--gh-border); border-radius: var(--gh-card-r); background: #fff; color: var(--gh-muted); font-weight: 600; }
.gh-ss-none i { color: #16a34a; font-size: 1.2rem; }
.gh-ss-none p { margin: 0; }

@media (max-width: 575.98px) {
  .gh-ss-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-ss-overall { padding: 18px 16px; }
  .gh-ss-tabs { width: 100%; }
  .gh-ss-tabs a { flex: 1; justify-content: center; padding: 7px 8px; }
  .gh-ss-wa { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Open a ticket (supportticketsubmit-*.tpl, includes/gh-otside.tpl, gh-otsteps.tpl)
   Plain on purpose: white surfaces, one accent, text-led hierarchy.
   ========================================================================== */
.gh-ot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1200px) { .gh-ot { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.gh-ot-main { min-width: 0; }
.gh-ot-head { margin-bottom: 20px; }
.gh-ot-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.gh-ot-head p { margin: 6px 0 0; max-width: 640px; color: var(--gh-muted); font-size: 0.95rem; line-height: 1.55; }
.gh-ot-back { color: var(--gh-primary-hover); font-weight: 700; white-space: nowrap; }
.gh-ot-back:hover { color: var(--gh-primary); }
.gh-ot-subh { margin: 26px 0 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gh-muted); }

/* Progress */
.gh-ot-steps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 0; list-style: none; color: #94a3b8; font-size: 0.8rem; font-weight: 700; }
.gh-ot-steps li { display: inline-flex; align-items: center; gap: 8px; }
.gh-ot-steps em { font-style: normal; }
.gh-ot-steps li + li::before { content: ''; width: 22px; height: 1px; margin-right: 6px; background: #d8dde5; }
.gh-ot-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d8dde5; border-radius: 50%; background: #fff; font-size: 0.72rem; }
.gh-ot-steps .is-on { color: var(--gh-text); }
.gh-ot-steps .is-on span { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-ot-steps .is-done { color: var(--gh-text); }
.gh-ot-steps .is-done span { border-color: #16a34a; background: #16a34a; color: #fff; font-size: 0.6rem; }

/* Answer search */
/* Known issue (Server Status) and open tickets, above the answer search */
.gh-ot-issue { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid #f5d9a8; border-left: 4px solid #f59e0b; border-radius: 12px; background: #fffbf2; }
.gh-ot-issue-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fdecc8; color: #b45309; }
.gh-ot-issue h2 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.4; }
.gh-ot-issue ul { margin: 8px 0 0; padding: 0; list-style: none; }
.gh-ot-issue li + li { margin-top: 6px; }
.gh-ot-issue li b { display: block; font-size: 0.9rem; font-weight: 700; }
.gh-ot-issue li small { color: #92400e; font-size: 0.8rem; }
.gh-ot-issue p { margin: 10px 0 0; color: #57534e; font-size: 0.86rem; line-height: 1.5; }
.gh-ot-issue-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #b45309; font-size: 0.86rem; font-weight: 700; }
.gh-ot-issue-link:hover { color: #92400e; text-decoration: none; }
.gh-ot-issue-link i { font-size: 0.72rem; transition: transform 0.12s; }
.gh-ot-issue-link:hover i { transform: translateX(2px); }

.gh-ot-open { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-ot-open-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.gh-ot-open-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-ot-open h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.gh-ot-open-head p { margin: 3px 0 0; color: var(--gh-muted); font-size: 0.86rem; line-height: 1.5; }
.gh-ot-open-list { margin: 14px 0 0; padding: 0; border: 1px solid #eef1f5; border-radius: 10px; list-style: none; overflow: hidden; }
.gh-ot-open-list li + li { border-top: 1px solid #eef1f5; }
.gh-ot-open-list a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; color: var(--gh-text); }
.gh-ot-open-list a:hover { background: #fafbfc; color: var(--gh-text); text-decoration: none; }
.gh-ot-open-body { flex: 1; min-width: 0; }
.gh-ot-open-body b { display: block; overflow: hidden; font-size: 0.9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gh-ot-open-list a:hover b { color: var(--gh-primary); }
.gh-ot-open-body small { color: var(--gh-muted); font-size: 0.8rem; }
.gh-ot-open-body small .is-you { color: #c2410c; font-weight: 700; }
.gh-ot-open-go { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--gh-primary); font-size: 0.84rem; font-weight: 700; }
.gh-ot-open-go i { font-size: 0.7rem; transition: transform 0.12s; }
.gh-ot-open-list a:hover .gh-ot-open-go i { transform: translateX(2px); }
.gh-ot-open-all { display: inline-block; margin-top: 10px; color: var(--gh-primary-hover); font-size: 0.85rem; font-weight: 700; }

/* Support status: usual first-reply time */
.gh-ot-hours-reply { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed #e5e7eb; color: var(--gh-text); font-size: 0.84rem; font-weight: 600; }
.gh-ot-hours-reply[hidden] { display: none; }
.gh-ot-hours-reply i { color: #16a34a; }

/* Guides WHMCS suggests while the message is typed (above the Message field) */
#autoAnswerSuggestions { margin-bottom: 18px; }
.gh-ot-sugg { padding: 16px 18px; border: 1px solid #f5d9a8; border-radius: 12px; background: #fffbf2; }
.gh-ot-sugg-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; }
.gh-ot-sugg-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #fdecc8; color: #b45309; }
.gh-ot-sugg-title { margin: 0; font-size: 0.95rem; font-weight: 800; }
.gh-ot-sugg-sub { margin: 1px 0 0; color: #78716c; font-size: 0.8rem; line-height: 1.45; }
.gh-ot-sugg ul { margin: 12px 0 0; padding: 0; border: 1px solid #f3e6cc; border-radius: 10px; background: #fff; list-style: none; overflow: hidden; }
.gh-ot-sugg li + li { border-top: 1px solid #f3efe6; }
.gh-ot-sugg a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 14px; color: var(--gh-text); }
.gh-ot-sugg a:hover, .gh-ot-sugg a:focus-visible { background: #fffdf8; color: var(--gh-text); text-decoration: none; }
.gh-ot-sugg a > i:first-child { margin-top: 3px; color: #94a3b8; transition: color 0.12s; }
.gh-ot-sugg b { display: block; font-size: 0.9rem; font-weight: 700; }
.gh-ot-sugg small { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--gh-muted); font-size: 0.8rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gh-ot-sugg-votes { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #64748b; font-size: 0.76rem; font-style: normal; font-weight: 600; }
.gh-ot-sugg-votes[hidden] { display: none; }
.gh-ot-sugg-votes i { color: #94a3b8; font-size: 0.72rem; }
.gh-ot-sugg-ext { margin-top: 4px; color: #cbd5e1; font-size: 0.7rem; transition: color 0.12s; }
.gh-ot-sugg a:hover b, .gh-ot-sugg a:hover > i, .gh-ot-sugg a:focus-visible > i { color: var(--gh-primary); }
/* Step 2: drafts, drag-and-drop and paste for attachments */
.gh-ot-form { position: relative; }
.gh-ot-form.is-dropping::after { content: "Drop files to attach them"; position: absolute; inset: 8px; z-index: 5; display: grid; place-items: center; border: 2px dashed var(--gh-primary); border-radius: 10px; background: rgb(255 255 255 / 0.92); color: var(--gh-primary); font-size: 1rem; font-weight: 800; pointer-events: none; }
.gh-ot-hint-drop { display: block; margin-bottom: 2px; color: var(--gh-muted); }
.gh-ot-hint-drop i { margin-right: 6px; color: var(--gh-primary); }
.gh-ot-hint.no-drop .gh-ot-hint-drop { display: none; }
.gh-ot-files-msg { margin: 6px 0 0; color: #15803d; font-size: 0.82rem; font-weight: 600; overflow-wrap: anywhere; }
.gh-ot-files-msg.is-bad { color: #b91c1c; }
.gh-ot-files-msg[hidden], .gh-ot-draft[hidden] { display: none; }
.gh-ot-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; color: var(--gh-muted); font-size: 0.82rem; }
.gh-ot-draft i { color: #16a34a; }
.gh-ot-draft .fa-history { color: var(--gh-primary); }
.gh-ot-draft button { padding: 0; border: 0; background: none; color: var(--gh-primary-hover); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gh-ot-find { padding: 20px 22px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-ot-find h2 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.gh-ot-find-form { position: relative; margin: 0; }
.gh-ot-find-form > i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #94a3b8; }
.gh-ot-find-form input { width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1px solid #d8dde5; border-radius: 10px; background: #fff; color: var(--gh-text); font-size: 0.95rem; }
.gh-ot-find-form input:focus { outline: none; border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.10); }
.gh-ot-find-spin { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: #94a3b8; }
.gh-ot-find-spin[hidden], .gh-ot-results[hidden] { display: none; }
.gh-ot-results { margin-top: 12px; }
.gh-ot-results-head { margin: 0 0 6px; color: var(--gh-muted); font-size: 0.8rem; font-weight: 700; }
.gh-ot-results ul { margin: 0; padding: 0; border: 1px solid #eef1f5; border-radius: 10px; list-style: none; overflow: hidden; }
.gh-ot-results li + li { border-top: 1px solid #eef1f5; }
.gh-ot-results a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 14px; color: var(--gh-text); }
.gh-ot-results a:hover { background: #fafbfc; color: var(--gh-text); text-decoration: none; }
.gh-ot-results a:hover b { color: var(--gh-primary); }
.gh-ot-results a > i:first-child { margin-top: 3px; color: #94a3b8; transition: color 0.12s; }
.gh-ot-results a:hover > i, .gh-ot-results a:focus-visible > i { color: var(--gh-primary); }
.gh-ot-results b { display: block; font-size: 0.9rem; font-weight: 700; }
.gh-ot-results small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: 0.8rem; line-height: 1.45; }
.gh-ot-results-ext { margin-top: 4px; color: #cbd5e1; font-size: 0.7rem; }
.gh-ot-results-none { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fafbfc; color: var(--gh-muted); font-size: 0.86rem; }
.gh-ot-results-all { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gh-primary-hover); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }

/* Step 1: teams, two columns */
.gh-ot-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gh-ot-depts a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; height: 100%; padding: 16px 18px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; color: var(--gh-text); transition: border-color 0.12s, background-color 0.12s; }
.gh-ot-depts a:hover, .gh-ot-depts a:focus-visible { border-color: #c9ced6; background: #fcfcfd; color: var(--gh-text); text-decoration: none; }
.gh-ot-dept-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f3f4f6; color: #64748b; font-size: 1rem; transition: background-color 0.12s, color 0.12s; }
.gh-ot-depts a:hover .gh-ot-dept-ico, .gh-ot-depts a:focus-visible .gh-ot-dept-ico { background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-ot-dept-body { min-width: 0; }
.gh-ot-depts b { display: block; font-size: 0.95rem; font-weight: 700; }
.gh-ot-depts small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: 0.83rem; line-height: 1.45; }
.gh-ot-depts small:empty { display: none; }
.gh-ot-go { color: #cbd5e1; font-size: 0.75rem; transition: transform 0.12s, color 0.12s; }
.gh-ot-depts a:hover .gh-ot-go { color: var(--gh-primary); transform: translateX(2px); }

/* Side column */
.gh-ot-side { display: grid; gap: 16px; color: var(--gh-text); font-size: 0.88rem; }
@media (min-width: 1200px) { .gh-ot-side { position: sticky; top: 90px; } }
.gh-ot-box { padding: 18px 20px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-ot-box h2 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 800; }
.gh-ot-box p { margin: 0; color: var(--gh-muted); line-height: 1.55; }
.gh-ot-links { margin: 10px 0 0; padding: 0; list-style: none; }
.gh-ot-links li + li { border-top: 1px solid #eef1f5; }
.gh-ot-links a, .gh-ot-links button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--gh-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.gh-ot-links a:hover, .gh-ot-links button:hover { color: var(--gh-primary); text-decoration: none; }
.gh-ot-links i { width: 16px; color: var(--gh-primary); text-align: center; }
.gh-ot-links .fa-whatsapp { color: #16a34a; }
.gh-ot-links .gh-ot-links-go { margin-left: auto; color: #cbd5e1; font-size: 0.65rem; }
.gh-ot-tips { margin: 0; padding-left: 18px; color: var(--gh-muted); line-height: 1.5; }
.gh-ot-tips li + li { margin-top: 5px; }
.gh-ot-tips li::marker { color: var(--gh-primary); }

/* Support hours */
.gh-ot-hours { border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; overflow: hidden; }
.gh-ot-hours summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fafbfc; font-size: 0.95rem; font-weight: 800; list-style: none; cursor: pointer; }
.gh-ot-hours summary::-webkit-details-marker { display: none; }
.gh-ot-hours[open] summary { border-bottom: 1px solid #eef1f5; }
.gh-ot-hours-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef2ff; color: #4f46e5; font-size: 0.85rem; }
.gh-ot-hours-caret { margin-left: auto; color: #94a3b8; font-size: 0.7rem; transition: transform 0.15s; }
.gh-ot-hours:not([open]) .gh-ot-hours-caret { transform: rotate(180deg); }
.gh-ot-hours-body { padding: 16px 18px 18px; }
.gh-ot-hours-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.gh-ot-hours-time b { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.gh-ot-hours.is-on .gh-ot-hours-time b { color: #15803d; }
.gh-ot-hours.is-late .gh-ot-hours-time b { color: #b45309; }
.gh-ot-hours-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; align-self: center; }
.gh-ot-hours.is-on .gh-ot-hours-dot { background: #16a34a; box-shadow: 0 0 0 3px rgb(22 163 74 / 0.18); }
.gh-ot-hours.is-late .gh-ot-hours-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgb(245 158 11 / 0.2); }
.gh-ot-hours-now { margin: 10px 0 0; color: #475569; font-size: 0.86rem; line-height: 1.55; }

/* Step 2: the form */
.gh-ot-form { padding: 26px 28px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-ot-who { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; color: var(--gh-muted); font-size: 0.88rem; }
.gh-ot-who b { color: var(--gh-text); }
.gh-ot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.gh-ot-field { margin: 0 0 20px; min-width: 0; }
.gh-ot-field > label, .gh-ot-prio legend { display: block; margin: 0 0 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-ot-field > label span { margin-left: 4px; color: #94a3b8; font-weight: 500; }
.gh-ot-form .form-control { height: 44px; border-color: #d8dde5; border-radius: 9px; font-size: 0.92rem; box-shadow: none; }
.gh-ot-form textarea.form-control { height: auto; min-height: 200px; padding: 12px 14px; line-height: 1.55; }
.gh-ot-form .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.10); }
.gh-ot-form .form-control::placeholder { color: #a3acb9; }
.gh-ot-form .md-editor { border-color: #d8dde5; border-radius: 9px; overflow: hidden; }
.gh-ot-form .md-editor > .md-header { padding: 6px; border-bottom: 1px solid #eef1f5; background: #fafbfc; }
.gh-ot-form .md-editor > textarea { min-height: 200px; border: 0; }
.gh-ot-prio { padding: 0; border: 0; }
.gh-ot-prio-opts { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: min(100%, 420px); }
.gh-ot-prio-opts label { position: relative; margin: 0; cursor: pointer; }
.gh-ot-prio-opts input { position: absolute; opacity: 0; pointer-events: none; }
.gh-ot-prio-opts span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 9px 14px; border: 1px solid #d8dde5; border-radius: 9px; font-size: 0.88rem; font-weight: 700; transition: border-color 0.12s, background-color 0.12s; }
.gh-ot-prio-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gh-ot-prio-dot.is-low { background: #16a34a; }
.gh-ot-prio-dot.is-medium { background: #f59e0b; }
.gh-ot-prio-dot.is-high { background: #dc2626; }
.gh-ot-prio-opts label:hover span { border-color: #b9c1cc; }
.gh-ot-prio-opts input:checked + span { border-color: var(--gh-primary); background: #fffaf9; box-shadow: inset 0 0 0 1px var(--gh-primary); }
.gh-ot-prio-opts input:focus-visible + span { outline: 2px solid var(--gh-primary); outline-offset: 2px; }
.gh-ot-files .custom-file-label { height: 44px; padding-top: 10px; border-color: #d8dde5; border-radius: 9px 0 0 9px; color: var(--gh-muted); font-size: 0.88rem; }
.gh-ot-files .custom-file-label::after { height: 42px; padding-top: 10px; content: 'Browse'; }
.gh-ot-files .custom-file, .gh-ot-files .custom-file-input { height: 44px; }
.gh-ot-files .input-group-append .btn { border-color: #d8dde5; border-radius: 0 9px 9px 0; font-size: 0.85rem; font-weight: 600; }
.gh-ot-files .attachment-group { margin-bottom: 6px; }
.gh-ot-hint { margin: 4px 0 0; color: #94a3b8; font-size: 0.78rem; overflow-wrap: anywhere; }
.gh-ot-captcha:empty { display: none; }
.gh-ot-captcha { margin: 4px 0 20px; }
.gh-ot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; border-top: 1px solid #eef1f5; }
.gh-ot-actions .btn-primary { min-width: 160px; height: 44px; border-radius: 9px; font-weight: 700; }
.gh-ot-cancel { color: var(--gh-muted); font-size: 0.9rem; font-weight: 600; }
.gh-ot-cancel:hover { color: var(--gh-text); }

/* Step 3: done */
.gh-ot-done { grid-template-columns: minmax(0, 1fr) !important; max-width: 680px; }
.gh-ot-ok { padding: 32px 30px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-ot-ok-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: #16a34a; color: #fff; }
.gh-ot-ok h1 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.gh-ot-ok p { margin: 0 0 22px; color: var(--gh-muted); line-height: 1.6; }

@media (min-width: 768px) and (max-width: 1199.98px) {
  .gh-ot-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-ot-hours { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .gh-ot-form, .gh-ot-find { padding: 18px 16px; }
  .gh-ot-prio-opts { display: grid; min-width: 0; }
  .gh-ot-issue, .gh-ot-open { padding: 16px; }
  .gh-ot-issue, .gh-ot-open-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gh-ot-depts { grid-template-columns: minmax(0, 1fr); }
  .gh-ot-depts a { padding: 14px; gap: 12px; }
  .gh-ot-actions .btn-primary { flex: 1; }
  .gh-ot-ok { padding: 24px 18px; }
  .gh-ot-steps { flex-wrap: nowrap; gap: 8px; font-size: 0.78rem; }
  .gh-ot-steps li + li::before { width: 14px; margin-right: 0; }
  .gh-ot-steps li:not(.is-on) em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Abuse complaints (abusecomplaints.php, supportticketslist.tpl with $ghAbuse) */
.gh-abuse-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #f5d9a8; border-radius: 10px; background: #fffbf2; color: #57534e; font-size: 0.88rem; line-height: 1.5; }
.gh-abuse-note i { margin-top: 3px; color: #b45309; }
.gh-empty-ico.gh-empty-ok { background: #ecfdf5; color: #16a34a; }
.gh-abuse-note.is-action { border-color: #fecaca; border-left: 4px solid #dc2626; background: #fff7f7; color: #7f1d1d; }
.gh-abuse-note.is-action i { color: #dc2626; }
.gh-abuse-note b { color: #991b1b; }
/* "Action Required" ticket status: the client's turn, solid red like "Awaiting your reply" */
.gh-tst-action-required { --gh-tc: #fff !important; padding: 5px 11px; border-radius: 999px; background: #dc2626; box-shadow: 0 4px 10px rgb(220 38 38 / 0.22); font-size: 0.78rem; }
.gh-tst-action-required i { font-size: 0.72rem; }

/* Menu: Abuse Complaints with a red count when a complaint is "Action Required" */
header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-alert > a .badge { flex: none; min-width: 20px; margin-left: auto; padding: 3px 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.7rem; font-weight: 800; line-height: 1; text-align: center; box-shadow: 0 0 0 0 rgb(220 38 38 / 0.5); animation: gh-nav-pulse 2s ease-out 3; }
header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-alert > a .gh-nav-ico { color: #dc2626; }
html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-alert > a .badge { min-width: 16px; padding: 2px 4px; font-size: 0.6rem; }
@keyframes gh-nav-pulse { 0% { box-shadow: 0 0 0 0 rgb(220 38 38 / 0.5); } 70% { box-shadow: 0 0 0 7px rgb(220 38 38 / 0); } 100% { box-shadow: 0 0 0 0 rgb(220 38 38 / 0); } }
@media (prefers-reduced-motion: reduce) { header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-alert > a .badge { animation: none; } }

/* Freebies (freebies.php, freebies.tpl) */
.gh-fb-flash { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #bbf7d0; border-left: 4px solid #16a34a; border-radius: 10px; background: #f0fdf4; color: #14532d; font-size: 0.88rem; line-height: 1.5; }
.gh-fb-flash i { margin-top: 3px; color: #16a34a; }
.gh-fb-flash a { margin-left: 4px; color: #15803d; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gh-fb-flash.is-bad { border-color: #fecaca; border-left-color: #dc2626; background: #fff7f7; color: #7f1d1d; }
.gh-fb-flash.is-bad i { color: #dc2626; }
.gh-fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.gh-fb-card { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-fb-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.gh-fb-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--gh-primary-soft); color: var(--gh-primary); font-size: 1.05rem; }
.gh-fb-head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.gh-fb-when { margin: 2px 0 0; color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-fb-when i { color: var(--gh-primary); }
.gh-fb-text { margin: 12px 0 14px; color: #475569; font-size: 0.87rem; line-height: 1.55; }
.gh-fb-rows { margin: auto 0 0; padding: 0; border: 1px solid #eef1f5; border-radius: 10px; list-style: none; overflow: hidden; }
.gh-fb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; }
.gh-fb-row + .gh-fb-row { border-top: 1px solid #eef1f5; }
.gh-fb-row-info { min-width: 0; flex: 1 1 160px; }
.gh-fb-row-info b { display: block; font-size: 0.88rem; font-weight: 700; }
.gh-fb-row-info small { display: block; color: var(--gh-muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.gh-fb-later { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-muted); font-size: 0.78rem; font-weight: 600; }
.gh-fb-state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.gh-fb-state small, .gh-fb-state a { font-size: 0.76rem; }
.gh-fb-state small { color: var(--gh-muted); }
.gh-fb-state a { color: var(--gh-primary-hover); font-weight: 700; }
.gh-fb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.gh-fb-chip.is-done { background: #dcfce7; color: #15803d; }
.gh-fb-chip.is-wip { background: #e0f2fe; color: #0369a1; }
.gh-fb-chip.is-you { background: #ea580c; color: #fff; }
.gh-fb-how { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fafbfc; }
.gh-fb-how h2 { margin: 0 0 12px; font-size: 0.95rem; font-weight: 800; }
.gh-fb-how ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.gh-fb-how li { display: flex; gap: 10px; align-items: flex-start; }
.gh-fb-how li > span { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gh-primary); color: #fff; font-size: 0.78rem; font-weight: 800; }
.gh-fb-how b { display: block; font-size: 0.87rem; }
.gh-fb-how small { color: var(--gh-muted); font-size: 0.8rem; line-height: 1.45; }
.gh-fb-dlg { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 60px rgb(15 23 42 / 0.25); }
.gh-fb-dlg::backdrop { background: rgb(15 23 42 / 0.45); }
.gh-fb-dlg form { display: grid; gap: 14px; padding: 20px; }
.gh-fb-dlg-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.gh-fb-dlg-head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.gh-fb-dlg-head p { margin: 2px 0 0; color: var(--gh-muted); font-size: 0.82rem; }
.gh-fb-x { align-self: start; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--gh-muted); cursor: pointer; }
.gh-fb-x:hover { background: #f1f5f9; color: var(--gh-text); }
.gh-fb-field { display: grid; gap: 6px; margin: 0; font-weight: 400; }
.gh-fb-field[hidden] { display: none; }
.gh-fb-field > span { font-size: 0.85rem; font-weight: 700; }
.gh-fb-field em { color: var(--gh-muted); font-style: normal; font-weight: 500; }
.gh-fb-field input, .gh-fb-field textarea { box-sizing: border-box; width: 100%; padding: 9px 12px; border: 1px solid #d6dbe3; border-radius: 9px; font: inherit; font-size: 0.9rem; }
.gh-fb-field input:focus, .gh-fb-field textarea:focus { border-color: var(--gh-primary); outline: 0; box-shadow: 0 0 0 3px var(--gh-primary-soft); }
.gh-fb-field small { color: var(--gh-muted); font-size: 0.78rem; }
.gh-fb-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
/* Menu: Freebies with a green count of freebies ready to claim */
header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-new > a .badge { flex: none; min-width: 20px; margin-left: auto; padding: 3px 6px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 0.7rem; font-weight: 800; line-height: 1; text-align: center; }
html.gh-collapsed header.header .main-navbar-wrapper .navbar-nav > li.gh-nav-new > a .badge { min-width: 16px; padding: 2px 4px; font-size: 0.6rem; }
@media (max-width: 575.98px) {
  .gh-fb-card { padding: 16px; }
  .gh-fb-row > .gh-btn, .gh-fb-state { width: 100%; }
  .gh-fb-row > .gh-btn { justify-content: center; }
  .gh-fb-state { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Freebies without a reseller plan: upgrade banner + locked cards */
.gh-fb-up { box-sizing: border-box; max-width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; margin: 0 0 16px; padding: 18px 20px; border: 1px solid #f6c9c3; border-left: 4px solid var(--gh-primary); border-radius: 12px; background: #fff8f7; }
.gh-fb-up-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--gh-primary); color: #fff; font-size: 1.1rem; }
.gh-fb-up h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.gh-fb-up p { margin: 3px 0 0; color: #57534e; font-size: 0.86rem; line-height: 1.5; }
.gh-fb-up .gh-btn { white-space: nowrap; }
.gh-fb-up .gh-btn i { margin-left: 2px; font-size: 0.72rem; }
.gh-fb-chip.is-lock { background: #f1f5f9; color: #475569; }
.gh-fb-grid.is-locked .gh-fb-ico { background: #f1f5f9; color: #64748b; }
/* Services > Freebies: green count in the dropdown */
header.header .main-navbar-wrapper .dropdown-menu li.gh-nav-new .badge { margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 0.68rem; font-weight: 800; line-height: 1; }
@media (max-width: 767.98px) {
  .gh-fb-up { grid-template-columns: 40px minmax(0, 1fr); }
  .gh-fb-up .gh-btn { grid-column: 1 / -1; justify-content: center; }
}
.gh-fbpage { min-width: 0; max-width: 100%; }
.gh-fb-how { box-sizing: border-box; }
.gh-fb-text { flex: 1 0 auto; }

/* Free Tools (tools.php, tools.tpl) */
.gh-tlpage { --tl-ok: #16a34a; --tl-ok-soft: #e8f7ee; --tl-warn: #d97706; --tl-warn-soft: #fdf3e2; --tl-bad: #dc2626; --tl-bad-soft: #fdecec; --tl-info: #2563eb; --tl-info-soft: #e9f0fe; --tl-line: #e7eaf0; --tl-ink: #0f172a; min-width: 0; }
.gh-tlpage code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* Overview */
.gh-tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.gh-tl-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; color: var(--gh-text); transition: border-color 0.15s, box-shadow 0.15s; }
.gh-tl-card:hover { border-color: #f1b8b0; box-shadow: 0 8px 24px rgb(15 23 42 / 0.07); color: var(--gh-text); text-decoration: none; }
.gh-tl-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 11px; background: var(--gh-primary-soft); color: var(--gh-primary); font-size: 1.05rem; }
.gh-tl-card b { font-size: 1rem; font-weight: 800; }
.gh-tl-card small { flex: 1 0 auto; color: var(--gh-muted); font-size: 0.85rem; line-height: 1.5; }
.gh-tl-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--gh-primary); font-size: 0.85rem; font-weight: 700; }
.gh-tl-go i { font-size: 0.72rem; transition: transform 0.12s; }
.gh-tl-card:hover .gh-tl-go i { transform: translateX(3px); }

/* Tabs and form */
.gh-tl-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.gh-tl-tabs a { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--gh-border); border-radius: 999px; background: #fff; color: #475569; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.gh-tl-tabs a:hover { border-color: #f1b8b0; color: var(--gh-primary); text-decoration: none; }
.gh-tl-tabs a.is-on { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-tl-tabs i { font-size: 0.8rem; }
.gh-tl-form { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-tl-input { position: relative; flex: 1 1 280px; min-width: 0; margin: 0; }
.gh-tl-input i { position: absolute; top: 50%; left: 13px; color: var(--gh-muted); font-size: 0.85rem; transform: translateY(-50%); }
.gh-tl-input input { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px 0 36px; border: 1px solid #d6dbe3; border-radius: 10px; background: #fbfcfd; font: inherit; font-size: 0.95rem; }
.gh-tl-input input:focus { border-color: var(--gh-primary); outline: 0; background: #fff; box-shadow: 0 0 0 3px var(--gh-primary-soft); }
.gh-tl-sel { flex: 0 1 220px; }
.gh-tl-type { flex: none; margin: 0; }
.gh-tl-type select { height: 44px; }
.gh-tl-form .gh-btn { min-height: 44px; padding: 0 20px; }

/* Summary card at the top of every result */
.gh-tl-hero { --c: var(--tl-info); --cs: var(--tl-info-soft); box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--tl-line); border-radius: 14px; background: #fff; box-shadow: inset 4px 0 0 var(--c), 0 1px 2px rgb(15 23 42 / 0.04); }
.gh-tl-hero.is-pass { --c: var(--tl-ok); --cs: var(--tl-ok-soft); }
.gh-tl-hero.is-warn { --c: var(--tl-warn); --cs: var(--tl-warn-soft); }
.gh-tl-hero.is-fail { --c: var(--tl-bad); --cs: var(--tl-bad-soft); }
.gh-tl-hero-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cs); color: var(--c); font-size: 1.25rem; }
.gh-tl-hero-main { min-width: 0; }
.gh-tl-hero-k { display: block; color: var(--c); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-tl-hero h2 { margin: 3px 0 4px; color: var(--tl-ink); font-size: 1.3rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.gh-tl-hero p { margin: 0; color: #475569; font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.gh-tl-stats { display: flex; margin: 0; }
.gh-tl-stats > div { min-width: 82px; padding: 2px 18px; text-align: center; }
.gh-tl-stats > div + div { border-left: 1px solid var(--tl-line); }
.gh-tl-stats dt { color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.gh-tl-stats dd { margin: 3px 0 0; color: var(--tl-ink); font-size: 1.35rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.gh-tl-stats dd small { color: var(--gh-muted); font-size: 0.8rem; font-weight: 700; }
.gh-tl-stats-checks > div { min-width: 64px; padding: 2px 12px; }
.gh-tl-stats-checks dd { font-size: 1.15rem; }
.gh-tl-stats-checks .is-pass dd { color: var(--tl-ok); }
.gh-tl-stats-checks .is-warn dd { color: var(--tl-warn); }
.gh-tl-stats-checks .is-fail dd { color: var(--tl-bad); }
.gh-tl-meter { display: block; height: 6px; margin-top: 12px; max-width: 360px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.gh-tl-meter i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.gh-tl-ring { --p: 0; position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef1f5 0); }
.gh-tl-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.gh-tl-ring b { position: relative; color: var(--tl-ink); font-size: 0.95rem; font-weight: 800; }
.gh-tl-codetile { display: grid; place-items: center; align-content: center; min-width: 64px; height: 60px; padding: 0 10px; border-radius: 12px; background: var(--cs); color: var(--c); font-size: 1.45rem; font-weight: 800; line-height: 1; }
.gh-tl-codetile small { margin-top: 4px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }

/* Boxes */
.gh-tl-box { box-sizing: border-box; min-width: 0; margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--tl-line); border-radius: 14px; background: #fff; }
.gh-tl-box-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.gh-tl-box-head h2 { margin: 0; color: var(--tl-ink); font-size: 0.98rem; font-weight: 800; }
.gh-tl-box-head span { color: var(--gh-muted); font-size: 0.8rem; }
.gh-tl-tablebox { padding: 0; overflow: hidden; }
.gh-tl-tablebox .gh-tl-box-head { margin: 0; padding: 16px 20px 12px; }
.gh-tl-meta { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 16px; color: #64748b; font-size: 0.82rem; line-height: 1.55; }
.gh-tl-meta i { margin-top: 3px; color: #94a3b8; }
.gh-tl-meta.is-tip i { color: var(--tl-warn); }
.gh-tlpage .is-ok { color: var(--tl-ok); }
.gh-tlpage .is-warn { color: #b45309; }
.gh-tlpage .is-bad { color: #b91c1c; }

/* Record type badges */
.gh-tl-rtype { display: inline-block; min-width: 44px; padding: 3px 8px; border-radius: 6px; background: #eef2f7; color: #334155; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; text-align: center; }
.gh-tl-rtype.t-a { background: #e0ecff; color: #1d4ed8; }
.gh-tl-rtype.t-aaaa { background: #ebe7ff; color: #5b21b6; }
.gh-tl-rtype.t-cname { background: #dff6f3; color: #0f766e; }
.gh-tl-rtype.t-mx { background: #fde8f1; color: #be185d; }
.gh-tl-rtype.t-ns { background: #eef2f7; color: #334155; }
.gh-tl-rtype.t-txt { background: #fdf0dc; color: #a16207; }
.gh-tl-rtype.t-soa { background: #f1f5f9; color: #475569; }
.gh-tl-rtype.t-caa { background: #e3f6e9; color: #15803d; }
.gh-tl-rtype.t-ptr { background: #e6f4fb; color: #0369a1; }

/* DNS: record table */
.gh-tl-dtr { display: grid; grid-template-columns: minmax(140px, 1.1fr) 70px 80px minmax(0, 2.4fr); gap: 14px; align-items: center; padding: 11px 20px; font-size: 0.87rem; }
.gh-tl-dtr + .gh-tl-dtr { border-top: 1px solid #f0f2f6; }
.gh-tl-dtr:not(.gh-tl-dthead):hover { background: #fafbfd; }
.gh-tl-dthead { border-top: 1px solid var(--tl-line); border-bottom: 1px solid var(--tl-line); background: #f8fafc; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-tl-dtr code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.85rem; overflow-wrap: anywhere; word-break: break-word; }
.gh-tl-dom { min-width: 0; }
.gh-tl-dom code { color: #475569; }
.gh-tl-ttlc { color: #64748b; font-variant-numeric: tabular-nums; }
.gh-tl-ans { display: flex; gap: 8px; align-items: center; min-width: 0; }
.gh-tl-ans code { flex: 1; min-width: 0; font-weight: 600; }
.gh-tl-ans .gh-copy { opacity: 0.55; }
.gh-tl-dtr:hover .gh-copy { opacity: 1; }

/* DNS: lookup path as a timeline */
.gh-tl-trace { position: relative; margin: 0; padding: 0; list-style: none; }
.gh-tl-trace li { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) 70px; gap: 12px; align-items: start; padding: 9px 0 9px 26px; }
.gh-tl-trace li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: #e8ebf1; }
.gh-tl-trace li:first-child::before { top: 16px; }
.gh-tl-trace li:last-child::before { bottom: calc(100% - 16px); }
.gh-tl-trace li::after { content: ""; position: absolute; top: 12px; left: 2px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 1px #e2e8f0; }
.gh-tl-trace li.is-root::after { background: #7c3aed; }
.gh-tl-trace li.is-tld::after { background: #0284c7; }
.gh-tl-trace li.is-auth::after { background: var(--tl-ok); }
.gh-tl-trace li.is-fail::after { background: var(--tl-bad); }
.gh-tl-trace li.gh-tl-depth-1, .gh-tl-trace li.gh-tl-depth-2, .gh-tl-trace li.gh-tl-depth-3 { margin-left: 26px; }
.gh-tl-trace li.gh-tl-depth-2, .gh-tl-trace li.gh-tl-depth-3 { margin-left: 52px; }
.gh-tl-trace li.gh-tl-depth-1 .gh-tl-tq, .gh-tl-trace li.gh-tl-depth-2 .gh-tl-tq, .gh-tl-trace li.gh-tl-depth-3 .gh-tl-tq { color: #64748b; }
.gh-tl-lvl { justify-self: start; margin-top: 1px; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap; }
.is-root > .gh-tl-lvl { background: #f1ebfe; color: #6d28d9; }
.is-tld > .gh-tl-lvl { background: #e3f2fc; color: #0369a1; }
.is-auth > .gh-tl-lvl { background: var(--tl-ok-soft); color: #15803d; }
.gh-tl-tmain { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gh-tl-tq { color: #334155; font-size: 0.86rem; line-height: 1.45; overflow-wrap: anywhere; }
.gh-tl-tq b { color: var(--tl-ink); }
.gh-tl-tq code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.83rem; font-weight: 600; }
.gh-tl-tq small { margin-left: 2px; padding: 1px 6px; border-radius: 4px; background: #f4f6f9; color: #64748b; font-size: 0.74rem; }
.gh-tl-tbar { display: block; height: 4px; max-width: 320px; border-radius: 999px; background: #f1f3f7; overflow: hidden; }
.gh-tl-tbar i { display: block; height: 100%; border-radius: inherit; background: #cbd5e1; }
.is-root .gh-tl-tbar i { background: #c4b5fd; }
.is-tld .gh-tl-tbar i { background: #7dd3fc; }
.is-auth .gh-tl-tbar i { background: #86efac; }
.gh-tl-took { color: #64748b; font-size: 0.8rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.gh-tl-trace li.is-fail .gh-tl-took { color: var(--tl-bad); font-weight: 700; }
.gh-tl-found { display: grid; gap: 6px; margin: 14px 0 0; padding: 14px; border-radius: 10px; background: var(--tl-ok-soft); list-style: none; }
.gh-tl-found li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: #166534; font-size: 0.86rem; font-weight: 700; }
.gh-tl-found i { color: var(--tl-ok); font-size: 0.78rem; }
.gh-tl-found code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.86rem; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }

/* Propagation: one card per provider */
.gh-tl-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin: 0 0 16px; }
.gh-tl-pcard { --c: #94a3b8; --cs: #f1f5f9; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--tl-line); border-radius: 12px; background: #fff; box-shadow: inset 0 3px 0 var(--c); }
.gh-tl-pcard.is-ok { --c: var(--tl-ok); --cs: var(--tl-ok-soft); }
.gh-tl-pcard.is-diff { --c: var(--tl-warn); --cs: var(--tl-warn-soft); }
.gh-tl-pcard.is-none { --c: var(--tl-bad); --cs: var(--tl-bad-soft); }
.gh-tl-pcard header { display: flex; gap: 10px; align-items: center; }
.gh-tl-pcard header b { display: block; color: var(--tl-ink); font-size: 0.92rem; }
.gh-tl-pcard header small { color: var(--gh-muted); font-size: 0.76rem; }
.gh-tl-pst { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cs); color: var(--c); font-size: 0.8rem; }
.gh-tl-pans { display: flex; flex: 1 0 auto; flex-direction: column; gap: 3px; min-width: 0; }
.gh-tl-pans code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.84rem; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.gh-tl-pans em { color: var(--gh-muted); font-size: 0.84rem; font-style: normal; }
.gh-tl-pcard footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid #f0f2f6; color: var(--gh-muted); font-size: 0.76rem; }
.gh-tl-pcard footer span:first-child { color: var(--c); font-weight: 800; }

/* Email: checks in two columns */
.gh-tl-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
.gh-tl-check { --c: var(--tl-ok); --cs: var(--tl-ok-soft); box-sizing: border-box; min-width: 0; padding: 16px 18px; border: 1px solid var(--tl-line); border-radius: 12px; background: #fff; }
.gh-tl-check.is-warn { --c: var(--tl-warn); --cs: var(--tl-warn-soft); }
.gh-tl-check.is-fail { --c: var(--tl-bad); --cs: var(--tl-bad-soft); }
.gh-tl-check header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.gh-tl-check h2 { margin: 0; color: var(--tl-ink); font-size: 0.98rem; font-weight: 800; }
.gh-tl-check em { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--cs); color: var(--c); font-size: 0.72rem; font-style: normal; font-weight: 800; }
.gh-tl-cst { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cs); color: var(--c); font-size: 0.78rem; }
.gh-tl-check p { margin: 0 0 8px; color: #475569; font-size: 0.87rem; line-height: 1.55; }
.gh-tl-code { display: block; margin-top: 6px; padding: 9px 11px; border: 1px solid #eef1f5; border-radius: 8px; background: #f8fafc; color: var(--tl-ink); font-size: 0.8rem; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.gh-tl-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.gh-tl-suggest .gh-tl-code { flex: 1 1 240px; margin-top: 0; }

/* SSL: validity bar and details */
.gh-tl-life { --c: var(--tl-ok); }
.gh-tl-life.is-warn { --c: var(--tl-warn); }
.gh-tl-life.is-bad { --c: var(--tl-bad); }
.gh-tl-life-bar { display: block; height: 10px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.gh-tl-life-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.gh-tl-life-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.88rem; font-weight: 700; }
.gh-tl-life-ends small { display: block; color: var(--gh-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-tl-life-ends span:last-child { text-align: right; }
.gh-tl-life-now { align-self: flex-end; padding: 3px 10px; border-radius: 999px; background: #f4f6f9; color: var(--c); font-size: 0.8rem; }
.gh-tl-spec { margin: 0; padding: 0; list-style: none; }
.gh-tl-spec li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; font-size: 0.88rem; }
.gh-tl-spec li + li { border-top: 1px solid #f0f2f6; }
.gh-tl-spec span { color: #64748b; overflow-wrap: anywhere; }
.gh-tl-spec b { color: var(--tl-ink); font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.gh-tl-spec b small { color: var(--gh-muted); font-weight: 500; }
.gh-tl-subh { margin: 16px 0 8px; color: var(--tl-ink); font-size: 0.85rem; font-weight: 800; }
.gh-tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-tl-chips code { padding: 4px 9px; border: 1px solid #e8ebf0; border-radius: 6px; background: #f8fafc; color: var(--tl-ink); font-size: 0.8rem; }

/* Website status */
.gh-tl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.gh-tl-pills li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--tl-line); border-radius: 999px; background: #fff; color: #475569; font-size: 0.82rem; font-weight: 700; }
.gh-tl-pills li.is-ok { border-color: #c9ecd5; background: var(--tl-ok-soft); color: #166534; }
.gh-tl-pills li.is-warn { border-color: #f4dcae; background: var(--tl-warn-soft); color: #92400e; }
.gh-tl-pills li.is-bad { border-color: #f6c7c7; background: var(--tl-bad-soft); color: #991b1b; }
.gh-tl-hops { margin: 0; padding: 0; list-style: none; }
.gh-tl-hops li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid #eef1f5; border-radius: 10px; background: #fbfcfd; }
.gh-tl-hops li + li { margin-top: 22px; }
.gh-tl-hops li + li::before { content: ""; position: absolute; top: -21px; left: 35px; width: 2px; height: 13px; background: #cbd5e1; }
.gh-tl-hops li + li::after { content: ""; position: absolute; top: -9px; left: 31px; border: 5px solid transparent; border-top-color: #cbd5e1; border-bottom: 0; }
.gh-tl-hops div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gh-tl-hops code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.gh-tl-hops small { color: var(--gh-muted); font-size: 0.78rem; }
.gh-tl-code-pill { flex: none; min-width: 46px; padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 800; text-align: center; }
.gh-tl-code-pill.is-ok { background: var(--tl-ok-soft); color: #15803d !important; }
.gh-tl-code-pill.is-redir { background: #e3f2fc; color: #0369a1 !important; }
.gh-tl-code-pill.is-bad { background: var(--tl-bad-soft); color: #b91c1c !important; }
.gh-tl-headers { margin: 0; border-top: 1px solid var(--tl-line); }
.gh-tl-headers div { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 14px; padding: 10px 20px; font-size: 0.85rem; }
.gh-tl-headers div + div { border-top: 1px solid #f0f2f6; }
.gh-tl-headers dt { color: #475569; font-weight: 700; overflow-wrap: anywhere; }
.gh-tl-headers dd { margin: 0; min-width: 0; }
.gh-tl-headers code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.83rem; overflow-wrap: anywhere; word-break: break-word; }

/* What's my IP */
.gh-tl-ipval code { padding: 0; background: none; color: var(--tl-ink); font-size: 1.7rem; font-weight: 800; overflow-wrap: anywhere; word-break: break-all; }
.gh-tl-agent { font-size: 0.8rem !important; font-weight: 500 !important; }

@media (max-width: 991.98px) {
  .gh-tl-hero { grid-template-columns: auto minmax(0, 1fr); }
  .gh-tl-hero > .gh-tl-stats, .gh-tl-iphero > .gh-btn { grid-column: 1 / -1; }
  .gh-tl-stats { padding-top: 14px; border-top: 1px solid var(--tl-line); }
  .gh-tl-stats > div { flex: 1; min-width: 0; padding: 2px 8px; }
  .gh-tl-stats > div:first-child { padding-left: 0; text-align: left; }
}
@media (max-width: 767.98px) {
  .gh-tl-form .gh-btn, .gh-tl-type, .gh-tl-sel { flex: 1 1 100%; }
  .gh-tl-cgrid { grid-template-columns: minmax(0, 1fr); }
  .gh-tl-type select { width: 100%; }
  .gh-tl-hero { gap: 14px; padding: 16px; }
  .gh-tl-hero-ico, .gh-tl-ring { width: 46px; height: 46px; font-size: 1.05rem; }
  .gh-tl-codetile { min-width: 54px; height: 50px; font-size: 1.2rem; }
  .gh-tl-hero h2 { font-size: 1.1rem; }
  .gh-tl-stats dd { font-size: 1.1rem; }
  .gh-tl-trace li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .gh-tl-trace .gh-tl-tmain { grid-column: 1 / -1; grid-row: 2; }
  .gh-tl-trace li.gh-tl-depth-1 { margin-left: 14px; }
  .gh-tl-trace li.gh-tl-depth-2, .gh-tl-trace li.gh-tl-depth-3 { margin-left: 28px; }
  .gh-tl-dthead { display: none; }
  .gh-tl-dtr { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 10px; padding: 12px 16px; }
  .gh-tl-dom { grid-column: 1 / -1; }
  .gh-tl-ttlc::before { content: "TTL "; color: var(--gh-muted); }
  .gh-tl-ans { grid-column: 1 / -1; }
  .gh-tl-headers div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 16px; }
  .gh-tl-spec b { text-align: left; }
}

/* DNS Lookup: nameserver IP and the nameserver check */
.gh-tl-ipchip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; font-weight: 600; }
.gh-tl-nsverdict { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 12px; padding: 11px 14px; border-radius: 10px; font-size: 0.87rem; font-weight: 600; line-height: 1.5; }
.gh-tl-nsverdict i { margin-top: 3px; }
.gh-tl-nsverdict.is-pass { background: var(--tl-ok-soft); color: #166534; }
.gh-tl-nsverdict.is-pass i { color: var(--tl-ok); }
.gh-tl-nsverdict.is-warn { background: var(--tl-warn-soft); color: #92400e; }
.gh-tl-nsverdict.is-warn i { color: var(--tl-warn); }
.gh-tl-nsverdict.is-fail { background: var(--tl-bad-soft); color: #991b1b; }
.gh-tl-nsverdict.is-fail i { color: var(--tl-bad); }
.gh-tl-nsrows { border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; }
.gh-tl-nsrow { --c: var(--tl-ok); --cs: var(--tl-ok-soft); display: grid; grid-template-columns: 30px minmax(160px, 1fr) minmax(0, 1.4fr) auto 64px; gap: 12px; align-items: center; padding: 11px 14px; }
.gh-tl-nsrow + .gh-tl-nsrow { border-top: 1px solid #eef1f5; }
.gh-tl-nsrow.is-diff { --c: var(--tl-warn); --cs: var(--tl-warn-soft); background: #fffcf5; }
.gh-tl-nsrow.is-err { --c: var(--tl-bad); --cs: var(--tl-bad-soft); background: #fffafa; }
.gh-tl-nsname { min-width: 0; }
.gh-tl-nsname b { display: block; color: var(--tl-ink); font-size: 0.88rem; overflow-wrap: anywhere; }
.gh-tl-nsname small { color: var(--gh-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; }
.gh-tl-nsans { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.gh-tl-nsans code { padding: 0; background: none; color: var(--tl-ink); font-size: 0.84rem; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.gh-tl-nsans em { color: #64748b; font-size: 0.84rem; font-style: normal; }
.gh-tl-nsbadge { padding: 3px 10px; border-radius: 999px; background: var(--cs); color: var(--c); font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 767.98px) {
  .gh-tl-nsrow { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 10px; }
  .gh-tl-nsans { grid-column: 2 / -1; }
  .gh-tl-nsrow .gh-tl-took { display: none; }
}

/* WHMCS email verification banner (Twenty-One includes/verifyemail.tpl): a slim amber bar
   instead of the tall grey strip. CSS only, so WHMCS's resend and close buttons keep working. */
.verification-banner { margin: 0; padding: 12px 0 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.verification-banner .row { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 0; padding: 7px 8px 7px 12px; border: 1px solid #f6dfb0; border-radius: 10px; background: #fffaf0; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); }
.verification-banner .row > [class*="col"] { flex: 0 0 auto; order: 0 !important; width: auto; max-width: none; padding: 0; text-align: left; }
.verification-banner .row > [class*="col"]:has(.text) { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; order: 1 !important; }
.verification-banner .row > [class*="col"]:has(.btn-resend-verify-email),
.verification-banner .row > [class*="col"]:has(.btn-action) { order: 2 !important; }
.verification-banner .row > [class*="col"]:has(.close) { order: 3 !important; }
.verification-banner .fa-exclamation-triangle,
.verification-banner .fa-exclamation-circle { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; margin: 0 !important; border-radius: 50%; background: #fdecc8; color: #b45309; font-size: 0.8rem !important; }
.verification-banner .text { color: #78350f; font-size: 0.87rem; font-weight: 600; line-height: 1.4; }
.verification-banner .btn.btn-resend-verify-email,
.verification-banner .btn.btn-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-height: 0; margin: 0; padding: 6px 12px !important; border: 1px solid #f1c87a !important; border-radius: 8px !important; background: #fff !important; color: #92400e !important; font-size: 0.8rem !important; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: none !important; }
.verification-banner .btn.btn-resend-verify-email:hover,
.verification-banner .btn.btn-action:hover { border-color: #e9a93b !important; background: #fff3dc !important; color: #78350f !important; }
.verification-banner .close,
.verification-banner .btn.close { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: none; color: #a16207; font-size: 1.15rem; line-height: 1; opacity: 0.7; text-shadow: none; }
.verification-banner .close:hover { background: #fdecc8; opacity: 1; }
@media (max-width: 575.98px) {
  .verification-banner .row { flex-wrap: wrap; row-gap: 9px; padding: 10px 40px 10px 12px; }
  .verification-banner .row > [class*="col"]:has(.text) { flex-basis: 100%; align-items: flex-start; }
  .verification-banner .row > [class*="col"]:has(.close) { position: absolute; top: 8px; right: 8px; }
  .verification-banner .row > [class*="col"]:has(.btn-resend-verify-email),
  .verification-banner .row > [class*="col"]:has(.btn-action) { padding-left: 38px; }
}
/* Verification notice moved into the breadcrumb bar (wide screens, script step 0b) */
@media (min-width: 1200px) {
  .master-breadcrumb > .container.gh-crumb-has-vb { display: flex; align-items: center; gap: 16px; }
  .gh-crumb-has-vb > .breadcrumb { flex: none; }
  .verification-banner.gh-vb-inbar { flex: 0 1 auto; min-width: 0; margin: 0 0 0 auto; padding: 0 !important; }
  .verification-banner.gh-vb-inbar > .container { width: auto; max-width: none; margin: 0; padding: 0 !important; }
  .verification-banner.gh-vb-inbar .row { gap: 8px; padding: 3px 4px 3px 4px; border-radius: 999px; box-shadow: none; }
  .gh-vb-inbar .row > [class*="col"]:has(.text) { gap: 8px; overflow: hidden; }
  .gh-vb-inbar .fa-exclamation-triangle, .gh-vb-inbar .fa-exclamation-circle { width: 24px; height: 24px; font-size: 0.68rem !important; }
  .gh-vb-inbar .text { display: block; margin: 0; padding: 0; overflow: hidden; font-size: 0.8rem; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
  .gh-vb-inbar .row > [class*="col"] { display: flex; align-items: center; }
  .verification-banner.gh-vb-inbar .btn.btn-resend-verify-email,
  .verification-banner.gh-vb-inbar .btn.btn-action { padding: 4px 11px !important; border-radius: 999px !important; font-size: 0.74rem !important; }
  .gh-vb-inbar .close, .gh-vb-inbar .btn.close { width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; }
}
/* In the breadcrumb bar: no pill, plain icon and text; only the Resend button is yellow */
@media (min-width: 1200px) {
  .verification-banner.gh-vb-inbar .row { gap: 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .gh-vb-inbar .fa-exclamation-triangle, .gh-vb-inbar .fa-exclamation-circle { display: inline-block; width: auto; height: auto; border-radius: 0; background: none; color: #d97706; font-size: 0.85rem !important; line-height: 24px; }
  .gh-vb-inbar .text { color: #57534e; font-weight: 500; }
  .verification-banner.gh-vb-inbar .btn.btn-resend-verify-email,
  .verification-banner.gh-vb-inbar .btn.btn-action { border-color: #f3c46b !important; background: #fff4d6 !important; color: #92400e !important; }
  .verification-banner.gh-vb-inbar .btn.btn-resend-verify-email:hover,
  .verification-banner.gh-vb-inbar .btn.btn-action:hover { border-color: #e9a93b !important; background: #ffe9b3 !important; color: #78350f !important; }
  .gh-vb-inbar .close, .gh-vb-inbar .btn.close { color: #94a3b8; }
  .gh-vb-inbar .close:hover { background: #f1f5f9; color: #475569; }
}

/* Dashboard alerts in two stacks, lined up with the columns below (service | billing) */
.gh-alerts-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.gh-alerts-split > .gh-alerts { min-width: 0; }
.gh-alerts-split .gh-alert p { line-height: 1.45; }
@media (max-width: 1199.98px) {
  .gh-alerts-split { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gh-alerts-split > .gh-alerts.is-empty { display: none; }
}

/* Dashboard alerts: soft tint (whole box lightly coloured, soft border all round, no coloured edge) */
.gh-dash .gh-alert { --a-bg: #f8fafc; --a-bd: #e2e8f0; --a-ink: #334155; --a-ico: #64748b; border: 1px solid var(--a-bd) !important; border-radius: 12px; background: var(--a-bg) !important; box-shadow: none; color: var(--a-ink); }
.gh-dash .gh-alert-danger { --a-bg: #fef4f4; --a-bd: #f8d4d4; --a-ink: #7f1d1d; --a-ico: #dc2626; }
.gh-dash .gh-alert-warning { --a-bg: #fffaeb; --a-bd: #f6e3ad; --a-ink: #713f12; --a-ico: #d97706; }
.gh-dash .gh-alert-info { --a-bg: #f2f7ff; --a-bd: #d3e2fb; --a-ink: #1e3a8a; --a-ico: #2563eb; }
.gh-dash .gh-alert p { color: var(--a-ink); font-weight: 600; }
.gh-dash .gh-alert-ico, .gh-dash .gh-alert-ico i { background: none !important; color: var(--a-ico) !important; }
.gh-dash .gh-alert-warning .gh-alert-btn { border-color: #efcf7f; background: #fff; color: #92400e; }
.gh-dash .gh-alert-info .gh-alert-btn { border-color: #b9d0f8; background: #fff; color: #1e40af; }
.gh-dash .gh-alert-close { color: var(--a-ico); opacity: 0.6; }
.gh-dash .gh-alert-close:hover { opacity: 1; }

/* Free Tools: soft tint like the dashboard alerts (no coloured edge) and a search box that
   doesn't stretch across the whole page */
.gh-tl-hero { --tb: #f8fafc; --tbd: #e2e8f0; border-color: var(--tbd); background: var(--tb); box-shadow: none; }
.gh-tl-hero.is-pass { --tb: #f3fbf6; --tbd: #cdebd8; }
.gh-tl-hero.is-warn { --tb: #fffaeb; --tbd: #f6e3ad; }
.gh-tl-hero.is-fail { --tb: #fef4f4; --tbd: #f8d4d4; }
.gh-tl-hero.is-info { --tb: #f2f7ff; --tbd: #d3e2fb; }
.gh-tl-hero-ico, .gh-tl-codetile { background: #fff; box-shadow: 0 0 0 1px var(--tbd); }
.gh-tl-stats > div + div { border-left-color: var(--tbd); }
.gh-tl-meter { background: #fff; box-shadow: inset 0 0 0 1px var(--tbd); }
@media (max-width: 991.98px) { .gh-tl-stats { border-top-color: var(--tbd); } }
.gh-tl-pcard { --tb: #f8fafc; --tbd: #e2e8f0; border-color: var(--tbd); background: var(--tb); box-shadow: none; }
.gh-tl-pcard.is-ok { --tb: #f3fbf6; --tbd: #cdebd8; }
.gh-tl-pcard.is-diff { --tb: #fffaeb; --tbd: #f6e3ad; }
.gh-tl-pcard.is-none { --tb: #fef4f4; --tbd: #f8d4d4; }
.gh-tl-pcard .gh-tl-pst { background: #fff; }
.gh-tl-pcard footer { border-top-color: var(--tbd); }
.gh-tl-form { box-sizing: border-box; width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; flex-wrap: nowrap; }
.gh-tl-tabs { justify-content: center; }
@media (max-width: 767.98px) { .gh-tl-form { flex-wrap: wrap; } }
@media (max-width: 991.98px) { .gh-tl-tabs { justify-content: flex-start; } }
/* Free Tools: the record type menu only needs to fit "All records" */
.gh-tl-form .gh-tl-type { flex: 0 0 150px; }
.gh-tl-form .gh-tl-type select { width: 100%; min-width: 0; }
@media (max-width: 767.98px) { .gh-tl-form .gh-tl-type { flex: 1 1 100%; } }
/* DNS Propagation: the provider cards share the full width (no empty space on the right) and an
   answer such as "10 alt3.aspmx.l.google.com" stays on one line when it fits */
.gh-tl-pgrid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.gh-tl-pans code { word-break: normal; overflow-wrap: anywhere; }
/* Free Tools: compact summary card */
.gh-tl-hero { gap: 14px; padding: 12px 16px; border-radius: 12px; }
.gh-tl-hero-ico { width: 38px; height: 38px; font-size: 0.95rem; }
.gh-tl-hero-k { font-size: 0.66rem; }
.gh-tl-hero h2 { margin: 1px 0 2px; font-size: 1.05rem; }
.gh-tl-hero p { font-size: 0.84rem; }
.gh-tl-stats > div { min-width: 64px; padding: 0 14px; }
.gh-tl-stats dt { font-size: 0.62rem; }
.gh-tl-stats dd { margin-top: 1px; font-size: 1.05rem; }
.gh-tl-stats dd small { font-size: 0.72rem; }
.gh-tl-stats-checks dd { font-size: 1rem; }
.gh-tl-ring { width: 44px; height: 44px; }
.gh-tl-ring::before { inset: 4px; }
.gh-tl-ring b { font-size: 0.78rem; }
.gh-tl-codetile { min-width: 50px; height: 42px; border-radius: 10px; font-size: 1.1rem; }
.gh-tl-codetile small { margin-top: 2px; font-size: 0.56rem; }
.gh-tl-meter { height: 5px; margin-top: 8px; }
.gh-tl-ipval code { font-size: 1.3rem; }
@media (max-width: 991.98px) { .gh-tl-stats { padding-top: 10px; } }
/* Free Tools: summary card as wide as the search box above it, centred */
.gh-tl-hero { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
/* SSL Checker: validity bar inside the summary card */
.gh-tl-herolife { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.gh-tl-herolife .gh-tl-meter { flex: 0 1 220px; margin: 0; }
.gh-tl-herolife small { color: #64748b; font-size: 0.76rem; font-weight: 600; }
/* DNS Lookup: nameserver verdict and "record found" only as wide as their text, centred */
.gh-tl-nsverdict { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 8px 16px; border-radius: 999px; }
.gh-tl-found { width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 10px 18px; border-radius: 12px; }
.gh-tl-found li { justify-content: center; }
/* Website Status: check pills centred; redirect chain and response headers side by side */
.gh-tl-pills { justify-content: center; }
.gh-tl-pills li[title] { cursor: help; }
.gh-tl-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gh-tl-2col.is-single { grid-template-columns: minmax(0, 1fr); }
.gh-tl-2col > .gh-tl-box { margin-bottom: 16px; }
.gh-tl-2col .gh-tl-headers div { grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); }
@media (max-width: 991.98px) { .gh-tl-2col { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* Website Status: web server pill in the server's colour */
.gh-tl-pills li.is-litespeed { border-color: #b8dcf3; background: #eaf5fc; color: #0b6fb3; }
.gh-tl-pills li.is-litespeed i { color: #0b6fb3; }
.gh-tl-pills li.is-apache { border-color: #f6c7c7; background: #fdecec; color: #b91c1c; }
.gh-tl-pills li.is-apache i { color: #c62828; }
.gh-tl-pills li.is-cloudflare { border-color: #fbd3a8; background: #fff3e6; color: #c2410c; }
.gh-tl-pills li.is-cloudflare i { color: #f38020; }
/* What's My IP: details and tip as wide as the IP card, centred */
.gh-tl-iphero ~ .gh-tl-box, .gh-tl-iphero ~ .gh-tl-meta { box-sizing: border-box; width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
.gh-tl-iphero ~ .gh-tl-meta { justify-content: center; text-align: center; }
.gh-tl-iphero ~ .gh-tl-box .gh-tl-agent { max-width: 560px; }

/* Affiliates (affiliates.tpl, affiliatessignup.tpl): one centred column, max 1100px */
.gh-afpage { box-sizing: border-box; width: 100%; max-width: 1100px; margin: 0 auto; }
.gh-af-card { box-sizing: border-box; min-width: 0; margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-af-card h2 { margin: 0; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-af-sub { margin: 4px 0 14px; color: var(--gh-muted); font-size: 0.86rem; line-height: 1.5; }
.gh-af-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0 0 16px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; }
.gh-af-stats > div { padding: 14px 20px; }
.gh-af-stats > div + div { border-left: 1px solid #eef1f5; }
.gh-af-stats span { display: block; color: var(--gh-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-af-stats b { display: block; margin-top: 2px; color: var(--gh-text); font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gh-af-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.gh-af-grid > .gh-af-card { margin-bottom: 16px; }
.gh-af-link { display: flex; gap: 8px; }
.gh-af-link input { box-sizing: border-box; flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d6dbe3; border-radius: 9px; background: #f8fafc; color: var(--gh-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; }
.gh-af-link input:focus { border-color: var(--gh-primary); outline: 0; background: #fff; }
.gh-af-link .gh-btn { min-height: 42px; flex: none; }
.gh-af-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--gh-muted); font-size: 0.82rem; }
.gh-af-share a { display: inline-flex; align-items: center; gap: 6px; color: #334155; font-weight: 700; }
.gh-af-share a:hover { color: var(--gh-primary); text-decoration: none; }
.gh-af-share .fa-whatsapp { color: #16a34a; }
.gh-af-terms { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #eef1f5; list-style: none; }
.gh-af-terms li { position: relative; padding: 3px 0 3px 20px; color: #475569; font-size: 0.86rem; line-height: 1.5; }
.gh-af-terms li::before { content: ""; position: absolute; top: 11px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gh-primary); }
.gh-af-terms b { color: var(--gh-text); }
.gh-af-money { margin: 12px 0 14px; }
.gh-af-money > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; }
.gh-af-money > div + div { border-top: 1px solid #eef1f5; }
.gh-af-money dt { color: #64748b; font-size: 0.88rem; font-weight: 600; }
.gh-af-money dd { margin: 0; color: var(--gh-text); font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gh-af-money .is-main dt { color: var(--gh-text); }
.gh-af-money .is-main dd { font-size: 1.35rem; font-weight: 800; }
.gh-af-withdraw .gh-btn { width: 100%; justify-content: center; }
.gh-af-withdraw .gh-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.gh-af-hint { margin: 8px 0 0; color: var(--gh-muted); font-size: 0.8rem; text-align: center; }
.gh-af-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 16px; padding: 11px 14px; border: 1px solid #d3e2fb; border-radius: 10px; background: #f2f7ff; color: #1e3a8a; font-size: 0.87rem; line-height: 1.5; }
.gh-af-note i { margin-top: 3px; }
.gh-af-note.is-ok { border-color: #cdebd8; background: #f3fbf6; color: #14532d; }
.gh-af-note.is-bad { border-color: #f8d4d4; background: #fef4f4; color: #7f1d1d; }
.gh-af-earn .gh-af-note { margin: 0; }
.gh-af-refs { padding: 0; overflow: hidden; }
.gh-af-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px 12px; }
.gh-af-head span { color: var(--gh-muted); font-size: 0.82rem; }
.gh-af-tr { display: grid; grid-template-columns: 110px minmax(0, 2fr) minmax(90px, 1fr) minmax(90px, 1fr) 110px; gap: 14px; align-items: center; padding: 11px 22px; font-size: 0.87rem; }
.gh-af-tr + .gh-af-tr { border-top: 1px solid #f0f2f6; }
.gh-af-thead { border-top: 1px solid var(--gh-border); border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-af-date { color: #64748b; }
.gh-af-svc { min-width: 0; color: var(--gh-text); font-weight: 600; overflow-wrap: anywhere; }
.gh-af-com { font-weight: 700; }
.gh-af-lbl { display: none; }
.gh-af-st { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.74rem; font-weight: 700; }
.gh-af-st.is-active, .gh-af-st.is-completed, .gh-af-st.is-paid { background: #e8f7ee; color: #15803d; }
.gh-af-st.is-pending { background: #fdf3e2; color: #b45309; }
.gh-af-st.is-cancelled, .gh-af-st.is-terminated, .gh-af-st.is-fraud { background: #fdecec; color: #b91c1c; }
.gh-af-st.is-suspended { background: #fff1e6; color: #c2410c; }
.gh-af-empty { display: flex; gap: 14px; align-items: flex-start; margin: 0 22px 20px; padding: 16px 18px; border: 1px dashed #dbe1ea; border-radius: 10px; }
.gh-af-empty i { margin-top: 2px; color: #94a3b8; font-size: 1.1rem; }
.gh-af-empty p { margin: 0; color: #64748b; font-size: 0.86rem; line-height: 1.5; }
.gh-af-empty b { display: block; color: var(--gh-text); }
.gh-af-banners { overflow-x: auto; }
.gh-af-banners textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #d6dbe3; border-radius: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }
.gh-af-banners img { max-width: 100%; height: auto; }
.gh-af-join { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 28px; padding: 26px 28px; }
.gh-af-join h2 { font-size: 1.15rem; }
.gh-af-join .gh-af-terms { margin: 0 0 18px; padding: 0; border: 0; }
.gh-af-steps { margin: 0; padding: 0 0 0 24px; border-left: 1px solid #eef1f5; list-style: none; }
.gh-af-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.gh-af-steps li > span { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 1px solid #f1c7c1; border-radius: 50%; color: var(--gh-primary); font-size: 0.78rem; font-weight: 800; }
.gh-af-steps b { display: block; color: var(--gh-text); font-size: 0.9rem; }
.gh-af-steps small { color: var(--gh-muted); font-size: 0.82rem; line-height: 1.45; }
@media (max-width: 991.98px) {
  .gh-af-grid, .gh-af-join { grid-template-columns: minmax(0, 1fr); }
  .gh-af-steps { padding: 16px 0 0; border-top: 1px solid #eef1f5; border-left: 0; }
}
@media (max-width: 767.98px) {
  .gh-af-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-af-stats > div:nth-child(odd) { border-left: 0; }
  .gh-af-stats > div:nth-child(n+3) { border-top: 1px solid #eef1f5; }
  .gh-af-link { flex-wrap: wrap; }
  .gh-af-link .gh-btn { width: 100%; justify-content: center; }
  .gh-af-thead { display: none; }
  .gh-af-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 18px; }
  .gh-af-svc { flex-basis: 100%; order: -1; }
  .gh-af-lbl { display: inline; margin-right: 5px; color: var(--gh-muted); font-size: 0.76rem; }
  .gh-af-card, .gh-af-join { padding: 18px; }
}
@media (max-width: 767.98px) {
  .gh-af-tr.gh-af-thead { display: none; }
  .gh-af-card.gh-af-refs { padding: 0; }
  .gh-af-head { padding: 16px 18px 10px; }
}
/* Affiliates: referrals search, status filter and pages */
.gh-af-head { flex-wrap: wrap; align-items: center; }
.gh-af-head h2 { margin: 0; }
.gh-af-head > div > span { display: block; margin-top: 2px; }
.gh-af-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-af-controls .gh-search input { width: 220px; }
.gh-af-controls .gh-sort select { min-width: 170px; }
.gh-af-none { margin: 0; padding: 16px 22px; border-top: 1px solid #f0f2f6; color: var(--gh-muted); font-size: 0.86rem; }
.gh-af-none[hidden] { display: none; }
.gh-af-row[hidden] { display: none !important; }
@media (max-width: 767.98px) {
  .gh-af-controls, .gh-af-controls label { width: 100%; }
  .gh-af-controls .gh-search input, .gh-af-controls .gh-sort select { width: 100%; min-width: 0; }
}

/* ---------- Login and register pages (login.tpl, clientregister.tpl): split screen, no menu, top bar, breadcrumb or footer ---------- */
html.gh-page-auth body { padding: 0 !important; background: #fff; }
html.gh-page-auth header.header,
html.gh-page-auth .master-breadcrumb,
html.gh-page-auth footer.footer,
html.gh-page-auth .gh-tabbar { display: none !important; }
html.gh-page-auth body.primary-bg-color > #main-body { min-height: 100vh; min-height: 100dvh; padding: 0; }
html.gh-page-auth #main-body > .container { max-width: none; padding: 0; }
html.gh-page-auth #main-body > .container > .row { margin: 0; }
html.gh-page-auth #main-body .primary-content { padding: 0 !important; }
.gh-login { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.gh-login-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; text-align: center; padding: 40px 56px; background: var(--gh-navy); color: #cbd5e1; }
.gh-login-logo { align-self: center; }
.gh-login-logo img { display: block; width: 190px; height: auto; }
.gh-login-pitch { max-width: 420px; }
.gh-login-pitch ul { display: inline-block; text-align: left; }
.gh-login-pitch h2 { margin: 0 0 10px; color: #fff; font-size: 2rem; font-weight: 800; }
.gh-login-pitch > p { margin: 0 0 28px; color: #cbd5e1; font-size: 1rem; line-height: 1.6; }
.gh-login-pitch ul { margin: 0; padding: 0; list-style: none; }
.gh-login-pitch li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / 0.08); }
.gh-login-pitch li i { flex: none; width: 20px; margin-top: 3px; color: #f08a7e; text-align: center; }
.gh-login-pitch li span { color: #94a3b8; font-size: 0.9rem; line-height: 1.45; }
.gh-login-pitch li b { display: block; color: #fff; font-size: 0.95rem; font-weight: 700; }
.gh-login-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 40px; }
.gh-login-back { position: absolute; top: 28px; right: 32px; color: var(--gh-muted); font-size: 0.86rem; font-weight: 600; }
.gh-login-back:hover { color: var(--gh-primary); text-decoration: none; }
.gh-login-form { width: 100%; max-width: 400px; }
.gh-login-help { margin: 28px 0 0; color: var(--gh-muted); font-size: 0.86rem; }
.gh-login-help a { color: var(--gh-primary); font-weight: 700; }
/* Twenty-One's login card, shown as a plain form on the white side. */
.gh-login-form .login-form .card { margin: 0 !important; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; }
.gh-login-form .login-form .card-body { display: flex; flex-direction: column; padding: 0 !important; }
.gh-login-form .login-form .card-body > .mb-4 { margin-bottom: 26px !important; }
.gh-login-form .login-form .card-body h6.h3 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.gh-login-form .login-form .card-body .text-muted { color: var(--gh-muted) !important; font-size: 0.92rem; }
.gh-login-form .form-group { margin-bottom: 18px; }
.gh-login-form .form-control-label { margin-bottom: 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-login-form .form-group .mb-2 { margin-bottom: 6px !important; }
.gh-login-form .form-group .small.text-muted { color: var(--gh-primary) !important; font-size: 0.82rem; font-weight: 600; }
.gh-login-form .input-group-merge { border: 1px solid #d6dbe3; border-radius: 10px; overflow: hidden; background: #fff; }
.gh-login-form .input-group-merge:focus-within { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-login-form .input-group-merge .input-group-text,
.gh-login-form .input-group-merge .form-control,
.gh-login-form .input-group-merge .btn { height: 46px; border: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none !important; }
.gh-login-form .input-group-merge .input-group-text { padding: 0 4px 0 14px; color: #94a3b8; }
.gh-login-form .input-group-merge .form-control { padding-left: 10px; color: var(--gh-text); font-size: 0.95rem; }
.gh-login-form .input-group-merge .btn { color: #94a3b8; }
/* Remember me above a full-width Login button. */
.gh-login-form .login-form .card-body > .text-right { order: 1; margin: 0 0 18px; text-align: left !important; }
.gh-login-form .login-form .card-body > .text-right label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-left: 0; color: var(--gh-muted); font-size: 0.88rem; cursor: pointer; }
.gh-login-form .login-form .card-body > .text-right .form-check-input { position: static; width: 16px; height: 16px; margin: 0; accent-color: var(--gh-primary); }
.gh-login-form .login-form .card-body > .float-left { order: 2; float: none !important; }
.gh-login-form #login { width: 100%; min-height: 46px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; }
.gh-login-form .card-footer { margin-top: 24px; padding: 18px 0 0 !important; border-top: 1px solid var(--gh-border); background: transparent; color: var(--gh-muted); text-align: center; }
.gh-login-form .card-footer small, .gh-login-form .card-footer a { font-size: 0.9rem; }
.gh-login-form .card-footer a { color: var(--gh-primary); }
/* Image captcha, when WHMCS asks for it. */
.gh-login-form .login-form .card-body > .row { display: block; margin: 0 0 18px !important; text-align: left !important; }
.gh-login-form .login-form .card-body > .row > [class*="col-"] { max-width: none; margin: 0 !important; padding: 0 !important; }
.gh-login-form #default-captcha-domainchecker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; text-align: left !important; }
.gh-login-form #default-captcha-domainchecker p { flex: 0 0 100%; margin: 0; color: var(--gh-muted); font-size: 0.82rem; line-height: 1.45; }
.gh-login-form #default-captcha-domainchecker > [class*="col-"] { flex: 1 1 0; width: auto; max-width: none; padding: 0 !important; }
.gh-login-form #default-captcha-domainchecker > .captchaimage { flex: 0 0 auto; }
.gh-login-form .captchaimage img { display: block; height: 42px; width: auto; border: 1px solid #d6dbe3; border-radius: 10px; }
.gh-login-form #inputCaptcha { width: 100% !important; height: 42px; margin: 0 !important; border: 1px solid #d6dbe3; border-radius: 10px; }
@media (max-width: 991.98px) {
  .gh-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .gh-login-brand { padding: 16px; }
  .gh-login-logo img { width: 150px; }
  .gh-login-pitch { display: none; }
  .gh-login-main { justify-content: flex-start; padding: 40px 16px 32px; }
  .gh-login-back { position: static; order: 3; margin-top: 14px; }
}

/* Register page: 3 steps (script in clientregister.tpl). The brand panel stays in view while the form scrolls. */
.gh-login.is-register .gh-login-brand { display: block; padding: 0; }
.gh-login-brand-in { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; box-sizing: border-box; min-height: 100vh; min-height: 100dvh; padding: 40px 56px; }
.gh-reg .bootstrap-switch { border-color: #d6dbe3; border-radius: 999px; }
.gh-reg .bootstrap-switch .bootstrap-switch-handle-off { background: #f1f5f9; color: #475569; font-weight: 700; }
.gh-reg .bootstrap-switch .bootstrap-switch-handle-on { font-weight: 700; }
.gh-login.is-register .gh-login-main { justify-content: flex-start; padding-top: 80px; }
.gh-reg { max-width: 560px; }
.gh-reg-head h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.gh-reg-head p { margin: 0 0 24px; color: var(--gh-muted); font-size: 0.92rem; }
.gh-reg-head a { color: var(--gh-primary); font-weight: 700; }
.gh-reg-steps { display: flex; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.gh-reg-steps li { flex: 1 1 0; min-width: 0; }
.gh-reg-steps button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 0 10px; border: 0; border-bottom: 3px solid var(--gh-border); background: none; color: #94a3b8; font-size: 0.86rem; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.gh-reg-steps button:disabled { cursor: default; }
.gh-reg-steps button span { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border: 1px solid #d6dbe3; border-radius: 50%; font-size: 0.76rem; }
.gh-reg-steps .is-on button { border-bottom-color: var(--gh-primary); color: var(--gh-text); }
.gh-reg-steps .is-on button span { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-reg-steps .is-done button { border-bottom-color: #f1b7b0; color: var(--gh-text); }
.gh-reg-steps .is-done button span { border-color: #f1b7b0; color: var(--gh-primary); }
.gh-reg #registration .card { margin: 0 0 22px !important; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.gh-reg #registration .card-body { padding: 0 !important; }
.gh-reg #registration .card-title { margin: 0 0 14px; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-reg #registration .card-title small { color: var(--gh-muted); font-size: 0.78rem; font-style: normal; font-weight: 500; }
.gh-reg #registration .row { margin-left: -8px !important; margin-right: -8px !important; }
.gh-reg #registration .row > [class*="col"] { padding-left: 8px !important; padding-right: 8px !important; }
.gh-reg #registration .form-group { margin-bottom: 14px; }
.gh-reg #registration .field,
.gh-reg #registration select.form-control,
.gh-reg #registration .form-control { height: 46px; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: none; color: var(--gh-text); font-size: 0.93rem; }
.gh-reg #registration .field:focus, .gh-reg #registration .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-reg #registration .prepend-icon .field-icon { top: 0; height: 46px; line-height: 46px; color: #94a3b8; }
.gh-reg #registration .iti, .gh-reg #registration .intl-tel-input { display: block; width: 100%; }
.gh-reg #registration .generate-password { min-height: 40px; border-radius: 10px; font-weight: 600; }
.gh-reg #registration .password-strength-meter .progress { height: 6px; margin-top: 8px; border-radius: 999px; }
.gh-reg #registration .password-strength-meter p { margin: 6px 0 0; }
.gh-reg #registration .card p { color: var(--gh-muted); font-size: 0.86rem; line-height: 1.5; }
.gh-reg #registration p.text-center { text-align: left !important; }
.gh-reg #registration .form-check { display: inline-flex; align-items: flex-start; gap: 8px; padding-left: 0; color: var(--gh-muted); font-size: 0.9rem; }
.gh-reg #registration .form-check-input { position: static; flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--gh-primary); }
.gh-reg #registration .form-check a { color: var(--gh-primary); font-weight: 700; }
.gh-reg #registration .gh-reg-step > .row.justify-content-center { display: block; margin: 0 0 14px !important; text-align: left !important; }
.gh-reg #registration .gh-reg-step > .row.justify-content-center > [class*="col-"] { max-width: none; margin: 0 !important; padding: 0 !important; }
.gh-reg #registration #default-captcha-domainchecker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; text-align: left !important; }
.gh-reg #registration #default-captcha-domainchecker p { flex: 0 0 100%; margin: 0; color: var(--gh-muted); font-size: 0.82rem; line-height: 1.45; }
.gh-reg #registration #default-captcha-domainchecker > [class*="col-"] { flex: 1 1 0; width: auto; max-width: none; padding: 0 !important; }
.gh-reg #registration #default-captcha-domainchecker > .captchaimage { flex: 0 0 auto; }
.gh-reg .captchaimage img { display: block; height: 42px; width: auto; border: 1px solid #d6dbe3; border-radius: 10px; }
.gh-reg #inputCaptcha { width: 100% !important; height: 42px; margin: 0 !important; border: 1px solid #d6dbe3; border-radius: 10px; }
.gh-reg-nav { display: flex; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--gh-border); }
.gh-reg-nav .btn { min-height: 46px; padding: 0 22px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; }
.gh-reg-nav .gh-reg-next, .gh-reg-nav input[type="submit"] { flex: 1; }
.gh-reg-nav .gh-reg-back { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }
.gh-reg-nav [hidden] { display: none !important; }
@media (max-width: 991.98px) {
  .gh-login-brand-in { position: static; min-height: 0; padding: 16px; }
  .gh-login.is-register .gh-login-main { padding-top: 32px; }
}
@media (max-width: 575.98px) {
  .gh-reg-steps button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.76rem; white-space: normal; }
}
.gh-reg #registration .gh-reg-label { display: block; margin: 0 0 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-reg #registration .gh-reg-hint { margin: -8px 0 14px; color: var(--gh-muted); font-size: 0.84rem; }
.gh-reg #registration .card-body { overflow: visible; }
/* Generate Password window (register page): compact, centred over the form side on wide screens. */
html.gh-page-auth #modalGeneratePassword .modal-dialog { max-width: 420px; margin: 96px auto 24px; }
@media (min-width: 992px) {
  html.gh-page-auth #modalGeneratePassword .modal-dialog { margin-left: calc(max(360px, 42vw) + (100vw - max(360px, 42vw) - 420px) / 2); margin-right: 0; }
}
html.gh-page-auth #modalGeneratePassword .modal-content { border: 1px solid var(--gh-border); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgb(15 23 42 / 0.22); }
html.gh-page-auth #modalGeneratePassword .modal-header { align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--gh-border); background: #fff !important; color: var(--gh-text) !important; }
html.gh-page-auth #modalGeneratePassword .modal-title { color: var(--gh-text); font-size: 1.05rem; font-weight: 800; }
html.gh-page-auth #modalGeneratePassword .modal-header .close { margin: -6px -6px -6px auto; padding: 6px; color: #64748b; opacity: 1; text-shadow: none; }
html.gh-page-auth #modalGeneratePassword .modal-body { padding: 16px 18px 6px; }
html.gh-page-auth #modalGeneratePassword .form-group.row { display: block; margin: 0 0 12px; }
html.gh-page-auth #modalGeneratePassword .form-group.row > [class*="col-"],
html.gh-page-auth #modalGeneratePassword .modal-body > .row > [class*="col-"] { max-width: none; margin: 0; padding: 0; }
html.gh-page-auth #modalGeneratePassword .modal-body > .row { margin: 0 0 10px; }
html.gh-page-auth #modalGeneratePassword .col-form-label { padding: 0 0 6px; color: var(--gh-text); font-size: 0.84rem; font-weight: 700; }
html.gh-page-auth #modalGeneratePassword .form-control { height: 42px; border: 1px solid #d6dbe3; border-radius: 10px; font-size: 0.92rem; }
html.gh-page-auth #modalGeneratePassword #inputGeneratePasswordLength { width: 100px; }
html.gh-page-auth #modalGeneratePassword #inputGeneratePasswordOutput { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
html.gh-page-auth #modalGeneratePassword .modal-body .btn-sm { border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; font-size: 0.8rem; font-weight: 600; }
html.gh-page-auth #modalGeneratePassword .modal-footer { padding: 12px 18px; border-top: 1px solid var(--gh-border); background: #f8fafc; }
html.gh-page-auth #modalGeneratePassword .modal-footer .btn { min-height: 38px; border-radius: 9px; font-size: 0.86rem; font-weight: 700; }
html.gh-page-auth #modalGeneratePassword .modal-footer .btn-default { border: 1px solid #d6dbe3; background: #fff; }
html.gh-page-auth #modalGeneratePassword .modal-body > .row > [class*="col-"] { flex: none; width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
html.gh-page-auth #modalGeneratePassword .modal-body > .row .btn { margin: 0; }
@media (max-width: 575.98px) {
  html.gh-page-auth #modalGeneratePassword .modal-dialog { margin: 72px 16px 16px; }
}
/* Register page: currency choice as two cards (clientregister.tpl). */
.gh-reg .gh-cur { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 14px; }
.gh-reg .gh-cur-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1px solid #d6dbe3; border-radius: 12px; background: #fff; color: var(--gh-text); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.gh-reg .gh-cur-opt:hover { border-color: #b8c0cc; }
.gh-reg .gh-cur-opt:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgb(201 48 31 / 0.18); }
.gh-reg .gh-cur-opt.is-on { border-color: var(--gh-primary); background: #fffafa; box-shadow: 0 0 0 1px var(--gh-primary); }
.gh-reg .gh-cur-ico { display: grid; flex: none; place-items: center; width: 30px; height: 20px; color: #2563eb; font-size: 1.15rem; }
.gh-reg .gh-cur-ico svg { display: block; border-radius: 2px; }
.gh-reg .gh-cur-txt { flex: 1; min-width: 0; line-height: 1.25; }
.gh-reg .gh-cur-txt b { display: block; font-size: 0.92rem; font-weight: 800; }
.gh-reg .gh-cur-txt small { color: var(--gh-muted); font-size: 0.8rem; }
.gh-reg .gh-cur-dot { flex: none; width: 18px; height: 18px; border: 1.5px solid #c4cbd5; border-radius: 50%; }
.gh-reg .gh-cur-opt.is-on .gh-cur-dot { border: 5px solid var(--gh-primary); }
.gh-reg #registration .gh-cur-col { flex: 0 0 100%; max-width: 100%; }
/* Compact captcha on the login and register pages (genhost_theme.php adds .gh-captcha): one slim row,
   the instruction is kept for screen readers and shown as the box's placeholder. */
html.gh-page-auth #default-captcha-domainchecker.gh-captcha { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 8px !important; margin: 0 !important; padding: 0 !important; }
html.gh-page-auth #default-captcha-domainchecker.gh-captcha p { position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.gh-page-auth #default-captcha-domainchecker.gh-captcha > [class*="col-"] { flex: 0 0 auto !important; width: auto !important; max-width: none !important; padding: 0 !important; }
html.gh-page-auth #default-captcha-domainchecker.gh-captcha .captchaimage img { display: block; height: 32px !important; width: auto; border: 1px solid #d6dbe3; border-radius: 7px; }
html.gh-page-auth #default-captcha-domainchecker.gh-captcha #inputCaptcha { width: 120px !important; height: 34px !important; padding: 0 10px; border: 1px solid #d6dbe3; border-radius: 7px; font-size: 0.86rem; letter-spacing: 0.08em; }
html.gh-page-auth #default-captcha-domainchecker.gh-captcha #inputCaptcha::placeholder { letter-spacing: 0; text-transform: none; }
html.gh-page-auth .login-form .card-body > .row.justify-content-center,
html.gh-page-auth #registration .gh-reg-step > .row.justify-content-center { margin-bottom: 16px !important; }
/* Top bar: Order hosting, Return to admin and Logout (genhost_theme.php, section 5). */
header.header .gh-top-order { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
header.header .gh-top-order { background: var(--gh-primary); color: #fff; }
header.header .gh-top-order:hover { background: var(--gh-primary-hover); color: #fff; }
header.header .gh-top-logout:hover { border-color: #f4c7c0; background: var(--gh-primary-soft); color: var(--gh-primary); }
@media (max-width: 1199.98px) {
  header.header .gh-top-order { height: 40px; padding: 0 11px; }
}
@media (max-width: 767.98px) {
  header.header .gh-top-order span { display: none; }
  header.header .gh-top-order { width: 40px; padding: 0; justify-content: center; }
  header.header .gh-logout-item { display: none; }
}
header.header .gh-top-order, header.header .gh-top-order:hover, header.header .gh-top-order i, header.header .gh-top-order span { color: #fff !important; }
/* WHMCS's "Return to admin area" side tab: the top bar has the button. */
html.gh-appbar .btn-return-to-admin,
html.gh-appbar a[href*="returntoadmin"]:not(.gh-top-admin) { display: none !important; }
/* Sidebar collapse / expand button in the brand red. */
@media (min-width: 1200px) {
  .gh-collapse { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; box-shadow: 0 4px 12px rgb(201 48 31 / 0.28); }
  .gh-collapse:hover, .gh-collapse:focus-visible { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); color: #fff; }
}

/* Address order Country, State, City, Postcode (register and checkout; genhost_theme.php). */
@media (min-width: 576px) {
  .gh-col-full { flex: 0 0 100% !important; max-width: 100% !important; }
  .gh-col-third { flex: 0 0 33.3333% !important; max-width: 33.3333% !important; }
}
@media (max-width: 575.98px) { .gh-col-full, .gh-col-third { flex: 0 0 100% !important; max-width: 100% !important; } }
/* Top bar for visitors: Log in (outline) and Create account (navy); icons only on phones. */
header.header .gh-top-auth { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
header.header .gh-top-login { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text) !important; }
header.header .gh-top-login:hover { border-color: #b8c0cc; background: #f8fafc; }
header.header .gh-top-login i { color: #64748b; }
header.header .gh-top-signup { border: 1px solid var(--gh-navy); background: var(--gh-navy); color: #fff !important; }
header.header .gh-top-signup:hover { border-color: #0f172a; background: #0f172a; }
header.header .gh-top-signup i { color: #fff; }
@media (max-width: 1199.98px) { header.header .gh-top-auth { height: 40px; padding: 0 11px; } }
@media (max-width: 767.98px) {
  header.header .gh-top-auth span { display: none; }
  header.header .gh-top-auth { width: 40px; padding: 0; justify-content: center; }
}
/* Sidebar actions with two buttons (visitors: Live chat and WhatsApp). */
html:not(.gh-collapsed) .gh-side-actions.is-two .gh-side-act { flex: 1 1 0; width: auto; }

/* ==========================================================================
   Account pages (html.gh-page-acct): tabs above, one centred column (max 980px),
   cards and forms in the client area style. Tabs: includes/hooks/genhost_theme.php.
   ========================================================================== */
html.gh-page-acct #main-body .primary-content.gh-acct-full { flex: 0 0 100%; max-width: 980px; margin: 0 auto; }
html.gh-page-acct #main-body .primary-content { min-width: 0; }
.gh-acct-tabs-bar { display: flex; align-items: center; gap: 4px; margin: 0 0 20px; padding: 6px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.gh-acct-tabs-bar::-webkit-scrollbar { display: none; }
.gh-acct-tab { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 9px; color: var(--gh-muted); font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.gh-acct-tab i { color: #94a3b8; font-size: 0.85rem; }
.gh-acct-tab:hover { background: #f8fafc; color: var(--gh-text); }
.gh-acct-tab.is-on { background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-acct-tab.is-on i { color: var(--gh-primary); }
.gh-acct-sep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--gh-border); }

html.gh-page-acct .primary-content > .card,
html.gh-page-acct .primary-content > form > .card,
html.gh-page-acct .primary-content .card:not(.card-sidebar) { margin-bottom: 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; box-shadow: none; overflow: hidden; }
html.gh-page-acct .primary-content .card-body { padding: 22px 24px; }
html.gh-page-acct .primary-content .card-title { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; color: var(--gh-text); font-size: 1.05rem; font-weight: 800; }
html.gh-page-acct .primary-content .card-footer { padding: 14px 24px; border-top: 1px solid var(--gh-border); background: #f8fafc; }
html.gh-page-acct .primary-content > p { color: var(--gh-muted); font-size: 0.9rem; }
html.gh-page-acct .primary-content .form-group { margin-bottom: 16px; }
html.gh-page-acct .primary-content label,
html.gh-page-acct .primary-content .col-form-label { padding-top: 0; padding-bottom: 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
html.gh-page-acct .primary-content .form-group.row > .col-form-label { padding-top: 11px; }
html.gh-page-acct .primary-content .form-control,
html.gh-page-acct .primary-content .custom-select,
html.gh-page-acct .primary-content select.form-control { min-height: 44px; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: none; color: var(--gh-text); font-size: 0.93rem; }
html.gh-page-acct .primary-content textarea.form-control { min-height: 96px; }
html.gh-page-acct .primary-content .form-control:focus,
html.gh-page-acct .primary-content .custom-select:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
html.gh-page-acct .primary-content .form-control[disabled],
html.gh-page-acct .primary-content .form-control[readonly] { background: #f8fafc; color: var(--gh-muted); }
html.gh-page-acct .primary-content .iti, html.gh-page-acct .primary-content .intl-tel-input { display: block; width: 100%; }
html.gh-page-acct .primary-content .btn { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; }
html.gh-page-acct .primary-content .btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }
html.gh-page-acct .primary-content .btn-primary,
html.gh-page-acct .primary-content .btn-success { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
html.gh-page-acct .primary-content .btn-primary:hover,
html.gh-page-acct .primary-content .btn-success:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); }
html.gh-page-acct .primary-content .btn-default,
html.gh-page-acct .primary-content .btn-info { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }
html.gh-page-acct .primary-content .btn-default:hover,
html.gh-page-acct .primary-content .btn-info:hover { border-color: #b8c0cc; background: #f8fafc; color: var(--gh-text); }
html.gh-page-acct .primary-content .btn-danger { border-color: #f8d4d4; background: #fff; color: var(--gh-danger); }
html.gh-page-acct .primary-content .btn-danger:hover { background: #fef4f4; color: var(--gh-danger); }
html.gh-page-acct .primary-content .form-check-input { accent-color: var(--gh-primary); }
html.gh-page-acct .primary-content .form-check-inline { margin-right: 14px; }
html.gh-page-acct .primary-content .form-check-inline label,
html.gh-page-acct .primary-content .form-check label { font-weight: 600; }
html.gh-page-acct .primary-content .label { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
html.gh-page-acct .primary-content .label-success { background: #e8f7ee; color: #15803d; }
html.gh-page-acct .primary-content .label-default { background: #f1f5f9; color: #475569; }
html.gh-page-acct .primary-content .text-danger { color: var(--gh-danger) !important; }
/* Tables (User Management, Email History) */
html.gh-page-acct .primary-content .table { margin: 0; font-size: 0.88rem; }
html.gh-page-acct .primary-content .table thead th { padding: 11px 14px; border-top: 0; border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
html.gh-page-acct .primary-content .table td { padding: 12px 14px; border-top: 1px solid #eef1f5; color: var(--gh-text); vertical-align: middle; }
html.gh-page-acct .primary-content .table-container { border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow-x: auto; }
html.gh-page-acct .dataTables_wrapper .dataTables_filter,
html.gh-page-acct .dataTables_wrapper .dataTables_length,
html.gh-page-acct .dataTables_wrapper .dataTables_info { padding: 12px 16px; color: var(--gh-muted); font-size: 0.82rem; }
html.gh-page-acct .dataTables_wrapper .dataTables_filter input,
html.gh-page-acct .dataTables_wrapper .dataTables_length select { height: 36px; border: 1px solid #d6dbe3; border-radius: 8px; }
html.gh-page-acct .dataTables_wrapper .dataTables_paginate { padding: 10px 16px; }
@media (max-width: 767.98px) {
  html.gh-page-acct .primary-content .card-body { padding: 18px 16px; }
  .gh-acct-tabs-bar { margin-bottom: 16px; }
}

/* ==========================================================================
   Alerts everywhere: soft tint with an icon (like the dashboard alerts).
   ========================================================================== */
.alert { position: relative; padding: 12px 16px 12px 44px; border: 1px solid; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.alert::before { position: absolute; top: 12px; left: 16px; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 0.95rem; line-height: 1.5; }
.alert-success { border-color: #cdebd8; background: #f3fbf6; color: #14532d; }
.alert-success::before { content: "\f058"; color: #15803d; }
.alert-info { border-color: #d3e2fb; background: #f2f7ff; color: #1e3a8a; }
.alert-info::before { content: "\f05a"; color: #2563eb; }
.alert-warning { border-color: #f6dfb0; background: #fffaf0; color: #78350f; }
.alert-warning::before { content: "\f071"; color: #d97706; }
.alert-danger { border-color: #f8d4d4; background: #fef4f4; color: #7f1d1d; }
.alert-danger::before { content: "\f06a"; color: #dc2626; }
.alert a:not(.btn) { color: inherit; font-weight: 700; text-decoration: underline; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert h2, .alert .alert-heading { margin: 0 0 4px; color: inherit; font-size: 1rem; font-weight: 800; }
.alert.text-center { text-align: left !important; }
.alert .close { top: 0; right: 0; padding: 10px 14px; opacity: .6; }
/* Boxes that only borrow the alert classes keep their own look. */
.alert.checkout-security-msg::before, #totalDueToday.alert::before, .alert.gh-no-icon::before { content: none; }
#totalDueToday.alert, .alert.gh-no-icon { padding-left: 18px; }

/* ==========================================================================
   Notifications (bell) drop-down.
   ========================================================================== */
.popover-user-notifications { min-width: 320px; max-width: 360px; padding: 0; overflow: hidden; }
.popover-user-notifications .popover-body { padding: 6px; }
.popover-user-notifications .arrow { display: none; }
.popover-user-notifications .client-alerts { margin: 0; padding: 0; list-style: none; }
.popover-user-notifications .client-alerts li + li { border-top: 1px solid #f0f2f6; }
.popover-user-notifications .client-alerts li a { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; color: var(--gh-text); font-size: 0.86rem; line-height: 1.45; text-decoration: none; }
.popover-user-notifications .client-alerts li a:hover { background: #f8fafc; }
.popover-user-notifications .client-alerts li a > i { display: grid; flex: none; place-items: center; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: #f2f7ff; color: #2563eb; font-size: 0.85rem; }
.popover-user-notifications .client-alerts li a > i.fa-exclamation-circle { background: #fef4f4; color: #dc2626; }
.popover-user-notifications .client-alerts li a > i.fa-exclamation-triangle { background: #fffaf0; color: #d97706; }
.popover-user-notifications .client-alerts li a > i.fa-check-circle { background: #f3fbf6; color: #15803d; }
.popover-user-notifications .client-alerts .message { flex: 1; min-width: 0; padding-top: 5px; }
.popover-user-notifications .client-alerts li.none { padding: 18px 12px; color: var(--gh-muted); font-size: 0.86rem; text-align: center; }

/* Account tabs: text only so all eight fit one row; they wrap on narrower screens, scroll on phones. */
.gh-acct-tab i { display: none; }
@media (min-width: 768px) { .gh-acct-tabs-bar { flex-wrap: wrap; row-gap: 4px; overflow: visible; } }
/* Notifications: no extra gap before the message (Twenty-One indents it for its own icon). */
.popover-user-notifications .client-alerts .message { margin: 0 !important; padding-left: 0 !important; }
.popover-user-notifications .client-alerts li a { padding-left: 10px !important; }
.popover-user-notifications .client-alerts li a > i { position: static !important; }
.gh-acct-tab { padding: 0 10px; font-size: 0.84rem; }
.gh-acct-sep { margin: 0 3px; }
html.gh-page-acct #main-body .primary-content.gh-acct-full { max-width: 1060px; }
/* Footer: no language / currency button (the store has its own currency switch). */
footer.footer [data-target="#modalChooseLanguage"], footer.footer .gh-footer-lang { display: none !important; }

/* ==========================================================================
   Invoice (viewinvoice.tpl): one centred white document, max 880px, prints cleanly.
   ========================================================================== */
body.gh-vi-body { margin: 0; padding: 32px 16px 48px !important; background: var(--gh-bg-alt); color: var(--gh-text); font-family: var(--gh-font); }
.gh-vi { max-width: 880px; margin: 0 auto; }
.gh-vi-card { padding: 32px 36px; border: 1px solid var(--gh-border); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px rgb(15 23 42 / 0.06); }
.gh-vi h2 { margin: 0 0 8px; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.gh-vi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--gh-border); }
.gh-vi-logo { display: block; width: auto; max-width: 220px; height: auto; max-height: 56px; }
.gh-vi-company { font-size: 1.3rem; font-weight: 800; }
.gh-vi-title { text-align: right; }
.gh-vi-title h1 { margin: 0; color: var(--gh-text); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.gh-vi-num { margin: 2px 0 10px; color: var(--gh-muted); font-size: 0.95rem; font-weight: 700; }
.gh-vi-status { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gh-vi-status.is-paid { background: #e8f7ee; color: #15803d; }
.gh-vi-status.is-unpaid, .gh-vi-status.is-collections { background: #fdecec; color: #b91c1c; }
.gh-vi-status.is-draft { background: #f1f5f9; color: #475569; }
.gh-vi-status.is-refunded { background: #f2f7ff; color: #1e3a8a; }
.gh-vi-status.is-cancelled { background: #f1f5f9; color: #64748b; }

.gh-vi-pay { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px 28px; margin: 22px 0 0; padding: 16px 18px; border: 1px solid #f4c7c0; border-radius: 12px; background: #fffafa; }
.gh-vi-pay span { display: block; color: var(--gh-muted); font-size: 0.78rem; font-weight: 700; }
.gh-vi-pay b { display: block; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-vi-pay-total b { font-size: 1.25rem; }
.gh-vi-pay-btn { justify-self: end; text-align: right; }
.gh-vi-pay-btn form { margin: 0; }
.gh-vi-pay-btn input[type="submit"], .gh-vi-pay-btn input[type="button"], .gh-vi-pay-btn button, .gh-vi-pay-btn .btn { min-height: 44px; padding: 0 22px; border: 1px solid var(--gh-primary) !important; border-radius: 10px !important; background: var(--gh-primary) !important; color: #fff !important; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.gh-vi-pay-btn input[type="submit"]:hover, .gh-vi-pay-btn button:hover, .gh-vi-pay-btn .btn:hover { background: var(--gh-primary-hover) !important; }

.gh-vi .card { margin: 18px 0 0; border: 1px solid var(--gh-border); border-radius: 12px; overflow: hidden; }
.gh-vi .card-header { padding: 10px 16px; font-size: 0.9rem; font-weight: 800; }
.gh-vi .card-header .card-title, .gh-vi .card-header h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.gh-vi .card-body { padding: 14px 16px; font-size: 0.9rem; }

.gh-vi-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--gh-border); }
.gh-vi-party address { margin: 0; color: #334155; font-size: 0.9rem; line-height: 1.6; }
.gh-vi-party.is-right { text-align: right; }
.gh-vi-taxids { margin-top: 8px; color: #334155; font-size: 0.86rem; line-height: 1.6; }

.gh-vi-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 18px 0; border-bottom: 1px solid var(--gh-border); }
.gh-vi-meta > div > span { display: block; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-vi-meta > div > b { display: block; margin-top: 3px; font-size: 0.92rem; }
.gh-vi-method { margin-left: auto; text-align: right; }
.gh-vi-method form { margin: 4px 0 0; }
.gh-vi-method .custom-select { min-width: 220px; height: 38px; border: 1px solid #d6dbe3; border-radius: 9px; font-size: 0.88rem; }

.gh-vi-credit { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #cdebd8; border-radius: 12px; background: #f3fbf6; font-size: 0.88rem; }
.gh-vi-credit p { margin: 0 0 10px; }
.gh-vi-credit-row { display: flex; gap: 8px; max-width: 360px; }
.gh-vi-credit-row .form-control { height: 40px; border: 1px solid #d6dbe3; border-radius: 9px; }
.gh-vi-credit-row .btn { flex: none; border-color: var(--gh-primary); border-radius: 9px; background: var(--gh-primary); color: #fff; font-weight: 700; }

.gh-vi-items, .gh-vi-tx { padding-top: 22px; }
.gh-vi-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.gh-vi-table th { padding: 10px 12px; border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
.gh-vi-table th:first-child { border-radius: 8px 0 0 8px; }
.gh-vi-table th:last-child { border-radius: 0 8px 8px 0; }
.gh-vi-table td { padding: 12px; border-bottom: 1px solid #eef1f5; color: var(--gh-text); vertical-align: top; }
.gh-vi-desc { line-height: 1.5; white-space: pre-line; }
.gh-vi-c-type { width: 18%; color: #475569; }
.gh-vi-c-sac { width: 12%; color: #475569; font-variant-numeric: tabular-nums; }
.gh-vi-c-amt { width: 18%; text-align: right !important; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-vi-table tfoot td { border-bottom: 0; font-weight: 800; }
.gh-vi-table tfoot td:first-child { text-align: right; color: var(--gh-muted); }
.gh-vi-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; word-break: break-all; }
.gh-vi-none { color: var(--gh-muted); text-align: center; }

.gh-vi-totals { width: 100%; max-width: 380px; margin: 14px 0 0 auto; }
.gh-vi-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 12px; font-size: 0.9rem; }
.gh-vi-totals dt { color: var(--gh-muted); font-weight: 600; }
.gh-vi-totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.gh-vi-totals .is-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--gh-border); }
.gh-vi-totals .is-total dt, .gh-vi-totals .is-total dd { color: var(--gh-text); font-size: 1.1rem; font-weight: 800; }
.gh-vi-totals .is-inr { border-radius: 9px; background: #fffafa; }
.gh-vi-totals .is-inr dt { color: var(--gh-text); font-weight: 700; }
.gh-vi-totals .is-inr dd { color: var(--gh-primary); font-weight: 800; }
.gh-vi-rate { display: flex; align-items: center; gap: 10px; max-width: 380px; margin: 10px 0 0 auto; padding: 10px 12px; border: 1px solid var(--gh-border); border-radius: 10px; color: var(--gh-muted); font-size: 0.82rem; }
.gh-vi-rate i { color: var(--gh-primary); }
.gh-vi-rate b { color: var(--gh-text); }
.gh-vi-note { margin: 12px 0 0; color: var(--gh-muted); font-size: 0.8rem; }
.gh-vi-legal { margin: 24px 0 0; padding-top: 16px; border-top: 1px dashed var(--gh-border); color: var(--gh-muted); font-size: 0.82rem; text-align: center; }

.gh-vi-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 0; }
.gh-vi-actions > div { display: flex; gap: 8px; }
.gh-vi-actions .btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid #d6dbe3; border-radius: 10px; background: #fff; color: var(--gh-text); font-size: 0.88rem; font-weight: 700; }
.gh-vi-actions .btn:hover { border-color: #b8c0cc; background: #f8fafc; }
.gh-vi-back { display: inline-flex; align-items: center; gap: 7px; color: var(--gh-muted); font-size: 0.88rem; font-weight: 700; }
.gh-vi-back:hover { color: var(--gh-primary); text-decoration: none; }

@media (max-width: 767.98px) {
  body.gh-vi-body { padding: 16px 12px 32px !important; }
  .gh-vi-card { padding: 22px 18px; }
  .gh-vi-head { flex-direction: column; }
  .gh-vi-title { text-align: left; }
  .gh-vi-pay { grid-template-columns: 1fr 1fr; }
  .gh-vi-pay-btn { grid-column: 1 / -1; justify-self: stretch; }
  .gh-vi-pay-btn input[type="submit"], .gh-vi-pay-btn button, .gh-vi-pay-btn .btn { width: 100%; }
  .gh-vi-parties { grid-template-columns: 1fr; }
  .gh-vi-party.is-right, .gh-vi-method { text-align: left; margin-left: 0; }
  .gh-vi-actions { flex-direction: column-reverse; align-items: stretch; }
  .gh-vi-actions > div .btn { flex: 1; justify-content: center; }
}
@media print {
  body.gh-vi-body { padding: 0 !important; background: #fff; }
  .gh-vi { max-width: none; }
  .gh-vi-card { padding: 0; border: 0; box-shadow: none; }
  .gh-vi-totals .is-inr, .gh-vi-pay { background: #fff; }
  .gh-vi-table th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Invoice message panels (includes/panel.tpl): soft tint. */
.gh-vi .row.w-100.mx-auto { margin: 18px 0 0 !important; }
.gh-vi .row.w-100 > .card { margin: 0; }
.gh-vi .card > .card-title { margin: 0; padding: 10px 16px !important; font-size: 0.9rem; }
.gh-vi .card > .card-title.bg-success { background: #f3fbf6 !important; color: #14532d !important; }
.gh-vi .card > .card-title.bg-info { background: #f2f7ff !important; color: #1e3a8a !important; }
.gh-vi .card > .card-title.bg-danger { background: #fef4f4 !important; color: #7f1d1d !important; }
.gh-vi .card > .card-text { margin: 0 !important; padding: 12px 16px; color: #334155; font-size: 0.9rem; }
.gh-vi-body #fullpage-overlay.w-hidden { display: none; }
@media (max-width: 575.98px) { .gh-vi-items .gh-vi-table { min-width: 560px; } .gh-vi-tx .gh-vi-table { min-width: 520px; } }

/* ==========================================================================
   Domain management (clientareadomaindetails.tpl + the domain tabs on every domain page):
   information card (left / right), then the manage options as tabs above one panel.
   ========================================================================== */
html.gh-page-dommgmt #main-body .primary-content.gh-dm-full { flex: 0 0 100%; max-width: 1100px; margin: 0 auto; }
.gh-dm-invoice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gh-dm-invoice .btn { flex: none; border-radius: 9px; font-weight: 700; }
.gh-dm .btn, .gh-dm-pane .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; }
.gh-dm .btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.82rem; }
.gh-dm .btn-primary, .gh-dm .btn-success { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-dm .btn-primary:hover, .gh-dm .btn-success:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); }
.gh-dm .btn-default { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }
.gh-dm .btn-default:hover { border-color: #b8c0cc; background: #f8fafc; }
.gh-dm .btn-danger { border: 1px solid #f8d4d4; background: #fff; color: var(--gh-danger); }
.gh-dm .btn-danger:hover { background: #fef4f4; color: var(--gh-danger); }

.gh-dm-info { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 0 0 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow: hidden; }
.gh-dm-left { padding: 22px 24px; }
.gh-dm-right { padding: 18px 24px; border-left: 1px solid #eef1f5; background: #fbfcfe; }
.gh-dm-name { display: flex; align-items: flex-start; gap: 14px; }
.gh-dm-ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #ecfdf3; color: #15803d; font-size: 1.25rem; }
.gh-dm-name h1 { margin: 0 0 6px; color: var(--gh-text); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.gh-dm-status { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.74rem; font-weight: 800; }
.gh-dm-status.is-active { background: #e8f7ee; color: #15803d; }
.gh-dm-status.is-pending, .gh-dm-status.is-pending-transfer, .gh-dm-status.is-pending-registration { background: #fdf3e2; color: #b45309; }
.gh-dm-status.is-expired, .gh-dm-status.is-cancelled, .gh-dm-status.is-fraud, .gh-dm-status.is-grace, .gh-dm-status.is-redemption { background: #fdecec; color: #b91c1c; }
.gh-dm-visit { color: var(--gh-muted); font-size: 0.82rem; font-weight: 700; }
.gh-dm-visit i { font-size: 0.7rem; }
.gh-dm-visit:hover { color: var(--gh-primary); text-decoration: none; }
.gh-dm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 20px 0 0; }
.gh-dm dt { margin: 0 0 3px; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-dm dd { margin: 0; color: var(--gh-text); font-size: 0.95rem; font-weight: 700; }
.gh-dm dd small { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-dm-renew { margin-top: 20px; }
.gh-dm-list { margin: 0; padding: 0; list-style: none; }
.gh-dm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 0.88rem; }
.gh-dm-list li + li { border-top: 1px solid #eef1f5; }
.gh-dm-list li > span:first-child { display: inline-flex; flex: none; align-items: center; gap: 9px; color: var(--gh-muted); font-weight: 700; }
.gh-dm-list li > span:first-child i { width: 16px; color: #94a3b8; text-align: center; }
.gh-dm-list li > :last-child { min-width: 0; text-align: right; }
.gh-dm-list li.is-ns { align-items: flex-start; }
.gh-dm-ns { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--gh-text); font-weight: 600; overflow-wrap: anywhere; }
.gh-dm-ns b { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
.gh-dm-ssl { display: block; color: var(--gh-muted); font-size: 0.76rem; }
.gh-dm-flag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; text-decoration: none !important; }
.gh-dm-flag.is-on { background: #e8f7ee; color: #15803d; }
.gh-dm-flag.is-off { background: #fdecec; color: #b91c1c; }
a.gh-dm-flag:hover { box-shadow: 0 0 0 2px rgb(15 23 42 / 0.06); }
.gh-dm-module { margin: 0 0 18px; }

.gh-dm-manage { border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow: hidden; }
.gh-dm-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--gh-border); background: #fff; overflow-x: auto; scrollbar-width: none; }
.gh-dm-tabs::-webkit-scrollbar { display: none; }
.gh-dm-tabs.is-top { margin: 0 0 18px; border: 1px solid var(--gh-border); border-radius: 14px; }
.gh-dm-tab { display: inline-flex; flex: none; align-items: center; gap: 8px; margin-bottom: -1px; padding: 14px 14px 13px; border-bottom: 2px solid transparent; color: var(--gh-muted); font-size: 0.88rem; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.gh-dm-tab i { color: #94a3b8; font-size: 0.85rem; }
.gh-dm-tab:hover { color: var(--gh-text); }
.gh-dm-tab.is-on { border-bottom-color: var(--gh-primary); color: var(--gh-primary); }
.gh-dm-tab.is-on i { color: var(--gh-primary); }
.gh-dm-tabs.is-top .gh-dm-tab { margin-bottom: 0; border-bottom: 0; border-radius: 0; }
.gh-dm-tabs.is-top .gh-dm-tab.is-on { box-shadow: inset 0 -2px 0 var(--gh-primary); }
.gh-dm-panes > .tab-pane:empty { display: none !important; }
.gh-dm-pane { padding: 22px 24px 24px; }
.gh-dm-note { margin: 0 0 16px; color: var(--gh-muted); font-size: 0.88rem; line-height: 1.55; }
.gh-dm-note b { color: var(--gh-text); }
.gh-dm-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gh-dm-opt { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 9px 14px; border: 1px solid var(--gh-border); border-radius: 10px; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.gh-dm-opt:has(input:checked) { border-color: var(--gh-primary); box-shadow: 0 0 0 1px var(--gh-primary); }
.gh-dm-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--gh-primary); }
.gh-dm-ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.gh-dm-ns-grid .gh-dm-ns-extra { display: none; }
.gh-dm-form label { margin-bottom: 6px; color: var(--gh-text); font-size: 0.82rem; font-weight: 700; }
.gh-dm-form .form-control { height: 44px; border: 1px solid #d6dbe3; border-radius: 10px; font-size: 0.92rem; }
.gh-dm-form .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-dm-form .form-control:disabled { background: #f8fafc; color: #94a3b8; }
.gh-dm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.gh-dm-btns [hidden] { display: none !important; }
.gh-dm-narrow { max-width: 360px; }
.gh-dm-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--gh-border); border-radius: 12px; background: #f8fafc; }
.gh-dm-toggle span { display: block; margin-bottom: 4px; color: var(--gh-muted); font-size: 0.82rem; font-weight: 700; }
.gh-dm-toggle form { margin: 0; }
.gh-dm-addons { display: grid; gap: 10px; }
.gh-dm-addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--gh-border); border-radius: 12px; }
.gh-dm-addon-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f2f7ff; color: #2563eb; font-size: 1rem; }
.gh-dm-addon-text b { display: block; font-size: 0.92rem; }
.gh-dm-addon-text p { margin: 2px 0 0; color: var(--gh-muted); font-size: 0.84rem; line-height: 1.45; }
.gh-dm-addon form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0; }
@media (max-width: 991.98px) {
  .gh-dm-info { grid-template-columns: 1fr; }
  .gh-dm-right { border-top: 1px solid #eef1f5; border-left: 0; }
}
@media (max-width: 767.98px) {
  .gh-dm-left, .gh-dm-right, .gh-dm-pane { padding-left: 16px; padding-right: 16px; }
  .gh-dm-facts { grid-template-columns: 1fr 1fr; }
  .gh-dm-toggle { flex-direction: column; align-items: flex-start; }
  .gh-dm-addon { grid-template-columns: auto minmax(0, 1fr); }
  .gh-dm-addon form { grid-column: 1 / -1; justify-content: flex-start; }
  .gh-dm-tab { padding: 12px 11px; font-size: 0.84rem; }
}

/* ==========================================================================
   Ticket view (viewticket.tpl): header card (facts, CC), reply box, then the messages
   newest first as full-width cards. Max 1440px, left-aligned (no empty gap where the
   sidebar was), no sidebar.
   ========================================================================== */
#main-body .primary-content.gh-tk-full { flex: 0 0 100%; max-width: 1440px; margin: 0; }
.gh-tk { max-width: 1440px; }
.gh-tk .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 9px; font-size: 0.86rem; font-weight: 700; }
.gh-tk .btn-primary { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-tk .btn-primary:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); }
.gh-tk .btn-default { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }
.gh-tk .btn-default:hover { border-color: #b8c0cc; background: #f8fafc; }
.gh-tk .btn[disabled] { opacity: 0.7; }

/* Header card */
.gh-tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; border: 1px solid var(--gh-border); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.gh-tk-title { min-width: 0; }
.gh-tk-title h1 { margin: 0 0 7px; color: var(--gh-text); font-size: 1.25rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.gh-tk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--gh-muted); font-size: 0.82rem; font-weight: 600; }
.gh-tk-num { color: var(--gh-text); font-weight: 800; }
.gh-tk-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-size: 0.74rem; font-weight: 800; }
.gh-tk-dept i { margin-right: 5px; color: #94a3b8; }
.gh-tk-actions { display: flex; flex: none; gap: 8px; }
.gh-tk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 12px 22px 16px; border: 1px solid var(--gh-border); border-top: 0; background: #fff; }
.gh-tk-facts[hidden] { display: none; }
.gh-tk-facts > div { min-width: 0; padding: 0 14px; border-left: 1px solid #eef1f5; }
.gh-tk-facts > div:first-child { padding-left: 0; border-left: 0; }
.gh-tk-facts dt { color: #94a3b8; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-tk-facts dd { margin: 2px 0 0; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; overflow-wrap: anywhere; }
.gh-tk-cc { display: flex; align-items: center; gap: 12px; padding: 11px 22px; border: 1px solid var(--gh-border); border-top: 1px solid #eef1f5; border-radius: 0 0 14px 14px; background: #fbfcfe; }
.gh-tk-cc[hidden] { display: none; }
.gh-tk-facts:not([hidden]) { border-radius: 0 0 14px 14px; }
.gh-tk-facts:not([hidden]):has(+ .gh-tk-cc:not([hidden])) { border-radius: 0; }
.gh-tk-cc-label { flex: none; padding: 3px 9px; border-radius: 6px; background: #eef2f7; color: #475569; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.gh-tk-cc-box { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: 0.82rem; }
.gh-tk-cc-box > * { margin: 0 !important; }
.gh-tk-cc-box .w-hidden, .gh-tk-cc-box [hidden] { display: none !important; }
.gh-tk-cc-box .list-group, .gh-tk-cc-box ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gh-tk-cc-box .list-group:empty, .gh-tk-cc-box ul:empty { display: none; }
.gh-tk-cc-box .list-group-item, .gh-tk-cc-box li { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 4px 6px 4px 10px; border: 1px solid var(--gh-border) !important; border-radius: 999px !important; background: #fff; color: var(--gh-text); font-size: 0.8rem; }
.gh-tk-cc-box .list-group-item:empty, .gh-tk-cc-box li:empty { display: none; }
.gh-tk-cc-box .list-group-item .btn, .gh-tk-cc-box li .btn, .gh-tk-cc-box li button { min-height: 22px; padding: 0 6px; border: 0; background: none; color: #94a3b8; }
.gh-tk-cc-box form, .gh-tk-cc-box .input-group { display: flex; flex: 1 1 260px; max-width: 380px; }
.gh-tk-cc-box .form-control { height: 34px; border: 1px solid #d6dbe3; border-radius: 8px 0 0 8px; font-size: 0.82rem; }
.gh-tk-cc-box .input-group-append .btn, .gh-tk-cc-box form .btn { min-height: 34px; border-radius: 0 8px 8px 0; font-size: 0.8rem; }
.gh-tk-cc-box p, .gh-tk-cc-box small { color: var(--gh-muted); font-size: 0.78rem; }

/* Reply box (top) */
.gh-tk-reply { margin: 16px 0 0; padding: 16px 20px 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.03); }
.gh-tk-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-tk-label i { color: var(--gh-primary); font-size: 0.85rem; }
.gh-tk-who { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gh-tk-who.is-hidden-logged { display: none; }
.gh-tk-who label { margin-bottom: 5px; font-size: 0.8rem; font-weight: 700; }
.gh-tk-reply .form-control { border: 1px solid #d6dbe3; border-radius: 10px; font-size: 0.92rem; }
.gh-tk-reply input.form-control { height: 40px; }
.gh-tk-reply textarea.form-control { min-height: 120px; }
.gh-tk-reply .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-tk-reply .md-editor, .gh-tk-reply .md-editor > textarea { border-radius: 10px; }
.gh-tk-reply form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.gh-tk-reply form > .gh-tk-who, .gh-tk-reply form > .gh-tk-label, .gh-tk-reply form > textarea, .gh-tk-reply form > .md-editor { flex: 1 1 100%; }
.gh-tk-attach { flex: 1 1 360px; min-width: 0; margin: 0; }
.gh-tk-attach .attachment-group { max-width: 480px; margin-bottom: 4px; }
.gh-tk-attach .custom-file-label { height: 38px; padding: 8px 12px; border: 1px solid #d6dbe3; border-radius: 9px 0 0 9px; font-size: 0.84rem; }
.gh-tk-attach .custom-file-label::after { height: 36px; padding: 8px 10px; border-radius: 0; background: #f8fafc; font-size: 0.8rem; }
.gh-tk-attach .input-group-append .btn { min-height: 38px; border-radius: 0 9px 9px 0; }
.gh-tk-hint { margin: 2px 0 0; color: #94a3b8; font-size: 0.72rem; }
.gh-tk-send { display: flex; flex: none; gap: 8px; margin: 0 0 18px; }
.gh-tk-send .btn { min-height: 40px; padding: 0 22px; }

/* Conversation: newest first, full-width cards */
.gh-tk-thread-title { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-tk-thread-title span { color: var(--gh-muted); font-size: 0.78rem; font-weight: 600; }
.gh-tk-thread { display: flex; flex-direction: column; gap: 12px; }
.gh-tk-msg.ticket-reply { display: block; max-width: none; margin: 0; padding: 0; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow: hidden; }
.gh-tk-msg.is-staff { border-color: #f1d7d2; }
.gh-tk-meta.posted-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 11px 18px; border: 0; border-bottom: 1px solid #eef1f5; background: #fbfcfe; color: var(--gh-muted); font-size: 0.8rem; }
.gh-tk-msg.is-staff .gh-tk-meta { border-bottom-color: #f6e4e0; background: #fff8f7; }
.gh-tk-msg.is-client .gh-tk-meta { flex-direction: row; }
.gh-tk-avatar { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gh-navy); color: #fff; font-size: 0.78rem; font-weight: 800; }
.gh-tk-msg.is-staff .gh-tk-avatar { background: var(--gh-primary); }
.gh-tk-meta b { color: var(--gh-text); font-size: 0.88rem; }
.gh-tk-badge { padding: 1px 8px; border-radius: 999px; background: #eef2f7; color: #475569; font-size: 0.68rem; font-weight: 800; }
.gh-tk-msg.is-staff .gh-tk-badge { background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-tk-meta time { margin-left: auto; color: #94a3b8; font-size: 0.78rem; }
.gh-tk-bubble { max-width: none; padding: 14px 18px 16px 58px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.gh-tk-msg.is-client .gh-tk-bubble, .gh-tk-msg.is-staff .gh-tk-bubble { border: 0; border-radius: 0; background: none; }
.gh-tk-body.message { padding: 0 !important; color: #1e293b; font-size: 0.92rem; line-height: 1.65; overflow-wrap: anywhere; }
.gh-tk-body p { margin: 0 0 8px; }
.gh-tk-body p:last-child { margin-bottom: 0; }
.gh-tk-body a { color: var(--gh-primary); }
.gh-tk-body pre, .gh-tk-body code { border-radius: 6px; background: #f1f5f9; font-size: 0.84rem; }
.gh-tk-body pre { padding: 8px 10px; white-space: pre-wrap; }
.gh-tk-body blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid #e2e8f0; color: var(--gh-muted); }
.gh-tk-files .attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.gh-tk-files .attachment-list li { width: auto; margin: 0; padding: 0; border: 0; }
.gh-tk-file { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; padding: 5px 11px; border: 1px solid var(--gh-border); border-radius: 999px; background: #fff; color: var(--gh-text); font-size: 0.8rem; font-weight: 600; text-decoration: none !important; }
.gh-tk-file i { color: var(--gh-primary); font-size: 0.74rem; }
.gh-tk-file .caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.gh-tk-file:hover { border-color: #f4c7c0; color: var(--gh-primary); }
.gh-tk-file.is-removed, .gh-tk-file.is-removed i { color: #94a3b8; text-decoration: line-through !important; }
.gh-tk-ip { margin: 10px 0 0; color: #94a3b8; font-size: 0.74rem; }
.gh-tk-rate { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eadfdc; }
.gh-tk-rate-label { color: var(--gh-muted); font-size: 0.76rem; font-weight: 700; }
@media (max-width: 767.98px) {
  .gh-tk-head { flex-direction: column; padding: 14px 14px 10px; }
  .gh-tk-actions { width: 100%; }
  .gh-tk-actions .btn { flex: 1; }
  .gh-tk-facts { grid-template-columns: 1fr 1fr; gap: 10px 0; padding: 10px 14px 14px; }
  .gh-tk-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .gh-tk-cc { flex-wrap: wrap; padding: 10px 14px; }
  .gh-tk-reply { padding: 14px; }
  .gh-tk-who { grid-template-columns: 1fr; }
  .gh-tk-addmore { display: none; }
  .gh-tk-send { width: 100%; margin-bottom: 0; }
  .gh-tk-send .btn { flex: 1; }
  .gh-tk-meta.posted-by { padding: 10px 14px; }
  .gh-tk-meta time { width: 100%; margin-left: 40px; }
  .gh-tk-bubble { padding: 12px 14px 14px; }
}
@media print {
  .gh-tk-reply { display: none; }
  .gh-tk-msg { break-inside: avoid; }
}

/* ==========================================================================
   Child nameservers (clientareadomainregisterns.tpl) and domain contacts
   (clientareadomaincontactinfo.tpl): compact cards under the domain tabs.
   ========================================================================== */
.gh-cns, .gh-dc { max-width: 1100px; }
.gh-cns-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #d3e2fb; border-radius: 12px; background: #f2f7ff; color: #1e3a8a; font-size: 0.86rem; line-height: 1.5; }
.gh-cns-note i { margin-top: 3px; color: #2563eb; }
.gh-cns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.gh-cns-card { margin: 0; padding: 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }
.gh-cns-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #eef1f5; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-cns-ico { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 0.8rem; }
.gh-cns-ico.is-add { background: #e8f7ee; color: #15803d; }
.gh-cns-ico.is-edit { background: #f2f7ff; color: #2563eb; }
.gh-cns-ico.is-del { background: #fdecec; color: #b91c1c; }
.gh-cns-card .form-group { margin-bottom: 12px; }
.gh-cns-card label, .gh-dc label { margin-bottom: 5px; color: var(--gh-text); font-size: 0.8rem; font-weight: 700; }
.gh-cns-card .form-control, .gh-dc .form-control { height: 40px; border: 1px solid #d6dbe3; border-radius: 9px; font-size: 0.9rem; }
.gh-cns-card .form-control:focus, .gh-dc .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-cns-host { display: flex; align-items: stretch; }
.gh-cns-host .form-control { min-width: 0; border-radius: 9px 0 0 9px; }
.gh-cns-host span { display: flex; flex: none; align-items: center; max-width: 55%; padding: 0 10px; border: 1px solid #d6dbe3; border-left: 0; border-radius: 0 9px 9px 0; background: #f8fafc; color: var(--gh-muted); font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-cns-card .btn, .gh-dc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; }
.gh-cns-card .btn { width: 100%; margin-top: 2px; }
.gh-cns .btn-primary, .gh-dc .btn-primary { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-cns .btn-primary:hover, .gh-dc .btn-primary:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); }
.gh-cns .btn-danger { border: 1px solid #f8d4d4; background: #fff; color: var(--gh-danger); }
.gh-cns .btn-danger:hover { background: #fef4f4; color: var(--gh-danger); }
.gh-dc .btn-default { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }

.gh-dc { padding: 20px 22px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }
.gh-dc-head h2 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 800; }
.gh-dc-head p { margin: 0 0 16px; color: var(--gh-muted); font-size: 0.86rem; line-height: 1.5; }
.gh-dc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 4px; border: 1px solid var(--gh-border); border-radius: 12px; background: #f8fafc; list-style: none; }
.gh-dc-tabs .nav-link { padding: 8px 14px; border: 0; border-radius: 9px; color: var(--gh-muted); font-size: 0.86rem; font-weight: 700; }
.gh-dc-tabs .nav-link:hover { color: var(--gh-text); }
.gh-dc-tabs .nav-link.active { background: #fff; color: var(--gh-primary); box-shadow: 0 1px 2px rgb(15 23 42 / 0.08); }
.gh-dc-panes { padding: 0; }
.gh-dc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.gh-dc-opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border: 1px solid var(--gh-border); border-radius: 10px; cursor: pointer; }
.gh-dc-opt:has(input:checked) { border-color: var(--gh-primary); box-shadow: 0 0 0 1px var(--gh-primary); }
.gh-dc-opt input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--gh-primary); }
.gh-dc-opt b { color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-dc-existing { max-width: 420px; }
.gh-dc-existing:has(select:disabled) { display: none; }
.gh-dc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.gh-dc-fields .form-group { margin-bottom: 12px; }
.gh-dc-fields:has(.form-control:disabled) { display: none; }
.gh-dc-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid #eef1f5; }
#modalIRTPConfirmation .modal-content { border: 1px solid var(--gh-border); border-radius: 14px; overflow: hidden; }
#modalIRTPConfirmation .modal-header { background: #fff; color: var(--gh-text); }
#modalIRTPConfirmation .modal-title { font-size: 1rem; font-weight: 800; }
@media (max-width: 991.98px) { .gh-cns-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) {
  .gh-cns-grid, .gh-dc-choice, .gh-dc-fields { grid-template-columns: 1fr; }
  .gh-dc { padding: 16px; }
  .gh-dc-btns { flex-direction: column-reverse; }
  .gh-dc-btns .btn { width: 100%; }
}
/* Child nameservers: full host name under the box (long domains wrap instead of being cut off). */
.gh-cns-host { display: block; }
.gh-cns-host .form-control { border-radius: 9px; }
.gh-cns-full { margin: 6px 0 0; color: var(--gh-muted); font-size: 0.8rem; line-height: 1.4; overflow-wrap: anywhere; }
.gh-cns-full span { color: var(--gh-text); font-weight: 700; }
.gh-cns-host .gh-cns-full span { display: inline; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; color: var(--gh-text); font-size: inherit; font-weight: 700; white-space: normal; overflow: visible; }
/* Ticket bubbles: no Twenty-One borders inside (message divider, attachment boxes). */
.gh-tk .ticket-reply .message, .gh-tk-body.message { border: 0 !important; }
.gh-tk .ticket-reply .attachments, .gh-tk-files.attachments { margin: 0; padding: 0 !important; border: 0 !important; background: none !important; }
.gh-tk-files .attachment-list li a, .gh-tk-files .attachment-list li > span { border-radius: 999px; }
.gh-tk-file .caption, .gh-tk-files .attachment-list .caption { display: inline; width: auto; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: inherit; line-height: 1.3; text-align: left; }
.gh-tk-files .attachment-list li a::before, .gh-tk-files .attachment-list li a::after { content: none !important; }
.gh-tk .ticket-reply .gh-tk-rate { border-top: 1px dashed #eadfdc; }

/* Ticket view: conversation + support status column (includes/gh-otside.tpl) */
.gh-tk-layout { display: grid; gap: 22px; margin-top: 18px; }
.gh-tk-main { min-width: 0; }
.gh-tk-layout > .gh-tk-main > .gh-tk-reply:first-child { margin-top: 0; }
@media (min-width: 1200px) {
  .gh-tk-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.gh-tk-side { display: grid; gap: 16px; min-width: 0; }
.gh-tk-side .gh-ot-side { position: static; }
@media (min-width: 1600px) { .gh-tk-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.gh-tk-extra { padding: 18px 20px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; font-size: 0.88rem; }
.gh-tk-extra h2 { margin: 0 0 12px; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-tk-svc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gh-border); border-radius: 10px; color: var(--gh-text); text-decoration: none; transition: border-color .15s, background .15s; }
.gh-tk-svc:hover, .gh-tk-svc:focus { border-color: #f3b4ab; background: #fff7f6; color: var(--gh-text); text-decoration: none; }
.gh-tk-svc-ico { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #fdecea; color: #d4301f; }
.gh-tk-svc-txt { display: grid; min-width: 0; line-height: 1.3; }
.gh-tk-svc-txt small { color: var(--gh-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gh-tk-svc-txt b, .gh-tk-svc-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-tk-svc-txt span { color: var(--gh-muted); font-size: 0.82rem; }
.gh-tk-svc-go { margin-left: auto; color: #b8c0cc; font-size: 0.7rem; }
.gh-tk-cf { display: grid; gap: 10px; margin: 0; }
.gh-tk-svc + .gh-tk-cf { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.gh-tk-cf dt { color: var(--gh-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gh-tk-cf dd { margin: 2px 0 0; color: var(--gh-text); font-weight: 600; overflow-wrap: anywhere; }

/* Domain manage options when the domain is not Active: faded, inert, status message centred on top */
.gh-dm-manage.is-locked { position: relative; min-height: 300px; }
.gh-dm-manage.is-locked .gh-dm-manage-in { opacity: .55; filter: grayscale(.6); pointer-events: none; user-select: none; }
.gh-dm-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; background: radial-gradient(ellipse 50% 60% at center, rgb(255 255 255 / 0.98) 0, rgb(255 255 255 / 0.94) 55%, rgb(255 255 255 / 0.3) 100%); text-align: center; }
.gh-dm-lock > * { max-width: 440px; }
.gh-dm-lock-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; font-size: 1.15rem; }
.gh-dm-lock-ico.is-warn { background: #fff4e5; color: #c2620a; }
.gh-dm-lock-ico.is-bad { background: #fdecea; color: #d4301f; }
.gh-dm-lock-ico.is-info { background: #eaf2ff; color: #2563eb; }
.gh-dm-lock-ico.is-mute { background: #eef1f5; color: #64748b; }
.gh-dm-lock h3 { margin: 0 0 6px; color: var(--gh-text); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.gh-dm-lock p { margin: 0 0 16px; color: var(--gh-muted); font-size: 0.9rem; line-height: 1.6; }
.gh-dm-lock p:last-child { margin-bottom: 0; }
.gh-dm-lock .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 9px; font-weight: 700; }

/* ==========================================================================
   Service details (clientareaproductdetails.tpl, includes/gh-pd-info.tpl and the cPanel overview
   override modules/servers/cpanel/overview.tpl). Sidebar becomes tabs + action buttons (hook 9),
   max 1600px, left-aligned.
   ========================================================================== */
#main-body .primary-content.gh-pd-full { flex: 0 0 100%; max-width: 1600px; margin: 0; }
/* The sidebar (menu, actions, promotions such as CodeGuard) is rebuilt into the page by hook 9 at the
   end of the page; hide it and widen the content from the first paint, so it doesn't flash while loading. */
html.gh-page-pd #main-body .row:has([data-gh-pdf]) > :has(> .sidebar):has(+ .primary-content) { display: none; }
html.gh-page-pd #main-body .row:has([data-gh-pdf]) > .primary-content { flex: 0 0 100%; max-width: 1600px; margin: 0; }
.gh-pd-invoice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gh-pd-invoice .btn { flex: none; border-radius: 9px; font-weight: 700; }
.gh-pd .btn, .gh-pdf .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px; border-radius: 9px; font-size: 0.86rem; font-weight: 700; }
.gh-pd .btn-sm, .gh-pdf .btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }

/* Tabs */
.gh-pd-tabs { display: flex; gap: 2px; margin: 0 0 18px; padding: 0 10px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.gh-pd-tabs::-webkit-scrollbar { display: none; }
.gh-pd-tabs[hidden] { display: none; }
.gh-pd-tab { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 14px 14px 13px; color: var(--gh-muted); font-size: 0.88rem; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.gh-pd-tab i { color: #94a3b8; font-size: 0.85rem; }
.gh-pd-tab:hover { color: var(--gh-text); }
.gh-pd-tab.is-on { box-shadow: inset 0 -2px 0 var(--gh-primary); color: var(--gh-primary); }
.gh-pd-tab.is-on i { color: var(--gh-primary); }

/* Information card */
.gh-pd-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin: 0 0 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow: hidden; }
.gh-pd-info.is-single { grid-template-columns: minmax(0, 1fr); }
.gh-pd-left { padding: 22px 24px; }
.gh-pd-right { padding: 20px 24px; border-left: 1px solid #eef1f5; background: #fbfcfe; }
.gh-pd-right h2, .gh-pd-usage h2 { margin: 0 0 14px; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-pd-name { display: flex; align-items: flex-start; gap: 14px; }
.gh-pd-ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fdecea; color: #d4301f; font-size: 1.2rem; }
.gh-pd-group { margin: 0 0 2px; color: var(--gh-muted); font-size: 0.78rem; font-weight: 700; }
.gh-pd-name h1 { margin: 0 0 8px; color: var(--gh-text); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.gh-pd-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gh-pd-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.gh-pd-status.is-active { background: #e8f7ee; color: #15803d; }
.gh-pd-status.is-pending { background: #fdf3e2; color: #b45309; }
.gh-pd-status.is-suspended, .gh-pd-status.is-terminated, .gh-pd-status.is-cancelled, .gh-pd-status.is-fraud { background: #fdecec; color: #b91c1c; }
.gh-pd-domain { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-text); font-size: 0.88rem; font-weight: 700; overflow-wrap: anywhere; }
.gh-pd-domain i { color: #94a3b8; font-size: 0.72rem; }
.gh-pd-domain.is-manage { color: var(--gh-muted); font-size: 0.82rem; }
.gh-pd-domain:hover { color: var(--gh-primary); text-decoration: none; }
.gh-pd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 20px 0 0; }
.gh-pd dt { margin: 0 0 3px; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-pd dd { margin: 0; color: var(--gh-text); font-size: 0.93rem; font-weight: 700; overflow-wrap: anywhere; }
.gh-pd dd small { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #eef1f5; }
.gh-pd-actions[hidden] { display: none; }
.gh-pd-actions .gh-pd-cancel { color: #b91c1c; }
.gh-pd-actions .gh-pd-cancel:hover { border-color: #f3b4ab; background: #fff7f6; }

/* Usage bars */
.gh-pd-usage.is-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.gh-pd-meter + .gh-pd-meter { margin-top: 16px; }
.gh-pd-usage.is-row .gh-pd-meter + .gh-pd-meter { margin-top: 0; }
.gh-pd-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 0.86rem; }
.gh-pd-meter-top span { display: inline-flex; align-items: center; gap: 8px; color: var(--gh-muted); font-weight: 700; }
.gh-pd-meter-top i { width: 16px; color: #94a3b8; text-align: center; }
.gh-pd-meter-top b { color: var(--gh-text); font-weight: 800; }
.gh-pd-bar { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.gh-pd-bar span { display: block; max-width: 100%; height: 100%; min-width: 4px; border-radius: inherit; background: #16a34a; }
.gh-pd-bar.is-warn span { background: #f59e0b; }
.gh-pd-bar.is-high span { background: #dc2626; }
.gh-pd-meter p { margin: 6px 0 0; color: var(--gh-muted); font-size: 0.8rem; }
.gh-pd-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #9a4b07; font-size: 0.84rem; font-weight: 600; }
.gh-pd-limit .btn { margin-left: auto; }
.gh-pd-updated { margin: 14px 0 0; color: #94a3b8; font-size: 0.76rem; }

/* Cards, rows, key-value lists */
.gh-pd-card { margin: 0 0 18px; padding: 20px 22px 22px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }
.gh-pd-card-head { margin-bottom: 16px; }
.gh-pd-card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gh-text); font-size: 1.02rem; font-weight: 800; }
.gh-pd-card-head p { margin: 4px 0 0; color: var(--gh-muted); font-size: 0.84rem; }
.gh-pd-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.gh-pd-row > .gh-pd-card:only-child { grid-column: 1 / -1; }
.gh-pd-row.is-one { grid-template-columns: minmax(0, 1fr); }
.gh-pd-kv { display: grid; gap: 12px; margin: 0; }
.gh-pd-kv > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.gh-pd-kv dt { margin: 0; }
.gh-pd-kv code { padding: 2px 7px; border-radius: 6px; background: #f1f5f9; color: var(--gh-text); font-size: 0.82rem; }
.gh-pd-ns { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-pd-ssl img { margin-right: 4px; vertical-align: -1px; }
.gh-pd-ssl small { display: block; margin-top: 3px; }
.gh-pd-hook { margin-bottom: 18px; }

/* Not active notice */
.gh-pd-notice { display: flex; gap: 16px; margin: 0 0 18px; padding: 20px 22px; border: 1px solid #f6d9a8; border-radius: 14px; background: #fffaf0; }
.gh-pd-notice.is-suspended, .gh-pd-notice.is-terminated, .gh-pd-notice.is-cancelled, .gh-pd-notice.is-fraud { border-color: #f3c4bd; background: #fff7f6; }
.gh-pd-notice-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #c2620a; font-size: 1.1rem; }
.gh-pd-notice.is-suspended .gh-pd-notice-ico, .gh-pd-notice.is-terminated .gh-pd-notice-ico, .gh-pd-notice.is-cancelled .gh-pd-notice-ico { color: #d4301f; }
.gh-pd-notice h2 { margin: 2px 0 6px; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-pd-notice p { margin: 0 0 12px; color: var(--gh-muted); font-size: 0.88rem; line-height: 1.6; }

/* cPanel shortcuts */
.gh-cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gh-cp-app { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--gh-border); border-radius: 11px; background: #fff; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; line-height: 1.25; text-decoration: none !important; transition: border-color .15s, background .15s, transform .15s; }
.gh-cp-app:hover, .gh-cp-app:focus { border-color: #f3b4ab; background: #fff7f6; color: var(--gh-text); transform: translateY(-1px); }
.gh-cp-ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: 0.95rem; }
.gh-cp-ico.is-mail { background: #fdecea; color: #d4301f; }
.gh-cp-ico.is-file { background: #fff4e5; color: #c2620a; }
.gh-cp-ico.is-web { background: #eaf2ff; color: #2563eb; }
.gh-cp-ico.is-db { background: #ecfdf3; color: #15803d; }
.gh-cp-ico.is-stat { background: #f3e8ff; color: #7c3aed; }
.gh-cp-ico.is-wp { background: #e0f2fe; color: #0369a1; }

/* Create email, add-ons, WordPress, Sitejet */
/* WHMCS hides alerts with .w-hidden until its script shows them; the soft alert style must not undo that. */
.alert.w-hidden { display: none !important; }
.gh-cp-mail .input-group { flex-wrap: nowrap; }
.gh-cp-mail .input-group > .form-control { flex: 1 1 auto; width: 1%; min-width: 90px; }
.gh-cp-mail .input-group-append { flex: 0 1 auto; min-width: 0; max-width: 62%; }
.gh-cp-mail .input-group-text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #f8fafc; color: var(--gh-muted); font-size: 0.86rem; font-weight: 600; }
.gh-cp-mail .form-group { margin-bottom: 12px; }
.gh-cp-mail label, .gh-pd-pw label { margin-bottom: 5px; color: var(--gh-text); font-size: 0.84rem; font-weight: 700; }
.gh-cp-addon { display: flex; gap: 8px; }
.gh-cp-addon select { flex: 1; min-width: 0; }
.gh-cp-wp h2 i { color: #21759b; }
.gh-cp-wp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 18px; }
.gh-cp-wp-new h3 { margin: 0; color: var(--gh-text); font-size: 0.9rem; font-weight: 800; }
.gh-cp-wp-url { margin: 2px 0 10px; color: var(--gh-muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.gh-cp-wp-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; }
.gh-cp-sitejet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gh-cp-sitejet-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Downloads, add-ons list, change password */
.gh-pd-list { margin: 0; padding: 0; list-style: none; }
.gh-pd-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.gh-pd-list li + li { border-top: 1px solid #eef1f5; }
.gh-pd-list li > div { flex: 1; min-width: 200px; }
.gh-pd-list b { color: var(--gh-text); font-size: 0.92rem; }
.gh-pd-list p { margin: 3px 0 0; color: var(--gh-muted); font-size: 0.82rem; }
.gh-pd-list-ico { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f1f5f9; color: #64748b; }
.gh-pd-list-act { flex-basis: 100%; padding-left: 50px; }
.gh-pd-more { margin-top: 14px; }
.gh-pd-pw { max-width: 640px; }
.gh-pd-pw-row { display: flex; gap: 8px; }
.gh-pd-pw-row .form-control { flex: 1; min-width: 0; }
.gh-pd-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

@media (max-width: 1199.98px) {
  .gh-pd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .gh-pd-info { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-right { border-left: 0; border-top: 1px solid #eef1f5; }
  .gh-pd-row { grid-template-columns: minmax(0, 1fr); }
  .gh-cp-wp-form { grid-template-columns: minmax(0, 1fr); }
  .gh-cp-sitejet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .gh-pd-left, .gh-pd-right { padding: 18px 16px; }
  .gh-pd-card { padding: 18px 16px; }
  .gh-pd-facts { gap: 12px 14px; }
  .gh-cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-cp-wp-row { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gh-pd-actions .btn { flex: 1 1 auto; }
  .gh-pd-list-act { padding-left: 0; }
}

/* cPanel overview rows: plan | hosting information, then shortcuts | usage */
.gh-pd-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 14px; }
.gh-pd-top > .gh-pd-info, .gh-pd-top > .gh-pd-card { margin: 0; }
.gh-pd-loc { margin-right: 6px; color: #d4301f; font-size: 0.85em; }
.gh-pd-host .gh-pd-card-head h2 i, .gh-pd-usage-card h2 i { color: #94a3b8; font-size: 0.9em; }
.gh-pd-host .gh-pd-kv > div { grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); }
.gh-pd-empty { margin: 0; color: var(--gh-muted); font-size: 0.88rem; }
.gh-pd-host-promos { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.gh-pd-host-promos[hidden] { display: none; }
.gh-pd-promo { margin: 0 !important; border: 1px solid var(--gh-border) !important; border-radius: 11px !important; background: #fbfcfe !important; box-shadow: none !important; overflow: hidden; }
.gh-pd-promo .card-header { padding: 10px 14px; border: 0; background: transparent; }
.gh-pd-promo .card-title { color: var(--gh-text); font-size: 0.88rem; font-weight: 800; }
.gh-pd-promo .card-body { padding: 0 14px 12px; color: var(--gh-muted); font-size: 0.84rem; }
.gh-pd-promo .list-group-item { padding: 9px 14px; border: 0; border-top: 1px solid #eef1f5; background: transparent; color: var(--gh-text); font-size: 0.84rem; font-weight: 700; }
.gh-pd-promo .list-group-item:hover { background: #fff7f6; color: var(--gh-primary); }
.gh-pd-promo .card-footer { padding: 10px 14px; border: 0; background: transparent; }
.gh-pd-promo .btn { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }
.gh-pd-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.gh-pd-mid-main { display: flex; flex-direction: column; }
.gh-pd-mid-main > .gh-pd-card, .gh-pd-mid-main > .gh-pd-notice { flex: 1; }
.gh-pd-mid > .gh-pd-card, .gh-pd-mid-main > .gh-pd-card, .gh-pd-mid-main > .gh-pd-notice { margin: 0; }
.gh-pd-usage-card .gh-pd-usage h2 { font-size: 1.02rem; margin-bottom: 16px; }
@media (min-width: 1600px) { .gh-cp-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 1199.98px) {
  .gh-pd-top { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-mid { grid-template-columns: minmax(0, 1fr); }
}

/* cPanel top row: plan card | hosting information, log-in buttons centred under both */
.gh-pd-plan { display: flex; flex-direction: column; }
.gh-pd-plan .gh-pd-name h1 { margin-bottom: 8px; }
.gh-pd-facts.is-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef1f5; }
.gh-pd-actions.is-plan { margin-top: auto; padding-top: 18px; border-top: 0; }
.gh-pd-actions.is-plan .btn { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }
.gh-pd-host .gh-pd-kv .gh-pd-domain { font-size: 0.86rem; }
.gh-pd-host .gh-pd-kv .gh-pd-domain.is-manage { margin-left: 10px; }
.gh-pd-logins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }
.gh-pd-logins[hidden] { display: none; }
.gh-pd-logins .btn { min-width: 190px; min-height: 42px; font-size: 0.9rem; }
@media (max-width: 1199.98px) {
  .gh-pd-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .gh-pd-facts.is-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-pd-logins .btn { flex: 1 1 100%; min-width: 0; }
}
.gh-pd-actions a[href*="action=cancel"] { color: #b91c1c; }
.gh-pd-actions a[href*="action=cancel"]:hover { border-color: #f3b4ab; background: #fff7f6; }

/* cPanel top row: Hosting Plan | Hosting Information | Usage Statistics, all one card style */
.gh-pd-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gh-pd-top > .gh-pd-card { display: flex; flex-direction: column; }
.gh-pd-top .gh-pd-card-head h2 i { color: #94a3b8; font-size: 0.9em; }
.gh-pd-top .gh-pd-kv > div { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); }
.gh-pd-plan .gh-pd-actions.is-plan { margin-top: auto; padding-top: 18px; }
.gh-pd-plan .gh-pd-kv { margin-bottom: 4px; }
.gh-pd-usage-card .gh-pd-usage { flex: 1; margin: 0; padding: 0; }
.gh-pd-mid { display: block; }
.gh-pd-mid > .gh-pd-card, .gh-pd-mid > .gh-pd-notice { margin: 0; }
@media (max-width: 1399.98px) {
  .gh-pd-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-pd-top > .gh-pd-usage-card { grid-column: 1 / -1; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-content: start; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-meter + .gh-pd-meter { margin-top: 0; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-limit { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .gh-pd-top { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-usage { display: block; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-meter + .gh-pd-meter { margin-top: 16px; }
}

/* cPanel top row v4: tighter rows aligned on one label column, status in the card corner,
   plain values with copy buttons, Refresh on Usage Statistics, reseller account count */
.gh-pd-top > .gh-pd-card { padding: 18px 20px 18px; }
.gh-pd-top .gh-pd-card-head { margin-bottom: 12px; }
.gh-pd-card-head.has-aside { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gh-pd-card-head.has-aside > .gh-pd-status { margin-top: 2px; padding: 3px 11px; }
.gh-pd-top .gh-pd-kv.is-rows { gap: 0; }
.gh-pd-top .gh-pd-kv.is-rows > div { grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eef1f5; }
.gh-pd-top .gh-pd-kv.is-rows > div:first-child { border-top: 0; padding-top: 2px; }
.gh-pd-top .gh-pd-kv.is-rows dt { margin: 0; font-size: 0.66rem; }
.gh-pd-top .gh-pd-kv.is-rows dd { font-size: 0.88rem; }
.gh-pd-host .gh-pd-kv.is-rows dd { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.gh-pd-val { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.gh-pd-mono { color: var(--gh-text); font-weight: 700; overflow-wrap: anywhere; }
.gh-pd-val.is-sub .gh-pd-mono { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-pd-host .gh-pd-domain { font-size: 0.88rem; }
.gh-pd-manage { color: var(--gh-primary); font-size: 0.76rem; font-weight: 700; }
.gh-pd-manage:hover { color: var(--gh-primary); text-decoration: underline; }
.gh-copy { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 0.78rem; cursor: pointer; }
.gh-copy:hover, .gh-copy:focus-visible { background: #f1f5f9; color: var(--gh-primary); outline: 0; }
.gh-copy.is-done { color: #15803d; }
.gh-pd-plan .gh-pd-actions.is-plan { gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f5; }
.gh-pd-plan .gh-pd-kv.is-rows { margin-bottom: 14px; }
.gh-pd-actions.is-plan .btn i { margin-right: 5px; }
.gh-pd-refresh { flex: none; min-height: 30px; padding: 0 10px; font-size: 0.78rem; }
.gh-pd-refresh i { margin-right: 5px; }
.gh-pd-usage-card .gh-pd-meter + .gh-pd-meter { margin-top: 14px; }
.gh-pd-accts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--gh-border); border-radius: 10px; background: #fbfcfe; }
.gh-pd-accts[hidden] { display: none; }
.gh-pd-accts-ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #fdecea; color: #d4301f; font-size: 0.9rem; }
.gh-pd-accts b { margin-right: 6px; color: var(--gh-text); font-size: 1.25rem; font-weight: 800; }
.gh-pd-accts div span { color: var(--gh-muted); font-size: 0.84rem; font-weight: 700; }
.gh-pd-accts small { margin-left: auto; color: #94a3b8; font-size: 0.74rem; }
.gh-pd-accts-hint { margin: 0 0 14px; color: var(--gh-muted); font-size: 0.8rem; }
.gh-pd-accts-hint[hidden], .gh-pd-refresh-msg[hidden] { display: none; }
.gh-pd-refresh-msg { margin: 12px 0 0; color: #15803d; font-size: 0.78rem; font-weight: 600; }
.gh-pd-refresh-msg.is-bad { color: #b91c1c; }
@media (max-width: 1399.98px) {
  .gh-pd-top > .gh-pd-usage-card .gh-pd-accts, .gh-pd-top > .gh-pd-usage-card .gh-pd-accts-hint, .gh-pd-top > .gh-pd-usage-card .gh-pd-refresh-msg { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .gh-pd-top .gh-pd-kv.is-rows > div { grid-template-columns: 108px minmax(0, 1fr); }
}
.gh-pd-host .gh-pd-kv.is-rows dd.gh-pd-val { flex-direction: row; flex-wrap: wrap; align-items: center; }
.gh-pd-host .gh-pd-manage { margin-left: 4px; }
.gh-pd-limit[hidden] { display: none; }
/* Hosting Plan: flag after the plan name; Upgrade / Renew / Order Addons / Cancel on one line */
.gh-pd-plan-name .gh-flag { margin-left: 8px; vertical-align: -1px; }
.gh-pd-plan .gh-pd-actions.is-plan { flex-wrap: nowrap; }
.gh-pd-plan .gh-pd-actions.is-plan .btn { flex: 1 1 auto; justify-content: center; padding: 0 10px; white-space: nowrap; }
@media (max-width: 575.98px) {
  .gh-pd-plan .gh-pd-actions.is-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Usage Statistics as plain rows (no bars) */
.gh-pd-usage-card .gh-pd-kv.is-rows > div { grid-template-columns: 180px minmax(0, 1fr); }
.gh-pd-of { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }
.gh-pd-usage-card .gh-pd-accts-hint { margin: 10px 0 0; }
.gh-pd-usage-card .gh-pd-limit { margin-top: 12px; }
@media (max-width: 1399.98px) {
  .gh-pd-top > .gh-pd-usage-card .gh-pd-usage { display: block; }
}
@media (max-width: 575.98px) {
  .gh-pd-usage-card .gh-pd-kv.is-rows > div { grid-template-columns: 140px minmax(0, 1fr); }
}
/* Control Panel log-ins at the bottom of the Usage Statistics card */
.gh-pd-ctrl { margin-top: auto; padding-top: 16px; border-top: 1px solid #eef1f5; }
.gh-pd-usage-card .gh-pd-usage + .gh-pd-ctrl { margin-top: auto; }
.gh-pd-usage-card .gh-pd-usage { flex: 0 0 auto; margin-bottom: 16px; }
.gh-pd-ctrl[hidden] { display: none; }
.gh-pd-ctrl h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--gh-text); font-size: 0.86rem; font-weight: 800; }
.gh-pd-ctrl h3 i { color: #94a3b8; font-size: 0.9em; }
.gh-pd-ctrl .gh-pd-logins { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.gh-pd-ctrl .gh-pd-logins[hidden] { display: none; }
.gh-pd-ctrl .gh-pd-logins .btn { justify-content: center; min-width: 0; min-height: 38px; padding: 0 10px; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 575.98px) {
  .gh-pd-ctrl .gh-pd-logins { grid-template-columns: minmax(0, 1fr); }
}
.gh-pd-ctrl .gh-pd-logins .btn { padding: 0 8px; font-size: 0.8rem; } .gh-pd-ctrl .gh-pd-logins .btn i { margin-right: 5px; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-pd-top > .gh-pd-usage-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .gh-pd-top > .gh-pd-usage-card > .gh-pd-card-head { grid-column: 1 / -1; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-usage { margin-bottom: 0; }
  .gh-pd-top > .gh-pd-usage-card .gh-pd-ctrl { margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid #eef1f5; align-self: stretch; }
}
.gh-pd-ctrl .gh-pd-logins { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
/* Third column: Control Panel card (centred log-ins) above Usage Statistics */
.gh-pd-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gh-pd-col > .gh-pd-card { display: flex; flex-direction: column; margin: 0; padding: 18px 20px; }
.gh-pd-col > .gh-pd-usage-card { flex: 1; }
.gh-pd-col > .gh-pd-card[hidden] { display: none; }
.gh-pd-col > .gh-pd-ctrl { margin-top: 0; border: 1px solid var(--gh-border); border-top: 1px solid var(--gh-border); }
.gh-pd-col > .gh-pd-ctrl .gh-pd-card-head { margin-bottom: 12px; text-align: center; }
.gh-pd-col > .gh-pd-ctrl .gh-pd-card-head h2 { justify-content: center; }
.gh-pd-col > .gh-pd-ctrl .gh-pd-card-head h2 i { color: #94a3b8; font-size: 0.9em; }
.gh-pd-col > .gh-pd-ctrl .gh-pd-logins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; }
.gh-pd-col > .gh-pd-ctrl .gh-pd-logins[hidden] { display: none; }
.gh-pd-col > .gh-pd-ctrl .gh-pd-logins .btn { flex: 0 1 auto; min-width: 0; min-height: 38px; padding: 0 12px; font-size: 0.8rem; white-space: nowrap; }
.gh-pd-col .gh-pd-usage-card .gh-pd-usage { margin-bottom: 0; }
@media (max-width: 1399.98px) {
  .gh-pd-top > .gh-pd-col { grid-column: 1 / -1; }
  .gh-pd-top > .gh-pd-col > .gh-pd-usage-card .gh-pd-usage { display: block; }
}
@media (max-width: 575.98px) {
  .gh-pd-col > .gh-pd-ctrl .gh-pd-logins .btn { flex: 1 1 100%; }
}
.gh-pd-col > .gh-pd-ctrl .gh-pd-logins { gap: 6px; } .gh-pd-col > .gh-pd-ctrl .gh-pd-logins .btn { padding: 0 10px; font-size: 0.78rem; } .gh-pd-col > .gh-pd-ctrl .gh-pd-logins .btn i { margin-right: 5px; }

/* Reseller service page: WHM shortcuts, My cPanel Accounts, own nameservers, account limit alert */
.gh-rs-accts .gh-pd-card-head h2 i, .gh-rs-ns .gh-pd-card-head h2 i { color: #94a3b8; font-size: 0.9em; }
.gh-rs-search { width: 300px; max-width: 100%; min-height: 36px; font-size: 0.86rem; }
.gh-rs-wrap { overflow-x: auto; border: 1px solid var(--gh-border); border-radius: 10px; }
.gh-rs-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.86rem; }
.gh-rs-table th { padding: 10px 14px; border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.gh-rs-table td { padding: 10px 14px; border-top: 1px solid #eef1f5; color: var(--gh-text); font-weight: 600; vertical-align: middle; white-space: nowrap; }
.gh-rs-table tbody tr:first-child td { border-top: 0; }
.gh-rs-table tbody tr:hover td { background: #fbfcfe; }
.gh-rs-table td a { color: var(--gh-text); font-weight: 700; }
.gh-rs-table td a:hover { color: var(--gh-primary); }
.gh-rs-you { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.68rem; font-weight: 800; }
.gh-rs-empty { padding: 22px 14px !important; color: var(--gh-muted) !important; text-align: center; white-space: normal !important; }
.gh-rs-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--gh-muted); font-size: 0.8rem; }
.gh-rs-foot [hidden] { display: none; }
.gh-rs-steps { margin: 0; padding-left: 20px; color: var(--gh-text); font-size: 0.9rem; }
.gh-rs-steps li { margin-bottom: 12px; padding-left: 4px; }
.gh-rs-steps li::marker { color: var(--gh-primary); font-weight: 800; }
.gh-rs-nsmap { display: grid; gap: 6px; max-width: 520px; margin: 10px 0 0; }
.gh-rs-nsmap > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--gh-border); border-radius: 9px; background: #fbfcfe; }
.gh-rs-nsmap dt, .gh-rs-nsmap dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.86rem; letter-spacing: 0; text-transform: none; }
.gh-rs-help { margin: 4px 0 0; color: var(--gh-muted); font-size: 0.84rem; }
.gh-rs-limit[hidden] { display: none; }
@media (max-width: 767.98px) {
  .gh-rs-search { width: 100%; }
  .gh-rs-accts .gh-pd-card-head.has-aside { flex-direction: column; align-items: stretch; }
  .gh-rs-table thead { display: none; }
  .gh-rs-table, .gh-rs-table tbody, .gh-rs-table tr, .gh-rs-table td { display: block; width: 100%; }
  .gh-rs-table tr { padding: 8px 0; border-top: 1px solid #eef1f5; }
  .gh-rs-table tbody tr:first-child { border-top: 0; }
  .gh-rs-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 14px; border: 0; white-space: normal; }
  .gh-rs-table td::before { content: attr(data-l); color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
  .gh-rs-table td.gh-rs-empty { display: block; }
  .gh-rs-table td.gh-rs-empty::before { content: none; }
  .gh-rs-nsmap > div { grid-template-columns: minmax(0, 1fr); }
}

/* My cPanel Accounts pagination */
.gh-rs-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gh-rs-pager[hidden] { display: none; }
.gh-rs-pager button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--gh-border); border-radius: 8px; background: #fff; color: var(--gh-text); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.gh-rs-pager button:hover:not(:disabled) { border-color: #f3b4ab; color: var(--gh-primary); }
.gh-rs-pager button.is-on { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.gh-rs-pager button:disabled { opacity: 0.4; cursor: default; }
.gh-rs-gap { padding: 0 4px; color: var(--gh-muted); }
#tabPrivateNs .gh-rs-ns { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .gh-rs-foot { flex-direction: column; align-items: flex-start; }
}

/* Private Nameservers tab: values, provider picker, steps */
.gh-ns-values { margin-bottom: 20px; }
.gh-ns-values > p { margin: 0 0 8px; color: var(--gh-muted); font-size: 0.86rem; }
.gh-ns-values .gh-rs-nsmap { margin: 0; }
.gh-ns-step { padding: 18px 0; border-top: 1px solid #eef1f5; }
.gh-ns-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-ns-num { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gh-primary); color: #fff; font-size: 0.8rem; font-weight: 800; }
.gh-ns-sub { margin: 0 0 12px 36px; color: var(--gh-muted); font-size: 0.88rem; }
.gh-ns-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-left: 36px; }
.gh-ns-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; color: var(--gh-text); font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.gh-ns-tile img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.gh-ns-tile-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; color: #64748b; }
.gh-ns-tile:hover { border-color: #f3b4ab; }
.gh-ns-tile[aria-pressed="true"] { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(212 48 31 / 0.12); }
.gh-ns-reg { margin: 14px 0 0 36px; padding: 16px 18px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; }
.gh-ns-reg[hidden] { display: none; }
.gh-ns-reg h4 { margin: 0 0 10px; color: var(--gh-text); font-size: 0.92rem; font-weight: 800; }
.gh-ns-steps { margin: 0; padding-left: 20px; color: var(--gh-text); font-size: 0.88rem; }
.gh-ns-steps li { margin-bottom: 8px; }
.gh-ns-steps li:last-child { margin-bottom: 0; }
.gh-ns-step > .gh-ns-steps { margin-left: 36px; }
.gh-ns-note { margin: 12px 0 0 36px; color: #94a3b8; font-size: 0.78rem; }
.gh-ns-open { margin-right: 4px; }
.gh-ns-open i { margin-right: 6px; }
@media (max-width: 575.98px) {
  .gh-ns-sub, .gh-ns-tiles, .gh-ns-reg, .gh-ns-note, .gh-ns-step > .gh-ns-steps { margin-left: 0; }
  .gh-ns-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* My cPanel Accounts: cP button (opens that account's cPanel) */
.gh-rs-cpcell { width: 1%; text-align: right; }
.gh-rs-cp { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid #fed7c3; border-radius: 7px; background: #fff4ee; color: #e8590c; font-size: 0.78rem; font-weight: 800; letter-spacing: -0.02em; cursor: pointer; }
.gh-rs-cp:hover:not(:disabled) { border-color: #e8590c; background: #e8590c; color: #fff; }
.gh-rs-cp.is-busy { opacity: 0.6; cursor: progress; }
.gh-rs-cp:disabled { border-color: var(--gh-border); background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
@media (max-width: 767.98px) {
  .gh-rs-table td.gh-rs-cpcell { width: 100%; }
}
/* SSH Access tab on the reseller service page (clientareaproductdetails.tpl, $ghSshTab) */
.gh-ssh { max-width: 560px; }
.gh-ssh-field { margin-bottom: 16px; }
.gh-ssh-field label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 800; color: #475569; letter-spacing: 0.02em; }
.gh-ssh-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eceef2; }
.gh-ssh-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; }
.gh-ssh-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; flex: none; }
.gh-ssh-dot.is-on { background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / 0.16); }
.gh-ssh-dot.is-off { background: #94a3b8; }
.gh-ssh-tag { padding: 2px 8px; border-radius: 6px; background: #fff7ed; color: #c2410c; font-size: 0.72rem; font-weight: 800; }
.gh-ssh-tag.is-bad { background: #fef2f2; color: #b91c1c; }
.gh-ssh-actions { margin-top: 14px; }
.gh-ssh-actions .btn i { margin-right: 6px; }
.gh-ssh-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 0.86rem; }
.gh-ssh-msg.is-ok { background: #e6f4ea; color: #137333; }
.gh-ssh-msg.is-bad { background: #fce8e6; color: #b3261e; }
/* Get Restricted Access card (same tab) */
.gh-restrict-load { color: #6b7280; font-size: 0.9rem; }
.gh-restrict-none { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #15803d; font-size: 0.88rem; font-weight: 600; line-height: 1.5; }
.gh-restrict-none i { margin-top: 2px; font-size: 1rem; }
.gh-restrict-none.is-bad { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.gh-restrict-reason { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: 0.9rem; font-weight: 600; }
.gh-restrict-hint { display: block; margin-top: 6px; color: #6b7280; font-size: 0.78rem; }
.gh-restrict-hint .gh-pd-mono { font-weight: 700; color: var(--gh-text); }
.gh-restrict-use { padding: 1px 8px; border: 1px solid var(--gh-border); border-radius: 6px; background: #fff; color: var(--gh-primary-hover); font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.gh-restrict-use:hover { border-color: var(--gh-primary); background: var(--gh-bg-alt); }
.gh-restrict-info { margin-top: 20px; padding: 16px 18px; border: 1px solid #eef1f5; border-radius: 10px; background: var(--gh-bg-alt); }
.gh-restrict-info h3 { margin: 0 0 10px; font-size: 0.95rem; font-weight: 800; }
.gh-restrict-info ul { margin: 0; padding-left: 18px; }
.gh-restrict-info li { margin: 6px 0; color: #475569; font-size: 0.86rem; line-height: 1.6; }
.gh-restrict-ticket { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #eff6ff; color: #1e3a5f; font-size: 0.86rem; line-height: 1.5; }
.gh-restrict-ticket i { margin-right: 4px; }
.gh-restrict-ticket a { font-weight: 700; white-space: nowrap; }
.gh-restrict-count { margin: 10px 0 0; font-size: 0.84rem; color: var(--gh-muted); }
.gh-restrict-count i { margin-right: 4px; }
.gh-restrict-blocked { margin: 12px 0 0; padding: 11px 13px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 0.86rem; font-weight: 600; line-height: 1.55; }
.gh-restrict-blocked i { margin-right: 5px; }
.gh-restrict-blocked a { color: #b91c1c; text-decoration: underline; }
.gh-restrict-public { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--gh-border); }
.gh-restrict-public h3 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 800; }
.gh-restrict-public > p { margin: 0 0 12px; color: #475569; font-size: 0.86rem; line-height: 1.6; }
/* My cPanel Accounts: fixed columns, cP centred next to the domain */
.gh-rs-table { table-layout: fixed; min-width: 860px; }
.gh-rs-table col.c-dom { width: 24%; }
.gh-rs-table col.c-cp { width: 72px; }
.gh-rs-table col.c-user { width: 12%; }
.gh-rs-table col.c-pkg { width: 17%; }
.gh-rs-table col.c-disk, .gh-rs-table col.c-bw { width: 10%; }
.gh-rs-table col.c-date { width: 12%; }
.gh-rs-table col.c-st { width: 110px; }
.gh-rs-table th, .gh-rs-table td { overflow: hidden; text-overflow: ellipsis; }
.gh-rs-table .gh-rs-cpcell { width: auto; text-align: center; }
.gh-rs-table .gh-rs-num { text-align: right; padding-right: 22px; }
.gh-rs-table .gh-rs-stcell { text-align: center; }
.gh-rs-dom { display: table-cell; }
.gh-rs-dom a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.gh-rs-dom .gh-rs-you { vertical-align: middle; }
@media (max-width: 767.98px) {
  .gh-rs-table { table-layout: auto; min-width: 0; }
  .gh-rs-table colgroup { display: none; }
  .gh-rs-table .gh-rs-num, .gh-rs-table .gh-rs-stcell, .gh-rs-table .gh-rs-cpcell { text-align: right; padding-right: 14px; }
  .gh-rs-dom { display: flex; }
  .gh-rs-dom a { max-width: 60%; }
}
.gh-rs-table { min-width: 900px; }
.gh-rs-table th, .gh-rs-table td { padding-left: 12px; padding-right: 12px; }
.gh-rs-table .gh-rs-num { padding-right: 16px; }
.gh-rs-table col.c-dom { width: 21%; }
.gh-rs-table col.c-cp { width: 78px; }
.gh-rs-table col.c-user { width: 11%; }
.gh-rs-table col.c-pkg { width: 15%; }
.gh-rs-table col.c-disk, .gh-rs-table col.c-bw { width: 11%; }
.gh-rs-table col.c-date { width: 13%; }
.gh-rs-table col.c-st { width: 104px; }
.gh-rs-table th { letter-spacing: 0.03em; text-overflow: clip; }
.gh-rs-table td.gh-rs-dom { white-space: normal; line-height: 1.5; }
.gh-rs-dom .gh-rs-you { display: inline-block; margin-left: 0; white-space: nowrap; }
.gh-rs-dom a { margin-right: 6px; }
@media (max-width: 767.98px) {
  .gh-rs-table { min-width: 0; table-layout: auto; }
  .gh-rs-table th, .gh-rs-table td { overflow: visible; }
  .gh-rs-table td.gh-rs-dom { flex-wrap: wrap; justify-content: space-between; }
  .gh-rs-dom a { max-width: 100%; margin-right: 0; }
}

/* Pending service: placeholder cards under a "pay to activate" overlay */
.gh-pd-locked { position: relative; grid-column: span 2; min-width: 0; }
.gh-pd-locked-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; height: 100%; filter: blur(3px); opacity: 0.55; pointer-events: none; user-select: none; }
.gh-pd-locked-cards > .gh-pd-card { margin: 0; padding: 18px 20px; }
.gh-pd-lockmsg { position: absolute; top: 50%; left: 50%; width: min(440px, calc(100% - 32px)); padding: 26px 24px; transform: translate(-50%, -50%); border: 1px solid var(--gh-border); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgb(15 23 42 / 0.12); text-align: center; }
.gh-pd-lockmsg-ico { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 14px; background: #fdecea; color: #d4301f; font-size: 1.15rem; }
.gh-pd-lockmsg h3 { margin: 0 0 6px; color: var(--gh-text); font-size: 1.08rem; font-weight: 800; }
.gh-pd-lockmsg p { margin: 0 0 16px; color: var(--gh-muted); font-size: 0.88rem; }
.gh-pd-lockmsg .btn { min-height: 40px; padding: 0 20px; }
.gh-pd-lockmsg .btn i { margin-right: 7px; }
.gh-pd-lockmsg .btn[hidden] { display: none; }
@media (max-width: 1399.98px) {
  .gh-pd-top.is-pending { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-top.is-pending .gh-pd-locked { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .gh-pd-locked-cards { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-locked { min-height: 340px; }
}
.gh-pd-lockreason { margin: -8px 0 16px !important; padding: 8px 12px; border-radius: 9px; background: #fdecec; color: #991b1b !important; font-size: 0.84rem !important; }
.gh-pd-lockmsg .btn + .btn { margin-left: 6px; }
.gh-pd-lockmsg .btn.is-quiet { border-color: transparent; background: transparent; }

/* ===== Upgrade / downgrade (upgrade.tpl, upgradesummary.tpl) ===== */
#main-body .primary-content.gh-upg-full { flex: 0 0 100%; max-width: 1440px; margin: 0; }
.gh-upg .gh-page-head { margin-bottom: 18px; }
.gh-upg .gh-head-tools .btn i, .gh-upg .btn i { margin-right: 7px; }
.gh-upg .btn .fa-arrow-right { margin: 0 0 0 8px; }
.gh-upg-h { margin: 0 0 12px; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-upg-label { display: block; margin-bottom: 2px; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-upg-card { margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }

.gh-upg-current { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 22px; padding: 16px 20px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; }
.gh-upg-current-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdecea; color: #d4301f; font-size: 1.05rem; }
.gh-upg-current b { color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-upg-domain { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: var(--gh-text); font-size: 0.84rem; font-weight: 700; }
.gh-upg-domain i { color: #94a3b8; }

.gh-upg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gh-upg-plan { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.gh-upg-plan:hover { border-color: #f3b4ab; box-shadow: 0 10px 26px rgb(15 23 42 / 0.06); }
.gh-upg-plan header { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.gh-upg-group { display: block; margin-bottom: 2px; color: var(--gh-muted); font-size: 0.78rem; font-weight: 700; }
.gh-upg-plan h3 { margin: 0; color: var(--gh-text); font-size: 1.2rem; font-weight: 800; }
.gh-upg-desc { flex: 1; margin-bottom: 16px; color: var(--gh-text); font-size: 0.88rem; }
.gh-upg-desc ul { margin: 0; padding: 0; list-style: none; }
.gh-upg-desc li { position: relative; margin: 0 0 7px; padding-left: 24px; }
.gh-upg-desc li::before { content: "\f00c"; position: absolute; top: 1px; left: 0; color: #16a34a; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-size: 0.8rem; font-weight: 900; }
.gh-upg-desc p { margin: 0 0 8px; }
.gh-upg-form { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f5; }
.gh-upg-form select { margin-bottom: 10px; }
.gh-upg-form .btn { min-height: 42px; }
.gh-upg-price { margin: 0 0 10px; color: var(--gh-text); font-size: 1.1rem; font-weight: 800; }
.gh-upg-price small { color: var(--gh-muted); font-size: 0.8rem; font-weight: 600; }

.gh-upg-notice { max-width: 640px; padding: 28px 26px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; text-align: center; }
.gh-upg-notice-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: #fdf3e2; color: #b45309; font-size: 1.2rem; }
.gh-upg-notice p { margin: 0 0 18px; color: var(--gh-text); }
.gh-upg-notice-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.gh-upg-opts { display: grid; }
.gh-upg-opt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #eef1f5; }
.gh-upg-opt.is-head { padding-top: 0; border-top: 0; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-upg-opt b { color: var(--gh-text); font-weight: 800; }
.gh-upg-was { color: var(--gh-muted); font-weight: 600; }
.gh-upg-qty { display: inline-flex; align-items: center; gap: 8px; }
.gh-upg-qty .form-control { width: 90px; }
.gh-upg-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.gh-upg-actions { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eef1f5; }

.gh-upg-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.gh-upg-side > .gh-upg-card:last-child { margin-bottom: 0; }
.gh-upg-items { margin: 0 0 6px; padding: 0; list-style: none; }
.gh-upg-items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #eef1f5; }
.gh-upg-items li:first-child { border-top: 0; padding-top: 0; }
.gh-upg-change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gh-muted); font-weight: 600; }
.gh-upg-change i { color: #94a3b8; font-size: 0.78rem; }
.gh-upg-change b { color: var(--gh-text); font-weight: 800; }
.gh-upg-amt { color: var(--gh-text); font-weight: 800; }
.gh-upg-totals { display: grid; gap: 8px; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--gh-border); }
.gh-upg-totals > div { display: flex; justify-content: space-between; gap: 16px; }
.gh-upg-totals dt { margin: 0; color: var(--gh-muted); font-weight: 600; }
.gh-upg-totals dd { margin: 0; color: var(--gh-text); font-weight: 700; }
.gh-upg-totals .is-total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--gh-border); }
.gh-upg-totals .is-total dt, .gh-upg-totals .is-total dd { color: var(--gh-text); font-size: 1.05rem; font-weight: 800; }
.gh-upg-note { display: flex; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf3e2; color: #92400e; font-size: 0.84rem; }
.gh-upg-note i { margin: 3px 0 0 !important; }
.gh-upg-due { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; padding-top: 14px; border-top: 1px solid #eef1f5; color: var(--gh-muted); font-weight: 600; }
.gh-upg-due b { color: var(--gh-text); font-size: 1.15rem; font-weight: 800; }
.gh-upg-side .btn-block { min-height: 44px; }
.gh-upg-h label { margin: 0; font: inherit; }

@media (max-width: 991.98px) {
  .gh-upg-sum { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .gh-upg-opt { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gh-upg-opt.is-head { display: none; }
  .gh-upg-domain { margin-left: 0; }
}

/* Upgrade: plan dropdown + the chosen plan's card */
.gh-upg-pick { max-width: 760px; }
.gh-upg-pick .gh-upg-h { display: block; }
.gh-upg-pick select { min-height: 46px; font-size: 0.95rem; font-weight: 600; }
.gh-upg-hint { margin: 10px 0 0; color: var(--gh-muted); font-size: 0.86rem; }
.gh-upg-hint[hidden], .gh-upg-plan[hidden] { display: none; }
.gh-upg-plans { max-width: 1100px; }
.gh-upg-plan.is-wide { margin-bottom: 18px; }
.gh-upg-plan.is-wide .gh-upg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 24px; align-items: start; }
.gh-upg-plan.is-wide .gh-upg-desc { margin: 0; }
.gh-upg-plan.is-wide .gh-upg-desc ul { columns: 2; column-gap: 28px; }
.gh-upg-plan.is-wide .gh-upg-desc li { break-inside: avoid; }
.gh-upg-plan.is-wide .gh-upg-form { margin: 0; padding: 18px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; }
.gh-upg-formnote { margin: 10px 0 0; color: var(--gh-muted); font-size: 0.78rem; text-align: center; }
@media (max-width: 991.98px) {
  .gh-upg-plan.is-wide .gh-upg-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .gh-upg-plan.is-wide .gh-upg-desc ul { columns: 1; }
}
.gh-upg-pick, .gh-upg-plans { max-width: 1040px; }

/* Upgrade: plan header with billing cycle + button; description lists as boxes, three per row */
.gh-upg-plan.is-wide .gh-upg-plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form { display: grid; grid-template-columns: minmax(200px, 260px) auto; grid-template-areas: "label label" "select button" "note note"; gap: 4px 10px; align-items: end; margin: 0; padding: 0; border: 0; background: transparent; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form .gh-upg-label { grid-area: label; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form select { grid-area: select; margin: 0; min-height: 42px; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form .gh-upg-price { grid-area: select; margin: 0; align-self: center; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form .btn { grid-area: button; width: auto; min-height: 42px; padding: 0 20px; white-space: nowrap; }
.gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-formnote { grid-area: note; margin: 4px 0 0; text-align: left; }
.gh-upg-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 !important; }
.gh-upg-boxes > br, .gh-upg-boxes ul br { display: none; }
.gh-upg-plan.is-wide .gh-upg-boxes ul { columns: auto; display: grid; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; }
.gh-upg-boxes ul::before { display: block; margin: 0 0 4px; color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-upg-boxes ul.main::before { content: "Plan highlights"; }
.gh-upg-boxes ul.extra::before { content: "Also included"; }
.gh-upg-boxes ul[title]::before { content: attr(title); }
.gh-upg-boxes ul.main { border-color: #f3c9c2; background: #fffaf9; }
.gh-upg-boxes li { margin: 0; line-height: 1.4; }
.gh-upg-boxes li[title] { cursor: help; }
.gh-upg-boxes li.no { color: var(--gh-muted); }
.gh-upg-boxes li.no::before { content: "\f00d"; color: #b91c1c; }
.gh-upg-boxes p { margin: 0; }
@media (max-width: 1199.98px) {
  .gh-upg-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .gh-upg-boxes { grid-template-columns: minmax(0, 1fr); }
  .gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "select" "button" "note"; width: 100%; }
  .gh-upg-plan.is-wide .gh-upg-plan-head .gh-upg-form .btn { width: 100%; }
}
.gh-upg-plan.is-wide .gh-upg-boxes ul { align-content: start; }

/* Upgrade: current plan | plan dropdown on one row; chosen plan full width, four boxes per row */
.gh-upg-toprow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.gh-upg-toprow > * { margin: 0 !important; }
.gh-upg-toprow > :only-child { grid-column: 1 / -1; }
.gh-upg-toprow .gh-upg-current { align-content: center; }
.gh-upg-toprow .gh-upg-pick { max-width: none; display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; }
.gh-upg-toprow .gh-upg-pick .gh-upg-label { margin-bottom: 6px; }
.gh-upg-toprow .gh-upg-hint { margin-top: 8px; }
.gh-upg-plans { max-width: none; }
.gh-upg-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1399.98px) {
  .gh-upg-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .gh-upg-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .gh-upg-toprow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .gh-upg-boxes { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Standard pages (html.gh-page-std): cancel request, invoice payment, mass pay, add funds, contact,
   SSL configure, bulk domains, downloads, ticket feedback, quotes, domain pricing, sub-user pages...
   One compact centred column (max 880px), sidebar hidden (footer hook 10), page heading from the
   thin Genhost templates, and the account pages' card / form / table look.
   ========================================================================== */
html.gh-page-std #main-body .primary-content.gh-std-full { flex: 0 0 100%; max-width: 880px; margin: 0 auto; }
html.gh-page-std #main-body .primary-content { min-width: 0; }
.gh-std > .gh-page-head { margin-bottom: 18px; }
.gh-std .gh-head-tools .btn i { margin-right: 7px; }
html.gh-page-std .primary-content > .card,
html.gh-page-std .primary-content > form > .card,
html.gh-page-std .primary-content .card:not(.card-sidebar) { margin-bottom: 18px; border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; box-shadow: none; overflow: hidden; }
html.gh-page-std .primary-content .card-body { padding: 22px 24px; }
html.gh-page-std .primary-content .card-title { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; color: var(--gh-text); font-size: 1.05rem; font-weight: 800; }
html.gh-page-std .primary-content .card-footer { padding: 14px 24px; border-top: 1px solid var(--gh-border); background: #f8fafc; }
html.gh-page-std .primary-content > p { color: var(--gh-muted); font-size: 0.9rem; }
html.gh-page-std .primary-content .form-group { margin-bottom: 16px; }
html.gh-page-std .primary-content label,
html.gh-page-std .primary-content .col-form-label { padding-top: 0; padding-bottom: 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
html.gh-page-std .primary-content .form-group.row > .col-form-label { padding-top: 11px; }
html.gh-page-std .primary-content .form-control,
html.gh-page-std .primary-content .custom-select,
html.gh-page-std .primary-content select.form-control { min-height: 44px; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: none; color: var(--gh-text); font-size: 0.93rem; }
html.gh-page-std .primary-content textarea.form-control { min-height: 96px; }
html.gh-page-std .primary-content .form-control:focus,
html.gh-page-std .primary-content .custom-select:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
html.gh-page-std .primary-content .form-control[disabled],
html.gh-page-std .primary-content .form-control[readonly] { background: #f8fafc; color: var(--gh-muted); }
html.gh-page-std .primary-content .iti, html.gh-page-std .primary-content .intl-tel-input { display: block; width: 100%; }
html.gh-page-std .primary-content .btn { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; }
html.gh-page-std .primary-content .btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }
html.gh-page-std .primary-content .btn-primary,
html.gh-page-std .primary-content .btn-success { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
html.gh-page-std .primary-content .btn-primary:hover,
html.gh-page-std .primary-content .btn-success:hover { border-color: var(--gh-primary-hover); background: var(--gh-primary-hover); }
html.gh-page-std .primary-content .btn-default,
html.gh-page-std .primary-content .btn-info { border: 1px solid #d6dbe3; background: #fff; color: var(--gh-text); }
html.gh-page-std .primary-content .btn-default:hover,
html.gh-page-std .primary-content .btn-info:hover { border-color: #b8c0cc; background: #f8fafc; color: var(--gh-text); }
html.gh-page-std .primary-content .btn-danger { border-color: #f8d4d4; background: #fff; color: var(--gh-danger); }
html.gh-page-std .primary-content .btn-danger:hover { background: #fef4f4; color: var(--gh-danger); }
html.gh-page-std .primary-content .form-check-input { accent-color: var(--gh-primary); }
html.gh-page-std .primary-content .form-check-inline { margin-right: 14px; }
html.gh-page-std .primary-content .form-check-inline label,
html.gh-page-std .primary-content .form-check label { font-weight: 600; }
html.gh-page-std .primary-content .label { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
html.gh-page-std .primary-content .label-success { background: #e8f7ee; color: #15803d; }
html.gh-page-std .primary-content .label-default { background: #f1f5f9; color: #475569; }
html.gh-page-std .primary-content .text-danger { color: var(--gh-danger) !important; }
/* Tables (User Management, Email History) */
html.gh-page-std .primary-content .table { margin: 0; font-size: 0.88rem; }
html.gh-page-std .primary-content .table thead th { padding: 11px 14px; border-top: 0; border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
html.gh-page-std .primary-content .table td { padding: 12px 14px; border-top: 1px solid #eef1f5; color: var(--gh-text); vertical-align: middle; }
html.gh-page-std .primary-content .table-container { border: 1px solid var(--gh-border); border-radius: 14px; background: #fff; overflow-x: auto; }
html.gh-page-std .dataTables_wrapper .dataTables_filter,
html.gh-page-std .dataTables_wrapper .dataTables_length,
html.gh-page-std .dataTables_wrapper .dataTables_info { padding: 12px 16px; color: var(--gh-muted); font-size: 0.82rem; }
html.gh-page-std .dataTables_wrapper .dataTables_filter input,
html.gh-page-std .dataTables_wrapper .dataTables_length select { height: 36px; border: 1px solid #d6dbe3; border-radius: 8px; }
html.gh-page-std .dataTables_wrapper .dataTables_paginate { padding: 10px 16px; }
html.gh-page-std .primary-content .card-header { padding: 16px 24px; border-bottom: 1px solid var(--gh-border); background: #fff; }
html.gh-page-std .primary-content .card-header .card-title { margin: 0; padding: 0; border: 0; }
html.gh-page-std .primary-content h3.card-title, html.gh-page-std .primary-content h6.h3 { font-size: 1.05rem; font-weight: 800; }
html.gh-page-std .primary-content .mw-540 { max-width: none; }
html.gh-page-std .primary-content .row.justify-content-center { margin: 0; }
html.gh-page-std .primary-content .text-muted { color: var(--gh-muted) !important; }
html.gh-page-std .primary-content .table-container, html.gh-page-std .primary-content .table-responsive { border-radius: 12px; }
html.gh-page-std .primary-content .btn i + span, html.gh-page-std .primary-content .btn > i:first-child { margin-right: 6px; }
@media (max-width: 767.98px) {
  html.gh-page-std .primary-content .card-body { padding: 18px 16px; }
}

/* Request cancellation: reason, domain note and type in one card, buttons together. */
.gh-std-clientareacancelrequest .form-group.text-center { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; text-align: left !important; }
.gh-std-clientareacancelrequest .form-group.text-center .col-form-label { padding: 0 !important; }
.gh-std-clientareacancelrequest .form-group.text-center .d-inline-block { flex: 1 1 260px; }
.gh-std-clientareacancelrequest fieldset > .text-center { display: flex; flex-wrap: wrap; gap: 10px; text-align: left !important; }
.gh-std-clientareacancelrequest .alert-warning .form-check { text-align: left !important; padding-left: 1.5rem; }

/* Contact: heading is in the page head; labels above the fields. */
.gh-std-contact .card-body > .mb-4:first-child { display: none; }
.gh-std-contact .card-body.extra-padding { padding: 24px; }
.gh-std-contact .form-group.row { display: block; margin-left: 0; margin-right: 0; }
.gh-std-contact .form-group.row > label { display: block; max-width: none; padding: 0 0 6px !important; text-align: left !important; }
.gh-std-contact .form-group.row > [class*="col-"] { max-width: none; padding: 0; }
.gh-std-contact form > .text-center { text-align: left !important; }

/* Mass pay / add funds / invoice payment: totals and actions. */
html.gh-std-masspay .primary-content .table td:last-child, html.gh-std-masspay .primary-content .table th:last-child { text-align: right; }
html.gh-std-invoice-payment .primary-content iframe { width: 100% !important; border: 1px solid var(--gh-border); border-radius: 12px; }

/* Downloads: search, categories as compact cards, file list. */
.gh-std .kb-search .form-control { min-height: 46px; border-radius: 10px 0 0 10px !important; }
.gh-std .kb-search .btn { min-height: 46px; border-radius: 0 10px 10px 0 !important; }
.gh-std-downloads .row > [class*="col-xl-6"], .gh-std-downloadscat .row > [class*="col-xl-6"] { flex: 0 0 100%; max-width: 100%; }

/* Domain pricing: featured extensions and the price table. */
.gh-std-domain-pricing .featured-tld { border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; overflow: hidden; }
.gh-std-domain-pricing .tld-pricing-header, .gh-std-domain-pricing .tld-row { font-size: 0.9rem; }
.gh-std-domain-pricing .bg-white { border: 1px solid var(--gh-border); border-radius: 12px; overflow: hidden; }

/* Ticket feedback: rating rows. */
.gh-std-ticketfeedback .table td { vertical-align: middle; }

/* Sign-in layout pages (password reset, two-factor login): Twenty-One's card flattened into the form side. */
.gh-auth-inner .row.justify-content-center { display: block; margin: 0; }
.gh-auth-inner .card { margin: 0 !important; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; }
.gh-auth-inner .card-body { padding: 0 !important; }
.gh-auth-inner .card-body > .mb-4 { margin-bottom: 26px !important; }
.gh-auth-inner h6.h3, .gh-auth-inner .card-title { margin: 0 0 6px; color: var(--gh-text); font-size: 1.7rem; font-weight: 800; }
.gh-auth-inner .card-title { margin-bottom: 18px; }
.gh-auth-inner .text-muted { color: var(--gh-muted) !important; font-size: 0.92rem; }
.gh-auth-inner label { margin-bottom: 6px; color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-auth-inner .form-control { min-height: 46px; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: none; }
.gh-auth-inner .input-group-merge .form-control { min-height: 0; border: 0; }
.gh-auth-inner .form-control:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgb(201 48 31 / 0.12); }
.gh-auth-inner .form-group.text-center, .gh-auth-inner p.text-center { text-align: left !important; }
.gh-auth-inner .btn { min-height: 46px; border-radius: 10px; font-weight: 700; }
.gh-auth-inner form .btn-primary { width: 100%; }
.gh-auth-inner .card-footer { margin-top: 24px; padding: 18px 0 0 !important; border-top: 1px solid var(--gh-border); background: transparent; color: var(--gh-muted); text-align: center; }
.gh-auth-inner .card-footer a { color: var(--gh-primary); font-weight: 600; }
.gh-auth-inner .alert { margin-bottom: 18px; }

/* Quote page (viewquote.tpl): accept button and modal, on top of the invoice (.gh-vi) design. */
.gh-vi-pay-btn > .btn { min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; }
.gh-vi-pay-btn > .btn i { margin-right: 6px; }
.gh-vi-modal { border: 0; border-radius: 16px; overflow: hidden; }
.gh-vi-modal .modal-header { padding: 16px 20px; border-bottom: 1px solid var(--gh-border); }
.gh-vi-modal .modal-title { font-size: 1.05rem; font-weight: 800; }
.gh-vi-modal .modal-body { padding: 18px 20px; font-size: 0.9rem; }
.gh-vi-modal .form-check { margin: 12px 0; padding-left: 1.5rem; font-weight: 600; }
.gh-vi-modal .modal-footer { padding: 14px 20px; border-top: 1px solid var(--gh-border); background: #f8fafc; }
.gh-vi-modal .btn { min-height: 40px; border-radius: 10px; font-weight: 700; }

/* Email from Email History (viewemail.tpl, own window). */
.gh-ve-body { margin: 0; padding: 24px 16px; background: #f5f7fb; font-family: inherit; }
.gh-ve { max-width: 760px; margin: 0 auto; border: 1px solid var(--gh-border, #e5e7eb); border-radius: 16px; background: #fff; overflow: hidden; }
.gh-ve-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #eef1f5; }
.gh-ve-ico { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fdecea; color: #d4301f; font-size: 1.05rem; }
.gh-ve-label { display: block; color: #64748b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.gh-ve-head h1 { margin: 2px 0 0; color: #0f172a; font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
.gh-ve-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 22px; border-bottom: 1px solid #eef1f5; list-style: none; }
.gh-ve-files li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #0f172a; font-size: 0.82rem; font-weight: 600; }
.gh-ve-files i { color: #94a3b8; }
.gh-ve-body-frame { padding: 16px 22px; }
.gh-ve-body-frame iframe { display: block; border: 1px solid #eef1f5; border-radius: 10px; }
.gh-ve-foot { padding: 14px 22px; border-top: 1px solid #eef1f5; background: #f8fafc; text-align: right; }
.gh-ve-foot .btn { min-height: 40px; padding: 0 20px; border-radius: 10px; font-weight: 700; }
/* Image captcha on standard and sign-in-layout pages: same look as the login page. */
html.gh-page-std .primary-content .text-center.margin-bottom, .gh-auth-inner .text-center.margin-bottom { margin-bottom: 18px; text-align: left !important; }
html.gh-page-std .primary-content .text-center.margin-bottom > .row, .gh-auth-inner .text-center.margin-bottom > .row { display: block; margin: 0; }
html.gh-page-std .primary-content .text-center.margin-bottom > .row > [class*="col-"], .gh-auth-inner .text-center.margin-bottom > .row > [class*="col-"] { max-width: 420px; margin: 0 !important; padding: 0 !important; }
html.gh-page-std #default-captcha-domainchecker, .gh-auth-inner #default-captcha-domainchecker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; text-align: left !important; }
html.gh-page-std #default-captcha-domainchecker p, .gh-auth-inner #default-captcha-domainchecker p { flex: 0 0 100%; margin: 0; color: var(--gh-muted); font-size: 0.82rem; line-height: 1.45; }
html.gh-page-std #default-captcha-domainchecker > [class*="col-"], .gh-auth-inner #default-captcha-domainchecker > [class*="col-"] { flex: 1 1 0; width: auto; max-width: none; padding: 0 !important; }
html.gh-page-std #default-captcha-domainchecker > .captchaimage, .gh-auth-inner #default-captcha-domainchecker > .captchaimage { flex: 0 0 auto; }
html.gh-page-std .captchaimage img, .gh-auth-inner .captchaimage img { display: block; height: 42px; width: auto; border: 1px solid #d6dbe3; border-radius: 10px; }
html.gh-page-std #inputCaptcha, .gh-auth-inner #inputCaptcha { width: 100% !important; height: 42px; min-height: 42px; margin: 0 !important; border: 1px solid #d6dbe3; border-radius: 10px; }
/* Domain pricing: category filters as pills, compact heading and currency switch. */
.gh-std-domain-pricing .domain-pricing > h4 { margin: 4px 0 12px; color: var(--gh-text); font-size: 1rem; font-weight: 800; }
.gh-std-domain-pricing .currency-selector { min-height: 38px !important; font-size: 0.86rem !important; }
.gh-std-domain-pricing .tld-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gh-std-domain-pricing .tld-filters .badge { padding: 7px 12px; border: 1px solid var(--gh-border); border-radius: 999px; background: #fff; color: var(--gh-text); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.gh-std-domain-pricing .tld-filters .badge:hover { border-color: #f3b4ab; color: var(--gh-primary); }
.gh-std-domain-pricing .tld-filters .badge.badge-success, .gh-std-domain-pricing .tld-filters .badge.active { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
/* Standard pages: buttons centre their text; light table stripes; mass pay totals aligned right. */
.gh-std .gh-head-tools .btn, html.gh-page-std .primary-content .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
html.gh-page-std .primary-content .btn-block { display: flex; width: 100%; }
html.gh-page-std .primary-content .table-striped tbody tr:nth-of-type(odd) { background: #fbfcfe; }
html.gh-page-std .primary-content .table-striped tbody tr:nth-of-type(even) { background: #fff; }
html.gh-page-std .primary-content .table { border: 1px solid var(--gh-border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
html.gh-page-std .primary-content .table td, html.gh-page-std .primary-content .table th { border-left: 0; border-right: 0; }
html.gh-std-masspay .primary-content .masspay-total td, html.gh-std-masspay .primary-content tr.masspay-total td { background: #f8fafc; text-align: right; font-weight: 700; }
html.gh-std-masspay .primary-content .masspay-invoice-detail td { padding-top: 8px; padding-bottom: 8px; color: var(--gh-muted); font-size: 0.84rem; }
html.gh-std-ticketfeedback .primary-content .table { width: 100%; }

/* ==========================================================================
   VPS page (SolusVM 2: modules/servers/solusvm2vps/overview.tpl, error.tpl). Same cards as the cPanel
   page; power controls, live state, traffic, graphs, backup / snapshot tabs and dialogs.
   ========================================================================== */
.gh-vps .gh-pd-col > .gh-vps-traffic { flex: 1; }
.gh-vps-state { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.gh-vps-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gh-vps-state.is-on { background: #e8f7ee; color: #15803d; }
.gh-vps-state.is-on::before { box-shadow: 0 0 0 3px rgb(21 128 61 / 0.18); }
.gh-vps-state.is-off { background: #fdecec; color: #b91c1c; }
.gh-vps-state.is-busy { background: #fdf3e2; color: #b45309; }
.gh-vps-state.is-busy::before { animation: gh-vps-blink 1s ease-in-out infinite; }
@keyframes gh-vps-blink { 50% { opacity: 0.3; } }
.gh-vps-power #suspended-alert { margin: 0 0 12px; }
.gh-vps-power-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gh-vps-power-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.gh-vps-power-btns .btn i { font-size: 0.75rem; }
.gh-vps-power-btns #btn-start-server:not(:disabled) { border-color: #bbe5c9; color: #15803d; }
.gh-vps-power-btns .gh-vps-danger:not(:disabled) { color: #b91c1c; }
.gh-vps-power-btns .btn:disabled, .gh-vps-tool:disabled { opacity: 0.45; cursor: not-allowed; }
.gh-vps-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.gh-vps-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 10px 6px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; color: var(--gh-text); font-size: 0.78rem; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.gh-vps-tool i { color: var(--gh-primary); font-size: 1rem; }
.gh-vps-tool:hover:not(:disabled) { border-color: #f3b4ab; background: #fff7f6; }
.gh-vps-traffic-val { margin: 0 0 10px; color: var(--gh-muted); font-size: 0.86rem; }
.gh-vps-traffic-val b { color: var(--gh-text); font-size: 1.15rem; font-weight: 800; }
.gh-vps-traffic .gh-pd-bar[hidden] { display: none; }
.gh-vps-pct { color: var(--gh-muted); font-size: 0.78rem; font-weight: 700; }

.gh-vps-graphs { margin: 4px 0 18px; }
.gh-vps-graphs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.gh-vps-graphs-head h2 { margin: 0; color: var(--gh-text); font-size: 1.05rem; font-weight: 800; }
.gh-vps-graphs-head p { margin: 2px 0 0; color: var(--gh-muted); font-size: 0.84rem; }
.gh-vps-graphs-head select { width: 180px; min-height: 38px; border-radius: 10px; font-size: 0.86rem; }
.gh-vps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gh-vps-chart { display: flex; flex-direction: column; margin: 0; padding: 16px 18px 14px; }
.gh-vps-chart.is-wide { grid-column: 1 / -1; }
.gh-vps-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.gh-vps-chart-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gh-text); font-size: 0.95rem; font-weight: 800; }
.gh-vps-chart-head h3 i { color: #94a3b8; font-size: 0.9em; }
.gh-vps-chart-head b { color: var(--gh-text); font-size: 0.82rem; font-weight: 800; }
.gh-vps-canvas { position: relative; height: 210px; }
.gh-vps-canvas canvas { position: absolute; inset: 0; }
.gh-vps .powered-by-360monitoring { margin: 8px 0 0; color: #94a3b8; font-size: 0.74rem; text-align: right; }
.gh-vps-opts { margin-bottom: 18px; }
.gh-vps-opts .gh-pd-kv.is-rows > div { grid-template-columns: minmax(140px, 32%) minmax(0, 1fr); padding: 8px 0; border-top: 1px solid #eef1f5; }
.gh-vps-opts .gh-pd-kv.is-rows > div:first-child { border-top: 0; }

.gh-vps-tablecard { margin-bottom: 0; }
.gh-vps-tablecard .gh-pd-card-head .btn i { margin-right: 6px; }
.gh-vps-tablewrap { border: 1px solid var(--gh-border); border-radius: 10px; overflow-x: auto; }
.gh-vps-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.86rem; }
.gh-vps-table th { padding: 10px 14px; border-bottom: 1px solid var(--gh-border); background: #f8fafc; color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.gh-vps-table td { padding: 10px 14px; border-top: 1px solid #eef1f5; color: var(--gh-text); vertical-align: middle; }
.gh-vps-table tbody tr:first-child td { border-top: 0; }
.gh-vps-table .gh-vps-act { text-align: right; white-space: nowrap; }
.gh-vps-table .gh-vps-act .btn { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; }
.gh-vps-empty { padding: 22px 14px !important; color: var(--gh-muted) !important; text-align: center; }

.gh-vps-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.gh-vps-modal .modal-header { padding: 16px 20px; border-bottom: 1px solid var(--gh-border); }
.gh-vps-modal .modal-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.02rem; font-weight: 800; }
.gh-vps-modal .modal-title i { color: var(--gh-primary); }
.gh-vps-modal .modal-body { padding: 18px 20px; font-size: 0.9rem; }
.gh-vps-modal .modal-footer { padding: 14px 20px; border-top: 1px solid var(--gh-border); background: #f8fafc; }
.gh-vps-modal .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; }
.gh-vps-modal label { color: var(--gh-text); font-size: 0.86rem; font-weight: 700; }
.gh-vps-modal .form-control, .gh-vps-modal .custom-select { min-height: 42px; border: 1px solid #d6dbe3; border-radius: 10px; }
.gh-vps-modal .form-check { margin: 10px 0; padding-left: 1.6rem; }
.gh-vps-modal .form-check-label { font-weight: 600; }
.gh-vps-warn { display: flex; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #fdf3e2; color: #92400e; font-size: 0.85rem; font-weight: 600; }
.gh-vps-warn i { margin-top: 3px; }
.gh-vps-pwrow { display: flex; gap: 8px; }
.gh-vps-pwrow .form-control { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gh-vps-newpw { padding: 12px 14px; border: 1px dashed var(--gh-border); border-radius: 10px; background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; overflow-wrap: anywhere; }
.gh-vps-modal .rescue-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.gh-vps-modal .boot-mode-button { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; padding: 12px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; color: var(--gh-text); text-align: left; cursor: pointer; }
.gh-vps-modal .boot-mode-button--pushed { border-color: var(--gh-primary); background: #fff7f6; box-shadow: 0 0 0 3px rgb(212 48 31 / 0.1); }
.gh-vps-modal .boot-mode-button-image { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; color: var(--gh-primary); }
.gh-vps-modal .boot-mode-button-title { font-size: 0.88rem; font-weight: 800; }
.gh-vps-modal .boot-mode-button-description { color: var(--gh-muted); font-size: 0.78rem; line-height: 1.4; }
.gh-vps-note { margin: 0; color: var(--gh-muted); font-size: 0.82rem; }
.gh-vps-modal #reinstall-form .form-group { margin: 10px 0 0; }

.gh-pd-top.is-error { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.gh-vps-error { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 32px 24px; text-align: center; }
.gh-vps-error h3 { margin: 0 0 6px; color: var(--gh-text); font-size: 1.08rem; font-weight: 800; }
.gh-vps-error p { max-width: 460px; margin: 0 0 16px; color: var(--gh-muted); font-size: 0.88rem; }
.gh-vps-error-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gh-vps-error-btns .btn i { margin-right: 6px; }

@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-vps .gh-pd-top > .gh-pd-col { flex-direction: row; align-items: stretch; }
  .gh-vps .gh-pd-top > .gh-pd-col > .gh-pd-card { flex: 1 1 0; }
}
@media (max-width: 991.98px) {
  .gh-vps-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-pd-top.is-error { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .gh-vps-power-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-vps-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-vps-modal .rescue-container { grid-template-columns: minmax(0, 1fr); }
  .gh-vps-canvas { height: 180px; }
  .gh-vps-graphs-head select { width: 100%; }
}

/* VPS Resources row (vCPU, RAM, disk, bandwidth from the SolusVM API) */
.gh-pd-kv > div[hidden] { display: none !important; }
.gh-vps-specs { display: flex !important; flex-wrap: wrap; gap: 6px; }
.gh-vps-spec { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--gh-border); border-radius: 999px; background: #fbfcfe; color: var(--gh-text); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.gh-vps-spec i { color: var(--gh-primary); font-size: 0.75rem; }
.gh-pd-host .gh-pd-kv.is-rows dd.gh-vps-specs { flex-direction: row; align-items: center; }

/* VPS: Server Information + Configuration stacked in the middle column. */
.gh-vps .gh-vps-midcol > .gh-vps-info { flex: 1; }
.gh-vps .gh-pd-col > .gh-pd-card[hidden] { display: none; }
.gh-vps-cfg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gh-vps-cfg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; text-align: center; min-width: 0; }
.gh-vps-cfg-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; background: #0f172a; color: #fff; font-size: 0.8rem; }
.gh-vps-cfg b { color: var(--gh-text); font-size: 1rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.gh-vps-cfg small { color: var(--gh-muted); font-size: 0.72rem; font-weight: 700; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-vps .gh-pd-top > .gh-vps-midcol { flex-direction: column; }
}
@media (max-width: 575.98px) {
  .gh-vps-cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-vps .gh-pd-top > .gh-vps-midcol { grid-column: auto; }
}

/* VPS Configuration: spec strip (label + value, thin dividers), replaces the icon tiles. */
.gh-vps-cfg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--gh-border); border-radius: 12px; background: #fbfcfe; overflow: hidden; }
.gh-vps-spec2 { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; }
.gh-vps-spec2 + .gh-vps-spec2 { border-left: 1px solid var(--gh-border); }
.gh-vps-spec2-k { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.gh-vps-spec2-k i { width: 14px; color: #94a3b8; font-size: 0.78rem; text-align: center; }
.gh-vps-spec2-v { display: flex; align-items: baseline; gap: 4px; min-width: 0; color: var(--gh-text); }
.gh-vps-spec2-v b { font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.gh-vps-spec2-v small { color: var(--gh-muted); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 575.98px) {
  .gh-vps-cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-vps-spec2:nth-child(3) { border-left: 0; }
  .gh-vps-spec2:nth-child(n+3) { border-top: 1px solid var(--gh-border); }
}
.gh-vps-spec2 { padding: 13px 12px; }
.gh-vps-spec2-k { gap: 6px; font-size: 0.64rem; letter-spacing: 0.04em; }
.gh-vps-spec2-v b { font-size: 1.25rem; }
.gh-vps-spec2-v.is-text b { font-size: 1.02rem; line-height: 1.5; }

/* VPS: VPS Plan + Server Login stacked in the left column. */
.gh-vps .gh-vps-leftcol > .gh-pd-plan { flex: 0 0 auto; }
.gh-vps .gh-vps-leftcol > .gh-vps-login { flex: 1; }
.gh-vps-leftcol .gh-pd-plan .gh-pd-actions.is-plan { margin-top: 4px; }
.gh-vps-pw { letter-spacing: 0.08em; }
.gh-vps-pw.is-shown { letter-spacing: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; overflow-wrap: anywhere; }
.gh-vps-pwval { display: flex !important; flex-wrap: wrap; flex-direction: row !important; align-items: center !important; gap: 4px 6px; }
.gh-vps-pwval .gh-copy:disabled { opacity: 0.5; cursor: progress; }
.gh-vps-pw-msg { margin: 10px 0 0; color: #b91c1c; font-size: 0.8rem; font-weight: 600; }
.gh-vps-pw-msg[hidden] { display: none; }
.gh-vps-login-note { display: flex; gap: 7px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eef1f5; color: var(--gh-muted); font-size: 0.78rem; line-height: 1.45; }
.gh-vps-login-note i { margin-top: 2px; color: #94a3b8; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-vps .gh-pd-top > .gh-vps-leftcol { grid-column: auto; flex-direction: column; }
}

/* VPS top: two even rows of three cards (no column stacks, no stretched empty cards). */
.gh-pd-top.gh-vps-top { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.gh-pd-top.gh-vps-top > .gh-pd-card { display: flex; flex-direction: column; margin: 0; padding: 18px 20px; }
.gh-pd-top.gh-vps-top > .gh-pd-card[hidden] { display: none; }
.gh-vps-top .gh-pd-plan .gh-pd-actions.is-plan { margin-top: auto; }
.gh-vps-top .gh-vps-login .gh-vps-login-note { margin-top: auto; }
.gh-vps-top .gh-vps-login .gh-pd-kv { margin-bottom: 12px; }
.gh-vps-top .gh-vps-traffic .gh-pd-bar { margin-top: auto; }
.gh-vps-top .gh-vps-traffic .gh-vps-traffic-val { margin-bottom: 14px; }
@media (max-width: 1399.98px) {
  .gh-pd-top.gh-vps-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .gh-pd-top.gh-vps-top { grid-template-columns: minmax(0, 1fr); }
}
/* Laptops (2 columns): pair cards of similar height; Power Control and Traffic across the width. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .gh-vps-top > .gh-pd-plan { order: 1; }
  .gh-vps-top > .gh-vps-login { order: 2; }
  .gh-vps-top > .gh-vps-info { order: 3; }
  .gh-vps-top > .gh-vps-config { order: 4; }
  .gh-vps-top > .gh-vps-power { order: 5; grid-column: 1 / -1; }
  .gh-vps-top > .gh-vps-traffic { order: 6; grid-column: 1 / -1; }
  .gh-vps-top > .gh-vps-power .gh-vps-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- Suspended service (clientareaproductdetails.tpl + includes/hooks/genhost_suspended.php):
        the service area is blurred and locked; a notice with Pay invoice / Contact Support sits on top ---- */
.gh-pdf.is-suspended { position: relative; min-height: 460px; }
.gh-pdf.is-suspended > :not(.gh-susp):not(script) { filter: blur(3px) grayscale(.35); opacity: .5; pointer-events: none; user-select: none; }
.gh-susp { position: absolute; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px 24px; background: rgba(246, 247, 250, .55); border-radius: 14px; }
.gh-susp-card { position: sticky; top: 96px; width: 100%; max-width: 520px; background: #fff; border: 1px solid #ececf0; border-top: 4px solid var(--gh-primary); border-radius: 14px; box-shadow: 0 18px 48px rgba(17, 24, 39, .14); padding: 30px 30px 22px; text-align: center; }
.gh-susp-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--gh-primary-soft); color: var(--gh-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.gh-susp-card h2 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.gh-susp-card p { color: #5b6170; margin: 0 0 20px; line-height: 1.55; }
.gh-susp-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.gh-susp-btns .btn { min-width: 150px; }
.gh-susp-card small { color: #9096a2; }
@media (max-width: 575px) { .gh-susp { padding-top: 28px; } .gh-susp-card { padding: 24px 18px 18px; } .gh-susp-btns .btn { width: 100%; } }

/* ---- cPanel service page: Account overview, SSL status, Email deliverability (includes/hooks/genhost_cpinfo.php) ---- */
.gh-cpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: stretch; }
.gh-cpi-card { margin: 0; display: flex; flex-direction: column; height: 100%; }
.gh-cpi-card .gh-cpi-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.gh-cpi-card .gh-cpi-upd { margin-top: auto; padding-top: 10px; }
.gh-cpi-card.is-loading .gh-cpi-body { opacity: .55; }
.gh-cpi-card h2 i { color: var(--gh-primary); margin-right: 8px; }
.gh-cpi-refresh { border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; width: 32px; height: 32px; color: #6b7280; cursor: pointer; flex: none; }
.gh-cpi-refresh:hover { color: var(--gh-primary); border-color: var(--gh-primary); }
.gh-cpi-card.is-loading .gh-cpi-refresh i { animation: gh-cpi-spin 1s linear infinite; }
@keyframes gh-cpi-spin { to { transform: rotate(360deg); } }
.gh-cpi-wait, .gh-cpi-empty { color: #6b7280; margin: 0; }
.gh-cpi-usage { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gh-cpi-usage-top { display: flex; justify-content: space-between; font-size: .88rem; }
.gh-cpi-usage-top b { font-variant-numeric: tabular-nums; }
.gh-cpi-usage-top b.is-mid { color: #b45309; } .gh-cpi-usage-top b.is-high { color: #b3261e; }
.gh-cpi-bar { height: 6px; border-radius: 99px; background: #eef0f3; margin-top: 5px; overflow: hidden; }
.gh-cpi-bar span { display: block; height: 100%; background: #22a05a; border-radius: 99px; }
.gh-cpi-bar.is-mid span { background: #f59e0b; }
.gh-cpi-bar.is-high span { background: #d93025; }
.gh-cpi-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.gh-cpi-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f0f1f4; font-size: .88rem; }
.gh-cpi-list li:first-child { border-top: 0; }
.gh-cpi-dom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gh-cpi-st { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: .8rem; font-weight: 700; color: #6b7280; white-space: nowrap; }
.gh-cpi-st small { font-weight: 400; color: #9096a2; }
.gh-cpi-st.is-ok { color: #137333; } .gh-cpi-st.is-warn { color: #b45309; } .gh-cpi-st.is-bad { color: #b3261e; }
.gh-cpi-mail { font-size: .85rem; }
.gh-cpi-mail-h, .gh-cpi-mail-r { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 8px 0; }
.gh-cpi-mail-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; border-bottom: 1px solid #f0f1f4; }
.gh-cpi-mail-r { border-top: 1px solid #f0f1f4; } .gh-cpi-mail-h + .gh-cpi-mail-r { border-top: 0; }
.gh-cpi-mail .gh-cpi-st { flex-direction: row; gap: 4px; align-items: center; }
.gh-cpi-link { border: 0; background: none; padding: 0; color: var(--gh-primary); font-weight: 700; font-size: .78rem; cursor: pointer; text-decoration: underline; }
.gh-cpi-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.gh-cpi-note, .gh-cpi-upd { margin: 10px 0 0; font-size: .8rem; color: #6b7280; }
.gh-cpi-upd { font-size: .74rem; color: #9096a2; }
/* Self-Service Tools card (templates/.../cpanel/overview.tpl; data-gh-cpi-card="selfservice") */
.gh-sst-tool { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid #ececf0; border-radius: 10px; }
.gh-sst-tool + .gh-sst-tool { margin-top: 12px; }
.gh-sst-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #23272e; color: #fff; font-size: 1.05rem; }
.gh-sst-main { flex: 1 1 auto; min-width: 0; }
.gh-sst-head { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.gh-sst-head b { font-weight: 700; }
.gh-sst-head .gh-cpi-st { flex-direction: row; gap: 5px; align-items: center; }
.gh-sst-desc { margin: 4px 0 0; color: #6b7280; font-size: .82rem; line-height: 1.5; }
.gh-sst-act { flex: none; align-self: center; }
.gh-sst-act .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .gh-sst-tool { flex-wrap: wrap; }
  .gh-sst-act { width: 100%; }
  .gh-sst-act .btn { width: 100%; }
}
.gh-cpi-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; font-size: .84rem; }
.gh-cpi-msg.is-ok { background: #e6f4ea; color: #137333; } .gh-cpi-msg.is-bad { background: #fce8e6; color: #b3261e; }
@media (max-width: 1499px) { .gh-cpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gh-cpi { grid-template-columns: minmax(0, 1fr); } }

/* ---- cPanel page: Domains, Email, Disk usage, Security & backups cards ---- */
.gh-cpi .gh-cpi-wide { grid-column: 1 / -1; }
.gh-cpi .gh-cpi-span2 { grid-column: span 2; }
.gh-cpi-scroll { overflow-x: auto; }
.gh-cpi-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.gh-cpi-table th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; padding: 8px 10px; border-bottom: 1px solid #f0f1f4; text-align: left; white-space: nowrap; }
.gh-cpi-table td { padding: 10px; border-top: 1px solid #f0f1f4; vertical-align: middle; }
.gh-cpi-table tbody tr:first-child td { border-top: 0; }
.gh-cpi-table .gh-cpi-st { flex-direction: row; gap: 5px; align-items: center; }
.gh-cpi-sub { display: block; font-size: .74rem; color: #9096a2; margin-top: 2px; }
.gh-cpi-nowrap { white-space: nowrap; }
.gh-cpi-php { min-width: 120px; max-width: 160px; }
.gh-cpi-switch { position: relative; display: inline-block; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.gh-cpi-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.gh-cpi-switch span { position: absolute; inset: 0; background: #d1d5db; border-radius: 99px; transition: background .2s; }
.gh-cpi-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.gh-cpi-switch input:checked + span { background: #22a05a; }
.gh-cpi-switch input:checked + span::before { transform: translateX(18px); }
.gh-cpi-switch input:focus-visible + span { outline: 2px solid var(--gh-primary); outline-offset: 2px; }
.gh-cpi-switch.is-off { cursor: not-allowed; opacity: .55; }
.gh-cpi-tabs { display: flex; gap: 4px; margin: -4px 0 12px; border-bottom: 1px solid #f0f1f4; }
.gh-cpi-tabs button { border: 0; background: none; padding: 6px 12px; font-weight: 600; font-size: .86rem; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.gh-cpi-tabs button.is-on { color: var(--gh-primary); border-bottom-color: var(--gh-primary); }
.gh-cpi-boxes { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.gh-cpi-disk-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.gh-cpi-disk-top b { font-size: 1.5rem; } .gh-cpi-disk-top span { color: #6b7280; font-size: .86rem; }
.gh-cpi-stack { display: flex; height: 10px; border-radius: 99px; background: #eef0f3; overflow: hidden; }
.gh-cpi-stack span { display: block; height: 100%; }
.gh-cpi-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
.gh-cpi-legend li { display: flex; align-items: center; gap: 8px; }
.gh-cpi-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gh-cpi-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.gh-cpi-subh { margin: 14px 0 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.gh-cpi-sec { display: grid; gap: 10px; }
.gh-cpi-tool { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border: 1px solid #ececf0; border-radius: 10px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.gh-cpi-tool:hover { border-color: var(--gh-primary); box-shadow: 0 4px 14px rgba(17,24,39,.08); text-decoration: none; color: inherit; }
.gh-cpi-tool span { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.gh-cpi-tool span.is-backup { background: #e8f0fe; color: #1a73e8; } .gh-cpi-tool span.is-shield { background: #e6f4ea; color: #137333; }
.gh-cpi-tool b { font-size: .92rem; } .gh-cpi-tool small { color: #6b7280; font-size: .78rem; }
.gh-cpi-errform { display: flex; gap: 8px; }
.gh-cpi-errform select { flex: 1; min-width: 0; }
.gh-cpi-errs { list-style: none; margin: 10px 0 0; padding: 0; max-height: 240px; overflow-y: auto; font-family: Consolas, Menlo, monospace; font-size: .74rem; }
.gh-cpi-errs li { padding: 6px 0; border-top: 1px solid #f0f1f4; word-break: break-word; color: #374151; }
.gh-cpi-errs li small { display: block; color: #9096a2; font-family: inherit; }
@media (max-width: 767px) { .gh-cpi .gh-cpi-span2 { grid-column: auto; } }

/* ---- cPanel page: Website errors tab ---- */
.gh-se-tools { display: flex; gap: 8px; align-items: center; }
.gh-se-tools select { min-width: 200px; }
.gh-se-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gh-se-chip { border: 1px solid #e5e7eb; background: #fff; border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 600; color: #374151; cursor: pointer; }
.gh-se-chip b { margin-left: 4px; font-variant-numeric: tabular-nums; color: #6b7280; }
.gh-se-chip.is-on { border-color: var(--gh-primary); background: var(--gh-primary-soft); color: var(--gh-primary); }
.gh-se-chip:disabled { opacity: .45; cursor: default; }
.gh-se-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.gh-se-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #f0f1f4; font-family: Consolas, Menlo, monospace; font-size: .78rem; color: #374151; word-break: break-word; }
.gh-se-list li:first-child { border-top: 0; }
.gh-se-list small { display: block; color: #9096a2; font-family: inherit; margin-bottom: 2px; }
.gh-se-tag { align-self: start; text-align: center; padding: 2px 6px; border-radius: 6px; font-family: inherit; font-weight: 700; font-size: .72rem; background: #eef1f5; color: #4b5563; }
.gh-se-tag.t-500 { background: #fce8e6; color: #b3261e; } .gh-se-tag.t-403 { background: #fef3e0; color: #8a5300; }
.gh-se-tag.t-404 { background: #e8f0fe; color: #1a56db; } .gh-se-tag.t-modsec { background: #f3e8ff; color: #6b21a8; } .gh-se-tag.t-php { background: #ecfdf5; color: #047857; }
@media (max-width: 575px) { .gh-se-tools select { min-width: 0; flex: 1; } .gh-pd-card-head.has-aside .gh-se-tools { width: 100%; } }

/* Freebies: automatic WHMCS install dialog */
.gh-fb-field select { box-sizing: border-box; width: 100%; padding: 9px 12px; border: 1px solid #d6dbe3; border-radius: 9px; background: #fff; font: inherit; font-size: 0.9rem; }
.gh-fb-field select:focus { border-color: var(--gh-primary); outline: 0; box-shadow: 0 0 0 3px var(--gh-primary-soft); }
.gh-fb-field > .gh-fbi-path, .gh-fb-field > .gh-fbi-pass { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: 0.9rem; }
.gh-fbi-path b { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--gh-muted); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.gh-fbi-path input, .gh-fbi-pass input { flex: 1 1 120px; min-width: 0; }
.gh-fbi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gh-fbi-msg { margin: 0; padding: 10px 12px; border-radius: 9px; background: #fff7f7; border: 1px solid #fecaca; color: #7f1d1d; font-size: 0.85rem; }
.gh-fb-dlg form.is-busy { opacity: 0.85; pointer-events: none; }
@media (max-width: 520px) { .gh-fbi-2 { grid-template-columns: 1fr; } }
