/* =====================================================================
   SR Host BD domain pages - adapter for the VerNix (Hostinkar) theme
   Loaded only by domains.php, transfer.php and order.php.

   BRAND COLOURS follow the VerNix/Hostinkar theme automatically:
     --tg-theme-primary   -> buttons, highlights
     --tg-color-dark-blue -> headings, dark sections
     --tg-body-color      -> body text
   To force a colour, replace var(...) with a hex code, e.g. --hq-orange: #035ded;
   ===================================================================== */
.hq-scope {
  --hq-orange: var(--tg-theme-primary, #035ded);
  --hq-orange-2: color-mix(in srgb, var(--hq-orange) 72%, #fff);
  --hq-orange-d: color-mix(in srgb, var(--hq-orange) 82%, #000);
  --hq-orange-t: color-mix(in srgb, var(--hq-orange) 10%, transparent);
  --hq-navy: var(--tg-color-dark-blue, #031974);
  --hq-navy-2: color-mix(in srgb, var(--hq-navy) 85%, #fff);
  --hq-navy-3: color-mix(in srgb, var(--hq-navy) 80%, #000);
  --hq-ivory: var(--tg-color-gray-3, #F5F7F9);
  --hq-peach: color-mix(in srgb, var(--hq-orange) 9%, #fff);
  --hq-text: var(--tg-body-color, #404248);
  --hq-muted: var(--tg-color-gray-4, #767982);
  --hq-line: var(--tg-color-gray-2, #E8E8E8);
  --hq-line-2: color-mix(in srgb, var(--hq-line) 80%, #000);
  --hq-grad: linear-gradient(100deg, var(--hq-orange) 0%, var(--hq-orange-2) 100%);
  --hq-font: inherit;
}
/* ---- full-width layout inside the VerNix page frame ---- */
html, body { overflow-x: clip; }
.hq-scope {
  position: relative; left: 50%; width: 100vw; max-width: 100vw; margin-left: -50vw;
  font-family: var(--hq-font); color: var(--hq-text); background: var(--hq-ivory);
  -webkit-font-smoothing: antialiased; line-height: 1.6; text-align: left;
}
.hq-scope, .hq-scope *, .hq-scope *::before, .hq-scope *::after { box-sizing: border-box; }
.hq-scope .hq-center { text-align: center; }
.hq-scope input, .hq-scope select, .hq-scope textarea, .hq-scope button { font-family: inherit; }

/* hide the default WHMCS breadcrumb bar, sidebars and body padding on these pages only */
.master-breadcrumb, .breadcrumb-area, .page-title-area { display: none !important; }
#main-body { padding-top: 0 !important; padding-bottom: 0 !important; background: var(--hq-ivory, #FFF8F1); }
#main-body .sidebar, #main-body .col-lg-4.col-xl-3 { display: none !important; }
#main-body .primary-content { flex: 0 0 100% !important; max-width: 100% !important; }

/* EPP code fields: masked text (not a password field, so browsers never auto-fill saved logins) */
.hq-scope .hq-mask { -webkit-text-security: disc; text-security: disc; }
.hq-scope .hq-ds-err { margin: 12px auto 0; max-width: 760px; padding: 10px 16px; border-radius: 12px;
  background: #FEE2E2; color: #B91C1C; font-weight: 600; font-size: 14px; text-align: center; }
.hq-scope .hq-ds-err[hidden] { display: none; }

/* pricing table pagination */
.hq-scope .oh-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.hq-scope .oh-pager[hidden] { display: none; }
.hq-scope .oh-pg-info { color: var(--hq-muted); font-size: 14px; }
.hq-scope .oh-pg-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hq-scope .oh-pg-per { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hq-muted); font-size: 14px; font-weight: 500; }
.hq-scope .oh-pg-per select { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--hq-line); border-radius: 10px; background: #fff; color: var(--hq-navy); font-weight: 600; cursor: pointer; }
.hq-scope .oh-pg-per select:focus { outline: 2px solid var(--hq-orange); outline-offset: 1px; }
.hq-scope .oh-pg-nums { display: flex; align-items: center; gap: 6px; }
.hq-scope .oh-pg-nums button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--hq-line); border-radius: 10px; background: #fff;
  color: var(--hq-navy); font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.hq-scope .oh-pg-nums button:hover:not(:disabled) { border-color: var(--hq-orange); color: var(--hq-orange); }
.hq-scope .oh-pg-nums button.on { background: var(--hq-orange); border-color: var(--hq-orange); color: #fff; cursor: default; }
.hq-scope .oh-pg-nums button.nav { font-size: 18px; line-height: 1; }
.hq-scope .oh-pg-nums button:disabled:not(.on) { opacity: .4; cursor: default; }
.hq-scope .oh-pg-nums .gap { padding: 0 4px; color: var(--hq-muted); }
@media (max-width: 640px) {
  .hq-scope .oh-pager, .hq-scope .oh-pg-right { justify-content: center; text-align: center; }
  .hq-scope .oh-pg-info { width: 100%; text-align: center; }
}
/* search result card - never overflow */
.hq-scope .hq-ds-main > div { min-width: 0; }
.hq-scope .hq-ds-main .buy { flex-wrap: wrap; }
@media (max-width: 640px) {
  .hq-scope .hq-ds-main { padding: 20px 18px; gap: 16px; }
  .hq-scope .hq-ds-main > div { width: 100%; }
  .hq-scope .hq-ds-main .dn { font-size: 22px; }
  .hq-scope .hq-ds-main .note { display: block; margin: 8px 0 0; }
  .hq-scope .hq-ds-main .buy { flex-direction: column; align-items: stretch; gap: 14px; }
  .hq-scope .hq-ds-main .pr b { font-size: 22px; }
  .hq-scope .hq-ds-main .buy .hq-btn { width: 100%; justify-content: center; }
  .hq-scope .hq-ds-row { padding: 14px 16px; gap: 10px 12px; }
  .hq-scope .hq-ds-row .hq-btn { justify-self: end; white-space: nowrap; }
  .hq-scope .hq-ds-toolbar > * { max-width: 100%; }
  .hq-scope .hq-ds-cats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; width: 100%; }
  .hq-scope .hq-ds-cats a { flex: 0 0 auto; white-space: nowrap; }
  .hq-scope .hq-ds-filter { width: 100%; }
}
/* SR Host BD brand */
.hq-scope { --hq-orange: #035ded; --hq-navy: #031974; --hq-font: Poppins, "Open Sans", sans-serif; }
/* SR-COMPACT: when results are shown, no perks line and no big gap */
.hq-scope:has(.hq-ds-results-wrap) .hq-ds-perks { display: none !important; }
.hq-scope:has(.hq-ds-results-wrap) .hq-ds-hero { padding-bottom: 24px !important; }
.hq-scope .hq-ds-results-wrap { padding-top: 4px !important; background: var(--hq-ivory) !important; }
@media (max-width: 640px) { .hq-scope:has(.hq-ds-results-wrap) .hq-ds-hero { padding-bottom: 14px !important; } }
