:root {
  --twh-ink: #151133;
  --twh-muted: #625d7b;
  --twh-purple: #5d3df5;
  --twh-purple-dark: #4326d8;
  --twh-lav: #f7f4ff;
  --twh-line: #ded8f3;
  --twh-white: #ffffff;
  --twh-shadow: 0 24px 70px rgba(42,25,102,.12);
  --twh-container: 1180px;
}

body {
  background: #fbfaff !important;
  color: var(--twh-ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Hide only the old logo/top-account masthead. Keep WHMCS's dynamic main navigation. */
body > section#header,
body > #header {
  display: none !important;
}

.twh-header {
  position: sticky;
  top: 0;
  z-index: 1090;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222,216,243,.85);
  font-family: "DM Sans", system-ui, sans-serif;
}

.twh-container {
  width: min(calc(100% - 36px), var(--twh-container));
  margin: 0 auto;
}

.twh-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
}

.twh-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none !important;
  color: var(--twh-ink) !important;
}

.twh-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--twh-purple);
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
  box-shadow: 0 9px 20px rgba(93,61,245,.25);
}

.twh-mark svg {
  width: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.twh-copy {
  display: flex;
  flex-direction: column;
  line-height: .94;
}

.twh-copy strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.twh-copy small {
  font-size: 10px;
  margin-top: 5px;
  color: var(--twh-purple);
  font-weight: 800;
  letter-spacing: .21em;
}

.twh-links {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-left: 14px;
  font-size: 14px;
  font-weight: 700;
}

.twh-links a,
.twh-actions a {
  color: #3e385b;
  text-decoration: none !important;
}

.twh-links a:hover,
.twh-actions a:hover {
  color: var(--twh-purple) !important;
}

.twh-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.twh-lang {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--twh-lav);
  border: 1px solid var(--twh-line);
  font-size: 12px;
  font-weight: 800;
}

.twh-lang a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #3e385b !important;
  text-decoration: none !important;
}

.twh-lang a.active {
  background: #fff;
  color: var(--twh-purple) !important;
  box-shadow: 0 2px 9px rgba(55,38,105,.10);
}

.twh-account {
  font-size: 13px;
  font-weight: 800;
  padding: 10px 11px;
}

.twh-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border: 1.5px solid var(--twh-purple);
  background: var(--twh-purple);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.twh-cta:hover {
  background: var(--twh-purple-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(93,61,245,.22);
}

.twh-toggle {
  display: none;
  margin-left: auto;
  border: 0 !important;
  background: transparent !important;
  width: 42px;
  height: 42px;
  padding: 7px;
  box-shadow: none !important;
}

.twh-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--twh-ink);
  margin: 5px auto;
  border-radius: 4px;
}

.twh-mobile {
  display: none;
}

/* Preserve WHMCS dynamic navigation as a secondary account bar. */
#main-menu .navbar-main {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--twh-line) !important;
  box-shadow: none !important;
  min-height: 46px !important;
}

#main-menu .navbar-main .navbar-nav > li > a {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #625d7b !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

#main-menu .navbar-main .navbar-nav > li > a:hover,
#main-menu .navbar-main .navbar-nav > li.active > a,
#main-menu .navbar-main .navbar-nav > li.open > a {
  background: var(--twh-lav) !important;
  color: var(--twh-purple) !important;
}

#main-menu .navbar-main .dropdown-menu {
  border: 1px solid var(--twh-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(42,25,102,.12) !important;
  padding: 7px !important;
}

/* Presentation-only WHMCS polish. */
a { color: var(--twh-purple); }
a:hover, a:focus { color: var(--twh-purple-dark); }

.btn,
button,
.form-control,
select,
input[type="text"],
input[type="email"],
input[type="password"] {
  border-radius: 11px !important;
}

.btn-primary,
.btn-success,
input[type="submit"].btn-primary {
  background: var(--twh-purple) !important;
  border-color: var(--twh-purple) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover {
  background: var(--twh-purple-dark) !important;
  border-color: var(--twh-purple-dark) !important;
}

.panel,
.card,
#order-standard_cart .product,
#order-standard_cart .summary-container,
#order-standard_cart .view-cart-items {
  border-color: #e8e2f6 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 34px rgba(58,38,120,.08);
}

@media (max-width: 1020px) {
  .twh-links,
  .twh-actions {
    display: none;
  }

  .twh-toggle {
    display: block;
  }

  .twh-header.is-open .twh-mobile {
    display: block;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    background: #fff;
    border: 1px solid var(--twh-line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--twh-shadow);
    z-index: 1100;
  }

  .twh-mobile > a,
  .twh-mobile-languages a {
    display: block;
    padding: 11px 12px;
    border-radius: 11px;
    color: #3e385b !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
  }

  .twh-mobile a:hover {
    background: var(--twh-lav);
    color: var(--twh-purple) !important;
  }

  .twh-mobile-languages {
    border-top: 1px solid var(--twh-line);
    margin-top: 7px;
    padding-top: 7px;
    display: flex;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .twh-container {
    width: min(calc(100% - 26px), var(--twh-container));
  }

  .twh-nav {
    min-height: 70px;
  }
}


/* === The Webhosting USA v18 footer === */
.twh-footer {
  background: #f7f4ff;
  border-top: 1px solid var(--twh-line);
  padding: 58px 0 28px;
  color: var(--twh-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.twh-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}

.twh-footer-brand p {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--twh-muted);
  font-size: 13px;
  line-height: 1.75;
}

.twh-footer h4 {
  margin: 4px 0 16px !important;
  color: #544d70 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.twh-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.twh-footer-links a {
  color: #6b6582 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.twh-footer-links a:hover {
  color: var(--twh-purple) !important;
}

.twh-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--twh-line);
  color: #8b849c;
  font-size: 11px;
}

.twh-footer-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Keep native WHMCS copyright/licensing footer visible, but visually integrated. */
body > section#footer,
body > #footer {
  margin: 0 !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  background: #f7f4ff !important;
  color: #8b849c !important;
}

body > section#footer .container,
body > #footer .container {
  padding-top: 16px !important;
  border-top: 1px solid var(--twh-line);
  font-size: 10px !important;
}

body > section#footer p,
body > #footer p {
  margin: 0 !important;
  color: #8b849c !important;
  font-size: 10px !important;
}

@media (max-width: 900px) {
  .twh-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .twh-footer-grid > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 650px) {
  .twh-footer {
    padding-top: 42px;
  }

  .twh-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }

  .twh-footer-brand {
    grid-column: 1 / -1;
  }

  .twh-footer-grid > div:last-child {
    grid-column: auto;
  }

  .twh-footer-meta {
    flex-direction: column;
  }
}
