/* Main-site header/footer shell for WHMCS Antler */

:root {
  --gh-pink: #ee5586;
  --gh-pink-dark: #a5215e;
  --gh-yellow: #ffc107;
  --gh-navy: #111827;
  --gh-navy-soft: #1a2332;
  --gh-text: #212122;
  --gh-muted: #5e686c;
  --gh-white: #ffffff;
  --gh-border: #e8edf3;
  --gh-pink-light: #fff6fa;
  --gh-shadow: 0 8px 32px rgba(17, 24, 39, 0.08);
  --gh-radius: 12px;
  --gh-container: 1140px;
}

.gh-container {
  width: min(var(--gh-container), 100% - 32px);
  margin-inline: auto;
}

.gh-btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.gh-btn-yellow {
  background: var(--gh-yellow);
  color: var(--gh-text);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

/* Top bar */
.gh-topbar {
  background: var(--gh-pink);
  color: var(--gh-white);
  font-size: 13px;
  position: relative;
  z-index: 101;
}

.gh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
}

.gh-topbar a { color: var(--gh-white); text-decoration: none; }
.gh-topbar a:hover { text-decoration: underline; }

.gh-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.gh-topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gh-topbar-cart { font-size: 14px; }

.gh-topbar .notify-container,
.gh-topbar .dropdown.user-login {
  display: inline-flex;
  align-items: center;
}

.gh-topbar .notify-container > a,
.gh-topbar .dropdown.user-login > a {
  color: var(--gh-white);
  text-decoration: none;
}

.gh-topbar .notify-container .dropdown-menu,
.gh-topbar .dropdown.user-login .dropdown-menu {
  z-index: 200;
}

/* Header */
.gh-header {
  background: var(--gh-white);
  border-bottom: 1px solid var(--gh-border);
  position: relative;
  z-index: 1;
}

.gh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  position: relative;
}

.gh-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(340px, 62vw);
}

.gh-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.gh-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gh-text);
}

.gh-nav { display: flex; align-items: center; gap: 4px; }

.gh-nav-item { position: relative; }

.gh-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  color: var(--gh-navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.gh-nav-link:hover,
.gh-nav-item.is-open > .gh-nav-link { color: var(--gh-pink); }

.gh-nav-link i { font-size: 10px; opacity: 0.6; }

.gh-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 12px;
  background: var(--gh-white);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  z-index: 50;
}

.gh-nav-item:hover > .gh-dropdown,
.gh-nav-item.is-open > .gh-dropdown { display: block; }

.gh-dropdown a {
  display: block;
  padding: 8px 10px;
  color: var(--gh-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}

.gh-dropdown a:hover { background: var(--gh-pink-light); color: var(--gh-pink); }

.gh-dropdown small {
  display: block;
  padding: 0 10px 8px;
  color: var(--gh-muted);
  font-size: 12px;
}

.gh-client-btn { margin-left: 8px; white-space: nowrap; }

.gh-nav-link.is-current,
.gh-dropdown a.is-current {
  color: var(--gh-pink);
  font-weight: 700;
}

.gh-nav-badge,
.gh-subnav-badge {
  display: inline-block;
  padding: 1px 7px;
  margin-left: 4px;
  background: var(--gh-pink);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.gh-header-wrap {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.gh-site-chrome {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}

.gh-site-chrome .gh-header-wrap {
  position: relative;
  top: auto;
}

.gh-header-client .gh-header-inner {
  min-height: 72px;
  flex-wrap: nowrap;
  gap: 12px;
}

.gh-header-client .gh-logo {
  flex-shrink: 0;
}

.gh-header-client .gh-logo img {
  height: 48px;
  max-width: min(240px, 38vw);
}

.gh-client-nav-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.gh-header-client .gh-client-menu-toggle {
  display: none;
  flex-shrink: 0;
}

/* Client main menu — inline in header row */
.gh-client-mainnav {
  background: transparent;
  border-bottom: none;
  width: 100%;
}

.gh-header-wrap-client .gh-client-mainnav {
  position: relative;
  top: auto;
}

.gh-client-mainnav-inner {
  padding: 0;
}

.gh-client-mainnav-scroll {
  overflow: visible;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.gh-client-mainnav-links {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  min-width: min-content;
  padding: 6px 0;
}

.gh-client-mainnav .gh-nav-link {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.gh-client-mainnav .gh-nav-link.is-current,
.gh-client-mainnav .gh-nav-item.is-open > .gh-nav-link {
  background: rgba(238, 85, 134, 0.1);
  color: var(--gh-pink);
}

.gh-client-mainnav .gh-dropdown {
  top: 100%;
  z-index: 120;
}

/* WHMCS Bootstrap client navbar */
.gh-header-wrap-client {
  position: relative;
}

.gh-header-client {
  border-bottom: 1px solid var(--gh-border);
  background: #fff;
}

.gh-client-mainnav #gh-client-navbar,
.gh-client-mainnav .gh-client-navbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  float: none;
  margin: 0;
  padding: 0;
  min-width: min-content;
  list-style: none;
}

.gh-client-mainnav #gh-client-navbar > li,
.gh-client-mainnav .gh-client-navbar > li {
  display: list-item !important;
  float: none;
  position: relative;
}

.gh-client-mainnav .gh-client-navbar > li > a {
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--gh-navy) !important;
  border-radius: 999px;
  line-height: 1.35 !important;
  position: relative;
  white-space: nowrap;
}

.gh-client-mainnav .gh-client-navbar > li > a:before {
  display: none !important;
}

.gh-client-mainnav .gh-client-navbar > li > a:hover,
.gh-client-mainnav .gh-client-navbar > li > a:focus,
.gh-client-mainnav .gh-client-navbar > li.open > a,
.gh-client-mainnav .gh-client-navbar > li.dropdown:hover > a {
  background: rgba(238, 85, 134, 0.1) !important;
  color: var(--gh-pink) !important;
}

/* Hover + click open dropdowns */
.gh-client-mainnav .gh-client-navbar > li.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.gh-client-mainnav .gh-client-navbar > li.dropdown:hover > ul.dropdown-menu,
.gh-client-mainnav .gh-client-navbar > li.dropdown.gh-hover-open > ul.dropdown-menu,
.gh-client-mainnav .gh-client-navbar > li.dropdown.open > ul.dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.gh-client-mainnav .gh-client-navbar .dropdown-menu {
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto;
  position: absolute !important;
  top: 100%;
  margin-top: 0;
  left: 0;
  right: auto;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--gh-border) !important;
  border-radius: var(--gh-radius) !important;
  box-shadow: var(--gh-shadow) !important;
  z-index: 150;
  background: #fff !important;
  font-weight: 600;
}

.gh-client-mainnav .gh-client-navbar .dropdown-menu:before {
  display: none !important;
}

.gh-client-mainnav .gh-client-navbar .dropdown-menu > li > a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gh-text);
}

