@import url("novahost-base.css");

body.novahost-whmcs {
  background: var(--gray-50);
  color: var(--gray-900);
}

.nh-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.nh-fullwidth {
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body.novahost-whmcs #main-body {
  padding-bottom: var(--sp-20);
}

body.novahost-whmcs .network-issue-alert,
body.novahost-whmcs .verification-banner {
  margin-top: var(--header-stack-h);
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  box-shadow: none;
}

body.novahost-whmcs .verification-banner .btn,
body.novahost-whmcs .network-issue-alert .alert-link {
  font-weight: 700;
}

.nh-breadcrumb {
  margin-top: 1rem;
}

.nh-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  justify-content: center;
}

.nh-breadcrumb .breadcrumb-item,
.nh-breadcrumb .breadcrumb-item a {
  color: var(--text-dark-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.nh-breadcrumb .breadcrumb-item.active {
  color: var(--text-dark-primary);
}

.whmcs-layout {
  row-gap: var(--sp-8);
}

.whmcs-sidebar {
  position: sticky;
  top: calc(var(--header-stack-h) + 2rem);
}

.whmcs-sidebar .card,
.whmcs-sidebar .panel,
.whmcs-sidebar .list-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.whmcs-sidebar .card + .card,
.whmcs-sidebar .panel + .panel,
.whmcs-sidebar .list-group + .list-group,
.whmcs-sidebar .sidebar + .sidebar {
  margin-top: var(--sp-4);
}

.whmcs-sidebar .card-header,
.whmcs-sidebar .panel-heading {
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 800;
  color: var(--gray-900);
}

.whmcs-sidebar .list-group-item,
.whmcs-sidebar .panel-sidebar a.list-group-item {
  border: 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  padding: 0.95rem 1.15rem;
}

.whmcs-sidebar .list-group-item:last-child {
  border-bottom: 0;
}

.whmcs-sidebar .list-group-item.active,
.whmcs-sidebar .list-group-item:hover {
  background: rgba(0, 102, 255, 0.06);
  color: var(--blue-500);
}

.whmcs-primary-content--full {
  width: 100%;
}

.whmcs-primary-content .card,
.whmcs-primary-content .panel,
.whmcs-primary-content .alert,
.whmcs-primary-content .message,
.whmcs-primary-content .table-container,
.whmcs-primary-content .dataTables_wrapper {
  border-radius: var(--r-xl);
}

.whmcs-primary-content .card,
.whmcs-primary-content .panel,
.whmcs-primary-content .table-container {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.whmcs-primary-content .btn {
  border-radius: var(--r-full);
  font-weight: 700;
}

.whmcs-primary-content .btn-primary,
.whmcs-primary-content .btn-success {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.whmcs-primary-content .btn-primary:hover,
.whmcs-primary-content .btn-success:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.nh-page-panel {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.nh-page-panel-head {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--white), var(--gray-50));
}

.nh-page-panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
}

.nh-page-panel-head p {
  margin: 0;
  max-width: 720px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.nh-page-panel-body {
  padding: 2rem;
}

.nh-page-panel-body > :last-child,
.dash-table-wrap > :last-child {
  margin-bottom: 0;
}

.dash-table-wrap .dataTables_wrapper,
.dash-table-wrap .table-container,
.dash-table-wrap .card,
.dash-table-wrap .panel {
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
}

.dash-table-wrap .alert {
  margin: 1.25rem;
}

.template-viewinvoice .dash-table-wrap,
.template-viewticket .dash-table-wrap,
.template-clientareaproductdetails .dash-table-wrap,
.template-clientareadomaindetails .dash-table-wrap {
  padding: 1.25rem;
}

.template-viewinvoice .dash-table-wrap .alert,
.template-viewticket .dash-table-wrap .alert,
.template-clientareaproductdetails .dash-table-wrap .alert,
.template-clientareadomaindetails .dash-table-wrap .alert {
  margin: 0 0 1rem;
}

.onboarding-section {
  position: relative;
  padding: 6rem 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.14), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  overflow: hidden;
}

.onboarding-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  pointer-events: none;
}

.onboarding-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.onboarding-head .section-title {
  color: #fff;
  max-width: 620px;
}

.onboarding-head .section-desc {
  color: rgba(255, 255, 255, 0.68);
}

.onboarding-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.onboarding-card {
  min-height: 240px;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 50px rgba(3, 7, 18, 0.22);
}

.onboarding-step {
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
}

.onboarding-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.onboarding-card strong {
  color: rgba(255, 255, 255, 0.98);
}

.onboarding-metric {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
}

.onboarding-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.onboarding-note-item {
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-section {
  padding-top: 1rem;
}

.faq-shell {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-stack-h) + 1.5rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.25rem 1.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--blue-500);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: rgba(0, 102, 255, 0.08);
}

.faq-answer {
  padding: 0 1.4rem 1.35rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 70ch;
}

.faq-answer p {
  margin: 0;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.c-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.c-info-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  flex-shrink: 0;
  border: 1px solid rgba(0, 102, 255, 0.12);
}

.c-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.c-info-value {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.6;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-point {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1.5rem;
}

.contact-point h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.contact-point p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.nh-home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.nh-home-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.nh-home-panel-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nh-home-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.nh-home-panel-head .badge {
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue-500);
  border-radius: var(--r-full);
  padding: 0.35rem 0.75rem;
}

.nh-home-panel-body {
  padding: 1.25rem;
  color: var(--gray-600);
}

.nh-home-panel-body p:last-child {
  margin-bottom: 0;
}

.nh-home-panel-links {
  display: flex;
  flex-direction: column;
}

.nh-home-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nh-home-panel-link:hover {
  background: var(--gray-50);
  color: var(--blue-500);
}

.nh-home-panel-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

@media (max-width: 1100px) {
  .onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboarding-note {
    grid-template-columns: 1fr;
  }

  .faq-shell,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .nh-home-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .whmcs-sidebar {
    position: static;
  }

  body.novahost-whmcs .nav-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-card {
    min-height: unset;
  }

  .faq-item summary {
    font-size: 0.95rem;
    padding: 1.1rem 1.1rem;
  }

  .faq-answer {
    padding: 0 1.1rem 1.15rem;
  }

  .contact-points,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}
