/* =====================================================================
   GrowHosting client area - side-navigation layout for logged-in clients
   (header.tpl adds .gh-app-mode on <body> and the .gh-app wrapper).
   ===================================================================== */
.gh-app-mode {
  --gh-navy: #011b63;
  --gh-navy-deep: #00113f;
  --gh-blue: #0260c2;
  --gh-cyan: #22accf;
  --gh-cyan-soft: #e6f7fc;
  --gh-ink: #17213a;
  --gh-muted: #5f6d86;
  --gh-line: #dfe7f1;
  --gh-bg: #f3f6fb;
  --gh-red: #d92d3a;
  --gh-green: #1f9d6b;
  --gh-teal: #14b8a6;
  --gh-accent: linear-gradient(120deg, #22accf, #19c39b);
  --gh-amber: #b57a00;
  --gh-side: 268px;
  background: var(--gh-bg) !important;
}
.gh-app-mode.gh-app-lock { overflow: hidden; }
.gh-app, .gh-app *, .gh-app *::before, .gh-app *::after { box-sizing: border-box; }
.gh-app { font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.gh-app h1, .gh-app h2, .gh-app h3 { font-family: Poppins, Inter, "Segoe UI", Roboto, Arial, sans-serif; }
.gh-app a { text-decoration: none; }
body.gh-app-mode { margin: 0 !important; }
.gh-app { display: flex; min-height: 100vh; }

/* ---------- Side navigation (light) ---------- */
.gh-app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: var(--gh-side);
  padding: 22px 16px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--gh-line);
  background: #fff;
  color: var(--gh-ink);
}
.gh-app-brand { display: flex; align-items: center; justify-content: space-between; margin: 0 40px 26px 8px; }
.gh-app-logo img { display: block; width: 158px; height: auto; }
.gh-app-close { display: none; width: 34px; height: 34px; border: 1px solid var(--gh-line); border-radius: 9px; background: #fff; color: var(--gh-navy); font-size: 1.4rem; line-height: 1; }
.gh-app-nav__label { margin: 0 10px 8px; color: #8b97ab; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gh-app-nav { display: grid; gap: 2px; }
.gh-app-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #3c4862 !important;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}
.gh-app-nav__icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f2f5fa; transition: background .2s ease; }
.gh-app-nav__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gh-app-nav__link:hover { background: #f6f9fc; color: var(--gh-navy) !important; }
.gh-app-nav__link.is-active { background: var(--gh-cyan-soft); color: var(--gh-navy) !important; font-weight: 800; }
.gh-app-nav__link.is-active::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: -16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gh-cyan); }
.gh-app-nav__link.is-active .gh-app-nav__icon { background: var(--gh-navy); color: #fff; }
.gh-app-nav__badge { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--gh-accent); color: var(--gh-navy-deep); font-size: .72rem; font-weight: 800; text-align: center; }
.gh-app-help {
  margin: auto 0 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gh-navy), #0a3a8c);
  color: #fff;
}
.gh-app-help strong { display: block; font-size: 1rem; }
.gh-app-help p { margin: 4px 0 12px; color: rgba(255, 255, 255, .78); font-size: .82rem; line-height: 1.45; }
.gh-app-help__links { display: flex; gap: 8px; }
.gh-app-help__links a { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff !important; font-size: .82rem; font-weight: 800; text-decoration: none !important; }
.gh-app-help__links a:hover { background: rgba(255, 255, 255, .2); }
.gh-app-help__links .gh-app-help__chat { background: var(--gh-accent); color: var(--gh-navy-deep) !important; }
.gh-app-help__links .gh-app-help__chat:hover { filter: brightness(1.06); }
.gh-app-help svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gh-app-user { display: flex; align-items: center; gap: 8px; padding: 12px 4px 0; border-top: 1px solid var(--gh-line); }
.gh-app-user__link { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: var(--gh-ink) !important; text-decoration: none !important; }
.gh-app-user__avatar { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--gh-cyan), var(--gh-blue)); color: #fff; font-size: .9rem; font-weight: 800; }
.gh-app-user__copy { min-width: 0; line-height: 1.25; }
.gh-app-user__copy strong { display: block; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.gh-app-user__copy small { display: block; color: var(--gh-muted); font-size: .76rem; }
.gh-app-logout { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gh-line); border-radius: 10px; color: var(--gh-muted) !important; }
.gh-app-logout:hover { border-color: var(--gh-red); color: var(--gh-red) !important; }
.gh-app-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh-app-backdrop { display: none; }
.gh-app-logo .gh-app-logo__mark { display: none; }