.gh-client-mainnav .gh-client-navbar .dropdown-menu > li > a:hover,
.gh-client-mainnav .gh-client-navbar .dropdown-menu > li > a:focus {
  background: var(--gh-pink-light) !important;
  color: var(--gh-pink) !important;
}

.gh-client-mainnav .gh-unblock-ip-link > a {
  border-top: 1px solid var(--gh-border);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--gh-muted);
  font-size: 12px;
}

.gh-client-mainnav .gh-nav-website-link > a {
  white-space: nowrap;
}

.gh-nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
}

/* Client area left sidebar — layout hook; visual polish in gnome-clientarea.css */
.gh-client-sidebar-col {
  padding-top: 0;
  padding-bottom: 24px;
}

.gh-client-main-col {
  padding-bottom: 24px;
  padding-top: 0;
}

@media (min-width: 992px) {
  body.gnome-client-logged-in .dropnav-header-lined {
    display: none !important;
  }

  .gh-header-client .gh-client-menu-toggle {
    display: none !important;
  }

  .gh-client-nav-slot {
    display: flex !important;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
}

/* Footer */
.gh-footer {
  background: var(--gh-navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 52px;
  position: relative !important;
  z-index: 1 !important;
  width: 100%;
  left: auto !important;
  display: block !important;
  visibility: visible !important;
  margin-top: 0;
}

.gh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.gh-footer-brand p {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.gh-footer-brand .gh-logo img { height: 50px; max-width: 100%; }
.gh-footer-brand .gh-logo { margin-bottom: 8px; display: inline-block; }

.gh-footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px !important;
}

.gh-footer-social { display: flex; gap: 10px; }

.gh-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gh-white);
  text-decoration: none;
  font-size: 14px;
}

.gh-footer-social a:hover { background: var(--gh-pink); }

.gh-footer h4 {
  margin: 0 0 14px;
  color: var(--gh-white);
  font-size: 15px;
  font-weight: 700;
}

.gh-footer ul { list-style: none; margin: 0; padding: 0; }
.gh-footer li { margin-bottom: 9px; }

.gh-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.gh-footer a:hover { color: var(--gh-yellow); }

.gh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.gh-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-footer-since { color: rgba(255, 255, 255, 0.65); }
.gh-footer-since .heart { color: var(--gh-pink); }

@media (max-width: 991px) {
  .gh-nav-toggle { display: flex; }

  .gh-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--gh-white);
    border-bottom: 1px solid var(--gh-border);
    padding: 12px;
    box-shadow: var(--gh-shadow);
    z-index: 110;
  }

  .gh-header.is-open .gh-nav { display: flex; }

  .gh-header-client .gh-client-menu-toggle {
    display: flex;
  }

  .gh-client-nav-slot {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    background: #fff;
    border-bottom: 1px solid var(--gh-border);
    box-shadow: var(--gh-shadow);
    max-height: 70vh;
    overflow-y: auto;
  }

  .gh-header-wrap-client.is-open .gh-client-nav-slot {
    display: block;
  }

  .gh-header-wrap-client .gh-client-mainnav {
    display: block;
  }

  .gh-header-wrap-client .gh-client-mainnav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .gh-header-wrap-client .gh-client-navbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 12px;
  }

  .gh-header-wrap-client .gh-client-navbar > li {
    width: 100%;
  }

  .gh-header-wrap-client .gh-client-navbar > li > a {
    width: 100%;
    border-radius: 8px !important;
  }

  .gh-header-wrap-client .gh-client-navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    background: transparent !important;
  }

  .gh-client-mainnav .gh-client-navbar > li.dropdown:hover > ul.dropdown-menu {
    display: none !important;
  }

  .gh-client-mainnav .gh-client-navbar > li.dropdown.open > ul.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .gh-header-wrap-client .gh-client-mainnav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 12px;
  }

  .gh-header-wrap-client .gh-client-mainnav .gh-nav-item {
    width: 100%;
  }

  .gh-header-wrap-client .gh-client-mainnav .gh-nav-link {
    width: 100%;
    border-radius: 8px;
  }

  .gh-header-wrap-client .gh-client-mainnav .gh-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    display: none;
  }

  .gh-header-wrap-client .gh-client-mainnav .gh-nav-item.is-open > .gh-dropdown {
    display: block;
  }

  .gh-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .gh-footer-grid { grid-template-columns: 1fr 1fr; }
  .gh-client-btn { margin-left: 0; width: 100%; text-align: center; }

}

@media (max-width: 575px) {
  .gh-footer-grid { grid-template-columns: 1fr; }
  .gh-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .gh-topbar-promo { font-size: 12px; }
}