/* Fold / unfold (wide screens) */
.gh-app-fold { position: absolute; top: 28px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--gh-line); border-radius: 9px; background: #fff; color: var(--gh-muted); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.gh-app-fold:hover { border-color: var(--gh-cyan); color: var(--gh-navy); }
.gh-app-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.gh-app-sidebar, .gh-app-main { transition: width .22s ease, margin-left .22s ease; }
@media (min-width: 992px) {
  .gh-app.is-mini { --gh-side: 84px; }
  .gh-app.is-mini .gh-app-sidebar { padding: 20px 12px 14px; overflow-x: hidden; }
  .gh-app.is-mini .gh-app-brand { justify-content: center; margin: 0 0 12px; }
  .gh-app.is-mini .gh-app-logo .gh-app-logo__full { display: none; }
  .gh-app.is-mini .gh-app-logo .gh-app-logo__mark { display: block; width: 36px; height: 36px; border-radius: 10px; }
  .gh-app.is-mini .gh-app-fold { position: static; margin: 0 auto 16px; }
  .gh-app.is-mini .gh-app-fold svg { transform: rotate(180deg); }
  .gh-app.is-mini .gh-app-nav__label, .gh-app.is-mini .gh-app-nav__text { display: none; }
  .gh-app.is-mini .gh-app-nav__link { justify-content: center; padding: 7px 0; }
  .gh-app.is-mini .gh-app-nav__link.is-active::before { left: -12px; }
  .gh-app.is-mini .gh-app-nav__badge { position: absolute; top: 2px; right: 4px; min-width: 18px; padding: 1px 5px; font-size: .64rem; }
  .gh-app.is-mini .gh-app-help { padding: 8px; background: none; }
  .gh-app.is-mini .gh-app-help strong, .gh-app.is-mini .gh-app-help p, .gh-app.is-mini .gh-app-help__ticket, .gh-app.is-mini .gh-app-help__label { display: none; }
  .gh-app.is-mini .gh-app-help__links a { width: 42px; height: 42px; padding: 0; margin: 0 auto; border-radius: 12px; }
  .gh-app.is-mini .gh-app-help svg { width: 20px; height: 20px; }
  .gh-app.is-mini .gh-app-user { flex-direction: column; padding-top: 12px; }
  .gh-app.is-mini .gh-app-user__link { flex: 0 0 auto; }
  .gh-app.is-mini .gh-app-user__copy { display: none; }
  .gh-app.is-mini .gh-app-logout { flex: 0 0 auto; width: 38px; }
}


/* Wide WHMCS tables scroll inside their card instead of widening the page. */
.gh-app-container .table-container,
.gh-app-container .dataTables_wrapper,
.gh-app-container .listtable { position: relative; max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
.gh-app-container .primary-content,
.gh-app-container .sidebar { min-width: 0; }

/* ---------- Main column and top bar ---------- */
.gh-app-main { display: flex; flex-direction: column; flex: 1; min-width: 0; margin-left: var(--gh-side); }
.gh-app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--gh-line);
  background: rgba(243, 246, 251, .9);
  backdrop-filter: blur(10px);
}
.gh-app-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--gh-line); border-radius: 11px; background: #fff; }
.gh-app-burger svg, .gh-app-tool svg { width: 20px; height: 20px; fill: none; stroke: var(--gh-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh-app-title { min-width: 0; line-height: 1.2; }
.gh-app-title h1 { margin: 0; color: var(--gh-navy); font-size: 1.35rem; font-weight: 800; }
.gh-app-title__sub { color: var(--gh-muted); font-size: .82rem; font-weight: 600; }
.gh-app-new { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--gh-navy); color: #fff !important; font-weight: 800; text-decoration: none !important; transition: background .2s ease; }
.gh-app-new:hover { background: var(--gh-blue); }
.gh-app-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gh-app-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gh-app-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--gh-line); border-radius: 12px; background: #fff; color: var(--gh-navy) !important; font-weight: 800; text-decoration: none !important; }
.gh-app-tool:hover { border-color: var(--gh-cyan); }
.gh-app-tool__dot { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gh-accent); color: var(--gh-navy-deep); font-size: .7rem; font-weight: 800; }
.gh-app-alerts { position: relative; }
.gh-app-user-menu { position: relative; }
.gh-app-user-menu__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 6; display: grid; min-width: 270px; padding: 8px; border: 1px solid var(--gh-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(1, 27, 99, .16); }
.gh-app-user-menu__panel[hidden] { display: none; }
.gh-app-user-menu__panel a { padding: 10px 12px; border-radius: 9px; color: var(--gh-ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.gh-app-user-menu__panel a:hover { background: var(--gh-cyan-soft); color: var(--gh-navy) !important; }
.gh-app-user-menu__panel a.is-strong { color: var(--gh-navy) !important; font-weight: 800; }
.gh-app-user-menu__panel a.is-out { margin-top: 4px; border-top: 1px solid var(--gh-line); border-radius: 0 0 9px 9px; color: var(--gh-muted) !important; }
.gh-app-hi__chev { width: 16px; height: 16px; fill: none; stroke: var(--gh-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh-app-hi { cursor: pointer; font-family: inherit; }
.gh-app-hi:focus { outline: 0; }
.gh-app-hi:focus-visible { outline: 2px solid var(--gh-cyan); outline-offset: 2px; }
.gh-app-hi { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 5px; border: 1px solid var(--gh-line); border-radius: 999px; background: #fff; color: var(--gh-ink) !important; font-size: .9rem; text-decoration: none !important; }
.gh-app-hi:hover { border-color: var(--gh-cyan); }
.gh-app-hi__avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gh-cyan), var(--gh-blue)); color: #fff; font-size: .78rem; font-weight: 800; }
.gh-app-hi__text strong { color: var(--gh-navy); }
.gh-app-alerts__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; width: 320px; padding: 14px; border: 1px solid var(--gh-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(1, 27, 99, .16); }
.gh-app-alerts__title { display: block; margin-bottom: 8px; color: var(--gh-navy); }
.gh-app-alerts__item { display: block; padding: 10px 12px; border-left: 3px solid var(--gh-cyan); border-radius: 8px; background: var(--gh-bg); color: var(--gh-ink) !important; font-size: .88rem; }
.gh-app-alerts__item + .gh-app-alerts__item { margin-top: 8px; }
.gh-app-alerts__item--danger { border-left-color: var(--gh-red); }
.gh-app-alerts__item--warning { border-left-color: #f0a500; }
.gh-app-alerts__none { margin: 0; color: var(--gh-muted); font-size: .9rem; }

/* Content area */
.gh-app-mode #main-body { flex: 1; padding: 28px 32px 40px !important; background: transparent; }
.gh-app-mode .gh-app-container { max-width: 1480px; padding: 0; }
.gh-app-mode .verification-banner, .gh-app-mode .alert.verification-banner { margin: 18px 32px 0; border-radius: 12px; }
.gh-app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 32px; border-top: 1px solid var(--gh-line); background: #fff !important; background-image: none !important; color: var(--gh-muted) !important; font-size: .85rem; }
.gh-app-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.gh-app-footer a { color: var(--gh-navy) !important; font-weight: 600; }

/* ---------- Dashboard ---------- */
/* Account status */
.gh-pulse {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(1, 27, 99, .07) 1px, transparent 0) 0 0 / 18px 18px,
    #fff;
}
.gh-pulse::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gh-green); }
.gh-pulse.is-due::before, .gh-pulse.is-late::before { background: var(--gh-accent); }
.gh-pulse.is-due, .gh-pulse.is-late { background: radial-gradient(circle at 1px 1px, rgba(1, 27, 99, .07) 1px, transparent 0) 0 0 / 18px 18px, linear-gradient(110deg, #fff 55%, #e9fbf8); }
.gh-pulse__hello { color: var(--gh-navy); font-size: 1.05rem; font-weight: 800; }
.gh-pulse h2 { margin: 4px 0 8px; color: var(--gh-navy); font-size: 1.65rem; font-weight: 800; line-height: 1.2; }
.gh-pulse p { margin: 0 0 18px; color: #46536c; }
.gh-pulse p b { color: var(--gh-ink); }
.gh-pulse__late { color: var(--gh-amber); font-weight: 800; }
.gh-pulse__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 12px; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, background .2s ease; }
.gh-btn:hover { transform: translateY(-1px); }
.gh-btn--pay { background: var(--gh-accent); color: var(--gh-navy-deep) !important; box-shadow: 0 10px 22px rgba(25, 195, 155, .28); }
.gh-btn--pay:hover { filter: brightness(1.05); }
.gh-btn--primary { background: var(--gh-navy); color: #fff !important; }
.gh-btn--ghost { border: 1px solid var(--gh-line); background: #fff; color: var(--gh-navy) !important; }
.gh-paylogos { display: flex; gap: 5px; }
.gh-paylogos img { width: 34px; height: 22px; padding: 2px; border: 1px solid var(--gh-line); border-radius: 5px; background: #fff; object-fit: contain; }
.gh-pulse__stats { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px; }
.gh-stat { position: relative; display: block; min-width: 0; padding: 14px 16px; border: 1px solid var(--gh-line); border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--gh-ink) !important; text-decoration: none !important; transition: border-color .2s ease; }
a.gh-stat:hover { border-color: var(--gh-cyan); }
.gh-stat__label { display: block; color: var(--gh-muted); font-size: .76rem; font-weight: 700; }
.gh-stat__value { display: block; margin-top: 2px; color: var(--gh-navy); font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gh-stat__value--money { padding-top: 4px; color: var(--gh-green); font-size: 1.15rem; }
.gh-stat__topup { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gh-accent); color: var(--gh-navy-deep) !important; box-shadow: 0 6px 14px rgba(25, 195, 155, .3); transition: transform .2s ease; }
.gh-stat__topup:hover { transform: scale(1.08); }
.gh-stat__topup svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.gh-stat__topup-text { display: inline-block; margin-top: 4px; color: #0b8f78 !important; font-size: .76rem; font-weight: 800; text-decoration: none !important; }

/* Amount due: red and easy to read */
.gh-pulse__due { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 2px 0 6px; }
.gh-pulse__due-label { color: var(--gh-muted); font-size: .9rem; font-weight: 700; }
.gh-pulse__due-amount { color: #d3242f; font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.gh-pulse__due .gh-pulse__late { padding: 3px 10px; border-radius: 999px; background: #fff3dc; font-size: .78rem; }

/* Shortcuts */
.gh-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.gh-shortcuts a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--gh-line); border-radius: 999px; background: #fff; color: var(--gh-navy) !important; font-size: .88rem; font-weight: 700; text-decoration: none !important; transition: border-color .2s ease, background .2s ease; }
.gh-shortcuts a:hover { border-color: var(--gh-cyan); background: var(--gh-cyan-soft); }
.gh-shortcuts svg { width: 16px; height: 16px; fill: none; stroke: var(--gh-cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Layout */
.gh-dash-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.gh-dash-main, .gh-dash-side { display: grid; gap: 22px; min-width: 0; }
.gh-panel { min-width: 0; padding: 20px 22px; border: 1px solid var(--gh-line); border-radius: 20px; background: #fff; }
.gh-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gh-panel__head h2 { margin: 0; color: var(--gh-navy); font-size: 1.12rem; font-weight: 800; }
.gh-panel__head a { color: var(--gh-blue) !important; font-size: .88rem; font-weight: 700; }
.gh-empty { margin: 0; color: var(--gh-muted); font-size: .9rem; }

/* Products with tabs */
.gh-tabs { display: none; gap: 6px; margin-bottom: 8px; padding: 4px; overflow-x: auto; border-radius: 14px; background: #f2f5fa; }
.gh-products.is-tabbed .gh-tabs { display: flex; }
.gh-products.is-tabbed .gh-pane__title { display: none; }
.gh-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: #4a5770; font-size: .88rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.gh-tab span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #dfe6f0; color: var(--gh-navy); font-size: .72rem; font-weight: 800; text-align: center; }
.gh-tab.is-active { background: #fff; color: var(--gh-navy); box-shadow: 0 2px 8px rgba(1, 27, 99, .1); }
.gh-tab.is-active span { background: var(--gh-cyan); color: #fff; }
.gh-pane + .gh-pane { margin-top: 18px; }
.gh-products.is-tabbed .gh-pane + .gh-pane { margin-top: 0; }
.gh-pane__title { margin: 0 0 6px; color: var(--gh-navy); font-size: .95rem; font-weight: 800; }
.gh-rows { margin: 0; padding: 0; list-style: none; }
.gh-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 140px 96px 88px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.gh-row:last-child { border-bottom: 0; }
.gh-row__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--gh-cyan-soft); }
.gh-row__icon svg { width: 19px; height: 19px; fill: none; stroke: var(--gh-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gh-row__icon--domain { background: #e8f7f0; }
.gh-row__icon--domain svg { stroke: var(--gh-green); }
.gh-row__name { min-width: 0; color: var(--gh-ink) !important; line-height: 1.3; text-decoration: none !important; }
.gh-row__name strong, .gh-row__name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-row__name small { color: var(--gh-muted); font-size: .8rem; }
.gh-row__name:hover strong { color: var(--gh-blue); }
.gh-row__date { color: var(--gh-ink); font-size: .85rem; font-weight: 600; line-height: 1.3; }
.gh-row__date small { display: block; color: var(--gh-muted); font-size: .72rem; font-weight: 600; }
.gh-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.gh-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gh-status--active { background: #e8f7f0; color: var(--gh-green); }
.gh-status--pending { background: #fff5e0; color: #b57a00; }
.gh-status--suspended { background: #fdecee; color: var(--gh-red); }
.gh-row__act { justify-self: end; }
.gh-chip { display: inline-block; padding: 7px 12px; border: 1px solid var(--gh-line); border-radius: 10px; background: #fff; color: var(--gh-navy) !important; font-size: .8rem; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.gh-chip:hover { border-color: var(--gh-cyan); }
.gh-chip--pay { border-color: transparent; background: var(--gh-accent); color: var(--gh-navy-deep) !important; }
.gh-pane__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--gh-line); }
.gh-pane__foot a { color: var(--gh-blue) !important; font-size: .86rem; font-weight: 700; }
.gh-pane__foot .gh-pane__order { margin-left: auto; color: var(--gh-navy) !important; font-weight: 800; }

/* Grow: groups the client does not use yet (even grid of cards) */
.gh-grow { padding: 22px; border-radius: 20px; background: linear-gradient(120deg, #e8f8fc, #eef3fd); }
.gh-grow__intro { margin-bottom: 16px; }
.gh-grow h2 { margin: 0 0 4px; color: var(--gh-navy); font-size: 1.12rem; font-weight: 800; }
.gh-grow p { margin: 0; color: #4a5770; font-size: .88rem; }
.gh-grow__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gh-grow__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; align-items: center; min-width: 0; padding: 14px; border: 1px solid transparent; border-radius: 14px; background: #fff; color: var(--gh-navy) !important; text-decoration: none !important; box-shadow: 0 1px 2px rgba(1, 27, 99, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gh-grow__item:hover { transform: translateY(-2px); border-color: rgba(34, 172, 207, .45); box-shadow: 0 10px 22px rgba(1, 27, 99, .1); }
.gh-grow__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--gh-cyan-soft); }
.gh-grow__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gh-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh-grow__text { min-width: 0; line-height: 1.3; }
.gh-grow__text strong { display: block; font-size: .92rem; font-weight: 800; }
.gh-grow__text small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: .78rem; font-weight: 500; }
.gh-grow__arrow { width: 18px; height: 18px; fill: none; stroke: #9aa8bd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease, stroke .2s ease; }
.gh-grow__item:hover .gh-grow__arrow { transform: translateX(3px); stroke: var(--gh-cyan); }

/* New client: domain search instead of an empty product list */
.gh-pulse.is-new::before { background: var(--gh-accent); }
.gh-start__lead { margin: -6px 0 14px; color: #4a5770; font-size: .9rem; }
.gh-start__search { display: flex; gap: 10px; }
.gh-start__field { position: relative; flex: 1 1 auto; min-width: 0; }
.gh-start__field svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--gh-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.gh-start__field input { width: 100%; height: 50px; padding: 0 14px 0 44px; border: 1px solid var(--gh-line); border-radius: 12px; background: #f7f9fc; color: var(--gh-ink); font-size: 1rem; font-weight: 600; outline: 0; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.gh-start__field input:focus { border-color: var(--gh-cyan); background: #fff; box-shadow: 0 0 0 4px rgba(34, 172, 207, .15); }
.gh-start__search .gh-btn { flex: 0 0 auto; height: 50px; padding: 0 26px; border: 0; cursor: pointer; }
.gh-start__prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; color: var(--gh-muted); font-size: .84rem; }
.gh-start__prices span { padding: 3px 10px; border-radius: 999px; background: #f2f5fa; font-weight: 700; }
.gh-start__prices b { color: var(--gh-navy); }
.gh-start__prices a { margin-left: auto; color: var(--gh-blue) !important; font-weight: 700; }

/* Empty states with an icon */
.gh-empty--icon { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.gh-empty--icon svg { flex: 0 0 auto; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #f2f5fa; fill: none; stroke: #8a97ad; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Help centre */
.gh-help__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-help__grid a { display: block; min-width: 0; padding: 12px; border: 1px solid var(--gh-line); border-radius: 14px; color: var(--gh-ink) !important; text-decoration: none !important; transition: border-color .2s ease, background .2s ease; }
.gh-help__grid a:hover { border-color: var(--gh-cyan); background: var(--gh-cyan-soft); }
.gh-help__grid svg { display: block; width: 34px; height: 34px; margin-bottom: 8px; padding: 7px; border-radius: 10px; background: var(--gh-cyan-soft); fill: none; stroke: var(--gh-cyan); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gh-help__grid strong { display: block; color: var(--gh-navy); font-size: .86rem; font-weight: 800; line-height: 1.25; }
.gh-help__grid small { display: block; margin-top: 2px; color: var(--gh-muted); font-size: .75rem; line-height: 1.3; }

/* New client: three steps */
.gh-steps__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh-steps__list a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--gh-line); border-radius: 14px; color: var(--gh-ink) !important; text-decoration: none !important; transition: border-color .2s ease, background .2s ease; }
.gh-steps__list a:hover { border-color: var(--gh-cyan); background: var(--gh-cyan-soft); }
.gh-steps__list b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gh-accent); color: #fff; font-size: .9rem; font-weight: 800; }
.gh-steps__list strong { display: block; color: var(--gh-navy); font-size: .92rem; font-weight: 800; line-height: 1.3; }
.gh-steps__list small { display: block; color: var(--gh-muted); font-size: .78rem; line-height: 1.35; }

/* Getting started checklist (client with services) */
.gh-check[hidden] { display: none !important; }
.gh-check__hide { padding: 2px 6px; border: 0; background: none; color: var(--gh-muted); font-size: .78rem; font-weight: 600; cursor: pointer; }
.gh-check__hide:hover { color: var(--gh-navy); text-decoration: underline; }
.gh-check__progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gh-check__count { flex: 0 0 auto; color: var(--gh-muted); font-size: .8rem; }
.gh-check__count b { color: var(--gh-navy); font-size: .95rem; }
.gh-check__bar { flex: 1 1 auto; height: 8px; border-radius: 999px; background: #e8eef5; overflow: hidden; }
.gh-check__bar span { display: block; height: 100%; border-radius: 999px; background: var(--gh-accent); transition: width .3s ease; }
.gh-check__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gh-check__item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--gh-line); border-radius: 12px; }
.gh-check__mark { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--gh-line); border-radius: 50%; }
.gh-check__mark svg { width: 14px; height: 14px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gh-check__item.is-done { background: #f6fbfa; }
.gh-check__item.is-done .gh-check__mark { border-color: transparent; background: var(--gh-accent); }
.gh-check__item.is-done .gh-check__mark svg { stroke: #fff; }
.gh-check__item.is-done strong { color: var(--gh-muted); text-decoration: line-through; }
.gh-check__text { min-width: 0; }
.gh-check__text a { color: inherit !important; text-decoration: none !important; }
.gh-check__text a strong { color: var(--gh-navy); }
.gh-check__text a:hover strong { color: var(--gh-cyan); text-decoration: underline; }
.gh-check__text strong { display: block; color: var(--gh-navy); font-size: .88rem; font-weight: 800; line-height: 1.3; }
.gh-check__text small { display: block; color: var(--gh-muted); font-size: .76rem; line-height: 1.3; }
.gh-check__tick { padding: 4px 10px; border: 1px solid var(--gh-line); border-radius: 999px; background: #fff; color: var(--gh-navy); font-size: .74rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.gh-check__tick:hover { border-color: var(--gh-cyan); }
.gh-check__tick[aria-pressed="true"] { border-color: transparent; background: var(--gh-cyan-soft); color: var(--gh-muted); }
.gh-check__help { margin: 12px 0 0; color: var(--gh-muted); font-size: .8rem; }

/* Upcoming renewals */
.gh-renew { margin: 0; padding: 0; list-style: none; }
.gh-renew li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.gh-renew li + li { border-top: 1px solid #edf1f6; }
.gh-renew__days { flex: 0 0 48px; height: 48px; display: grid; place-content: center; border-radius: 14px; background: #f2f5fa; color: var(--gh-navy); font-size: .7rem; font-weight: 700; line-height: 1; text-align: center; }
.gh-renew__days b { display: block; font-size: 1.05rem; font-weight: 800; }
.gh-renew__days { font-size: .62rem; }
.gh-renew__days.is-near { background: var(--gh-cyan-soft); color: #0b7fa0; }
.gh-renew__days.is-soon { background: #fff5e0; color: var(--gh-amber); }
.gh-renew a { min-width: 0; color: var(--gh-ink) !important; line-height: 1.3; text-decoration: none !important; }
.gh-renew strong, .gh-renew small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-renew strong { font-size: .9rem; }
.gh-renew small { color: var(--gh-muted); font-size: .78rem; }
.gh-renew a:hover strong { color: var(--gh-blue); }

/* Recent activity */
.gh-feed { margin: 0; padding: 0; list-style: none; }
.gh-feed__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px 0; }
.gh-feed__item + .gh-feed__item { border-top: 1px solid #edf1f6; }
.gh-feed__tag { grid-row: span 2; align-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 7px; background: var(--gh-cyan-soft); color: var(--gh-blue); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.gh-feed__item--invoice_paid .gh-feed__tag { background: #e8f7f0; color: var(--gh-green); }
.gh-feed__item--invoice_created .gh-feed__tag { background: #fff5e0; color: #b57a00; }
.gh-feed__item a { overflow: hidden; color: var(--gh-ink) !important; font-size: .88rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.gh-feed__item small { color: var(--gh-muted); font-size: .76rem; }
.gh-dash-more { margin-top: 26px; }
.gh-dash-main .gh-dash-more { margin-top: 0; }
.gh-dash-main .gh-dash-more .row { margin: 0; }
.gh-dash-main .gh-dash-more .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0; }
.gh-dash-main .gh-dash-more .card:last-child { margin-bottom: 0; }
/* Other WHMCS panels (news, tickets, modules) in the dashboard card style */
.gh-dash-more .card { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--gh-line); border-radius: 18px; background: #fff; box-shadow: none; }
.gh-dash-more .card-header { padding: 16px 20px; border-bottom: 1px solid var(--gh-line); background: #fff; }
.gh-dash-more .card-title { color: var(--gh-navy); font-size: 1.05rem; font-weight: 800; }
.gh-dash-more .card-body, .gh-dash-more .list-group-item { padding: 14px 20px; }

/* ---------- Account pages: menu as tabs, page at full width ---------- */
.gh-account-tabs #main-body .gh-app-container > .row > .col-lg-4,
.gh-account-tabs #main-body .gh-app-container > .row > .primary-content { flex: 0 0 100%; max-width: 100%; }
.gh-account-tabs #main-body .gh-app-container > .row > .col-lg-4 { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.gh-account-tabs #main-body .gh-app-container > .row > .col-lg-4 > .sidebar { flex: 1 1 100%; min-width: 0; }
.gh-account-tabs .sidebar .card-sidebar { margin-bottom: 10px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.gh-account-tabs .sidebar .card-sidebar > .card-header { display: none; }
.gh-account-tabs .sidebar .card-sidebar .collapsable-card-body { display: block !important; }
.gh-account-tabs .sidebar .card-sidebar .list-group { flex-direction: row !important; flex-wrap: nowrap; gap: 4px; padding: 4px; overflow-x: auto; border-radius: 14px; background: #e9eef6; }
.gh-account-tabs .sidebar .card-sidebar .list-group-item { flex: 0 0 auto; width: auto !important; margin: 0 !important; padding: 9px 14px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: #45526b !important; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.gh-account-tabs .sidebar .card-sidebar .list-group-item:hover { background: rgba(255, 255, 255, .6) !important; color: var(--gh-navy) !important; }
.gh-account-tabs .sidebar .card-sidebar .list-group-item.active { background: #fff !important; color: var(--gh-navy) !important; box-shadow: 0 2px 8px rgba(1, 27, 99, .1); }
.gh-account-tabs .sidebar .card-sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 8px; }
.gh-account-tabs .sidebar .card-sidebar .sidebar-menu-item-icon-wrapper { width: auto; }
.gh-account-tabs .sidebar .card-sidebar .card-body { padding: 12px 16px; border-radius: 14px; background: #fff; }
/* Account details: one tidy two-column grid instead of floating blocks */
.gh-page-clientareadetails.gh-app-mode form .tt-custom-card > .card-body > .row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 0; }
.gh-page-clientareadetails.gh-app-mode form .tt-custom-card > .card-body > .row > [class*="col-"] { display: contents; }
@media (max-width: 767px) {
  .gh-page-clientareadetails.gh-app-mode form .tt-custom-card > .card-body > .row { grid-template-columns: 1fr; }
}

/* Account security: shortcut to the user's two-step verification */
.gh-2fa-card { margin-bottom: 18px; border: 1px solid #bfe9df !important; background: linear-gradient(110deg, #fff 55%, #ecfbf6) !important; }
.gh-2fa-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.gh-2fa-card__icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--gh-accent); color: #fff; }
.gh-2fa-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gh-2fa-card__copy { flex: 1 1 280px; min-width: 0; }
.gh-2fa-card__copy .card-title { margin: 0 0 4px; }
.gh-2fa-card__copy p { margin: 0; color: var(--gh-muted); }
.gh-2fa-card__btn { border: 0 !important; border-radius: 11px !important; background: var(--gh-navy) !important; color: #fff !important; font-weight: 800; }
.gh-2fa-card:not(.is-on) { border-color: var(--gh-line) !important; background: #fff !important; }
.gh-2fa-card:not(.is-on) .gh-2fa-card__icon { background: #eef2f8; color: var(--gh-muted); }
.gh-2fa-card__state { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #eef2f8; color: var(--gh-muted); font-size: .72rem; font-weight: 800; vertical-align: middle; }
.gh-2fa-card.is-on .gh-2fa-card__state { background: #e3f8f0; color: #0b8f78; }
.gh-switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; color: var(--gh-navy); font-weight: 800; cursor: pointer; }
.gh-switch__track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #cfd8e5; transition: background .2s ease; }
.gh-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(1, 27, 99, .2); transition: transform .2s ease; }
.gh-switch.is-on .gh-switch__track { background: #19c39b; }
.gh-switch.is-on .gh-switch__knob { transform: translateX(22px); }
.gh-switch:focus-visible { outline: 2px solid var(--gh-cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- Inner pages: lighter cards in the new layout ---------- */
.gh-app-mode .primary-content > .card, .gh-app-mode .primary-content .card { border-radius: 16px; }
.gh-app-mode .sidebar .card { border-radius: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .gh-dash-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .gh-row { grid-template-columns: 38px minmax(0, 1fr) 120px 92px 80px; gap: 10px; }
}
@media (max-width: 1199px) {
  .gh-pulse { grid-template-columns: 1fr; }
  .gh-pulse__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gh-dash-body { grid-template-columns: 1fr; }
  .gh-dash-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .gh-app-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 17, 63, .25); }
  .gh-app.is-menu-open .gh-app-sidebar { transform: none; }
  .gh-app.is-menu-open .gh-app-backdrop { position: fixed; inset: 0; z-index: 1035; display: block; background: rgba(0, 17, 63, .45); }
  .gh-app-close, .gh-app-burger { display: inline-grid; place-items: center; }
  .gh-app-fold { display: none; }
  .gh-app-brand { margin-right: 8px; }
  .gh-app-main { margin-left: 0; }
  .gh-app-topbar { padding: 10px 16px; min-height: 64px; }
  .gh-app-mode #main-body { padding: 20px 16px 32px !important; }
  .gh-app-footer { padding: 16px; }
  .gh-app-new span { display: none; }
  .gh-app-hi { padding: 0 4px; }
  .gh-app-hi__text { display: none; }
  .gh-app-new { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 767px) {
  .gh-pulse { padding: 22px 20px 20px 24px; gap: 18px; }
  .gh-pulse h2 { font-size: 1.3rem; }
  .gh-pulse__due-amount { font-size: 1.7rem; }
  .gh-pulse__stats { grid-template-columns: 1fr 1fr; }
  .gh-shortcuts { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; }
  .gh-shortcuts a { flex: 0 0 auto; }
  .gh-dash-side { grid-template-columns: 1fr; }
  .gh-panel { padding: 18px 16px; }
  .gh-row { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 6px; }
  .gh-row__date { grid-column: 2; grid-row: 2; font-size: .8rem; }
  .gh-row__date small { display: inline; margin-right: 4px; }
  .gh-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .gh-row__act { grid-column: 3; grid-row: 2; }
  .gh-grow { padding: 18px 16px; }
  .gh-grow__list { grid-template-columns: 1fr; }
  .gh-start__search { flex-direction: column; }
  .gh-start__search .gh-btn { width: 100%; }
  .gh-start__prices a { margin-left: 0; }
  .gh-app-title h1 { font-size: 1.1rem; }
  .gh-app-title__sub { display: none; }
  .gh-app-tool--lang span { display: none; }
  .gh-app-alerts__panel { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 420px) {
  .gh-app-tools { gap: 6px; }
  .gh-app-tool, .gh-app-new { min-width: 40px; width: 40px; height: 40px; }
  .gh-app-hi { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-app-main, .gh-app-fold svg,
  .gh-app-sidebar, .gh-btn, .gh-grow__item, .gh-app-nav__link { transition: none; }
}
