/* ==========================================================================
   SSHCloud Enterprise WHMCS Orderform — Unified Corporate SaaS UI (v7.0)
   Covers: Products, Domain Select, Product Config, Domain Config,
           View Cart, Checkout, Order Complete, Addons & Renewals
   Palette: Deep Navy (#0B1120 / #172554) + Royal Blue (#2563EB) + Slate (#F4F7FB)
   ========================================================================== */

:root {
  --purple: #2563EB !important;
  --purple-lt: #3B82F6 !important;
  --brand: #2563EB !important;
  --brand-alt: #0EA5E9 !important;
  --co-brand: #2563EB !important;
  --vc-purple: #2563EB !important;
  --grad-brand: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  --co-grad: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
}

/* 1. Global Funnel Canvas & Typography */
body.ent-body .vc-page,
body.ent-body .co-page,
body.ent-body .cdm-page,
body.ent-body .cpd-page,
body.ent-body .dt-page,
body.ent-body .dr-page,
body.ent-body .sr-page,
body.ent-body .fc-page,
body.ent-body .err-page,
body.ent-body .addons-page {
  background: #F4F7FB !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  padding: 36px 0 84px !important;
  min-height: 75vh;
}

body.ent-body .config-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  padding: 36px 24px 84px !important;
  max-width: 1200px !important;
}

body.ent-body .vc-page h1, body.ent-body .vc-page h2, body.ent-body .vc-page h3,
body.ent-body .co-page h1, body.ent-body .co-page h2, body.ent-body .co-page h3,
body.ent-body .cpd-page h1, body.ent-body .cpd-page h2, body.ent-body .cpd-page h3,
body.ent-body .cdm-page h1, body.ent-body .cdm-page h2, body.ent-body .cdm-page h3,
body.ent-body .config-container h1, body.ent-body .config-container h2, body.ent-body .config-container h3,
body.ent-body .complete-container h1, body.ent-body .complete-container h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent faux-bold (weight 900) distortion from Tailwind font-black & legacy 900 rules */
body.ent-body .config-container .font-black,
body.ent-body .vc-page .font-black,
body.ent-body .co-page .font-black {
  font-weight: 700 !important;
}
body.ent-body .config-container .cycle-price {
  font-family: 'Inter', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.35 !important;
  color: #0F172A !important;
}
body.ent-body .config-container .selection-card.active .cycle-price {
  color: #1D4ED8 !important;
}
body.ent-body .config-container .cycle-plan-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
body.ent-body .config-container h1 {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
body.ent-body .config-container h2 {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

/* Purge leftover Tailwind purple utilities inside configureproduct.tpl */
body.ent-body .config-container .bg-purple-600 {
  background-color: #2563EB !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}
body.ent-body .config-container .bg-purple-50,
body.ent-body .config-container .bg-purple-50\/50 {
  background-color: #EFF6FF !important;
}
body.ent-body .config-container .text-purple-600,
body.ent-body .config-container .text-purple-700 {
  color: #2563EB !important;
}
body.ent-body .config-container .border-purple-200,
body.ent-body .config-container .border-purple-300 {
  border-color: #BFDBFE !important;
}

/* Hide native WHMCS legacy sidebars */
.cart-sidebar.sidebar,
.panel-sidebar,
.card-sidebar,
.secondary-cart-sidebar {
  display: none !important;
}
.cart-body, .secondary-cart-body {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Store & Orderform Heroes -> Unified Deep Executive Navy */
body.ent-body .store-hero-section,
body.ent-body .vc-hero,
body.ent-body .cfg-hero,
body.ent-body .cdm-hero,
body.ent-body .dt-hero,
body.ent-body .prod-hero {
  background: linear-gradient(155deg, #0B1120 0%, #0F1D3A 56%, #172554 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 3. Unified Executive Stepper Bar (Cart / Domain Config / Checkout) */
body.ent-body .vc-steps,
body.ent-body .co-steps,
body.ent-body .cart-progress {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 16px 24px !important;
  margin: 0 auto 28px !important;
  max-width: 780px !important;
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.05) !important;
}
body.ent-body .vs-active .vc-snum,
body.ent-body .co-step.active .co-step-num,
body.ent-body .cp-active .cp-num {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16) !important;
}
body.ent-body .vs-done .vc-snum,
body.ent-body .co-step.done .co-step-num,
body.ent-body .cp-done .cp-num {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #059669 !important;
}
body.ent-body .vc-sline-done,
body.ent-body .co-step-line.done,
body.ent-body .cp-line-done {
  background: #10B981 !important;
}

/* 4. Unified Corporate Cards */
body.ent-body .vc-card,
body.ent-body .vc-promo-card,
body.ent-body .co-card,
body.ent-body .option-block,
body.ent-body .cpd-option,
body.ent-body .cdm-card,
body.ent-body .complete-container {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.06) !important;
}
body.ent-body .option-block:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.09) !important;
  transform: none !important;
}
body.ent-body .vc-card-head,
body.ent-body .co-card-head {
  background: #FAFCFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
body.ent-body .co-card-icon.purple,
body.ent-body .cdm-card-head .head-icon,
body.ent-body .cpd-option-icon.reg {
  background: #EFF6FF !important;
  color: #2563EB !important;
}

/* 5. Selection Cards (Billing Cycles, Config Options, Payment Methods) */
body.ent-body .selection-card,
body.ent-body .co-pay-method,
body.ent-body .spotlight-item {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 14px !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
body.ent-body .selection-card:hover:not(.active),
body.ent-body .co-pay-method:hover,
body.ent-body .spotlight-item:hover {
  border-color: #93C5FD !important;
  background: #F8FAFF !important;
  transform: none !important;
}
body.ent-body .selection-card.active,
body.ent-body .cpd-option.active {
  border-color: #2563EB !important;
  background: #F8FAFF !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
body.ent-body .selection-card.active::after {
  background: linear-gradient(90deg, #2563EB, #0EA5E9) !important;
}
body.ent-body .selection-card.active .cycle-plan-label,
body.ent-body .vc-item-domain,
body.ent-body .vc-edit-link,
body.ent-body .co-pay-method-badge {
  color: #2563EB !important;
}
body.ent-body .co-pay-method-badge {
  background: #EFF6FF !important;
}
body.ent-body .cpd-radio.checked {
  border-color: #2563EB !important;
  background: #2563EB !important;
}

/* 6. Unified Dark Navy Executive Summary Sidebars */
body.ent-body .vc-sum,
body.ent-body .co-sidebar,
body.ent-body .summary-aside {
  border-radius: 18px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 8px 28px -10px rgba(15, 23, 42, 0.1) !important;
  overflow: hidden !important;
}
body.ent-body .vc-sum-dark,
body.ent-body .co-sid-head,
body.ent-body .summary-dark-header {
  background: linear-gradient(155deg, #0B1120 0%, #172554 100%) !important;
  border-radius: 0 !important;
  padding: 20px 22px !important;
}
body.ent-body .vc-sum-lbl,
body.ent-body .co-sid-head .lbl,
body.ent-body .summary-dark-header .lbl {
  color: #93C5FD !important;
  letter-spacing: 0.08em !important;
}
body.ent-body .vc-sum-white,
body.ent-body .vc-sum-foot {
  border: none !important;
  border-radius: 0 !important;
}
body.ent-body .vc-sum-foot {
  border-top: 1px solid #F1F5F9 !important;
}
body.ent-body .summary-total-band,
body.ent-body .co-total-band {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%) !important;
  border: 1px solid #DBEAFE !important;
  border-radius: 12px !important;
}
body.ent-body .summary-total-label,
body.ent-body .co-total-label {
  color: #1D4ED8 !important;
}
body.ent-body .summary-total-price,
body.ent-body .co-total-val,
body.ent-body .vc-sum-total {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #0F172A !important;
  color: #0F172A !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

/* 7. Unified Primary & Secondary Buttons */
body.ent-body .btn-checkout,
body.ent-body .co-btn-pay,
body.ent-body .btn-cfg-submit,
body.ent-body .btn-cpd-check,
body.ent-body .btn-cpd-continue,
body.ent-body .btn-cdn-go,
body.ent-body .btn-browse,
body.ent-body .btn-dt-submit,
body.ent-body .btn-dr-cart,
body.ent-body .btn-sr-cart,
body.ent-body .btn-dashboard,
body.ent-body .btn-comp-ca,
body.ent-body .btn-fc-docs,
body.ent-body #order-sshcloud .btn-primary,
body.ent-body #btnCompleteProductConfig {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #2563EB !important;
  background-image: none !important;
  border: 1px solid #2563EB !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border-radius: 11px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.35) !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
body.ent-body .btn-checkout:hover:not(.disabled),
body.ent-body .co-btn-pay:hover,
body.ent-body .btn-cfg-submit:hover,
body.ent-body .btn-cpd-check:hover,
body.ent-body .btn-cpd-continue:hover,
body.ent-body .btn-cdn-go:hover,
body.ent-body .btn-browse:hover,
body.ent-body .btn-dt-submit:hover,
body.ent-body .btn-dr-cart:hover,
body.ent-body .btn-sr-cart:hover,
body.ent-body .btn-dashboard:hover,
body.ent-body #btnCompleteProductConfig:hover {
  background: #1D4ED8 !important;
  border-color: #1D4ED8 !important;
  transform: translateY(-1px) !important;
}
body.ent-body .vc-promo-btn {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
  height: 42px !important;
  padding: 0 18px !important;
  font-weight: 700 !important;
}
body.ent-body .vc-promo-btn:hover {
  background: #2563EB !important;
}

/* 8. Unified Crisp Form Inputs & Selects */
body.ent-body .co-input,
body.ent-body .cpd-input,
body.ent-body .cpd-tld-select,
body.ent-body .cpd-incart-select,
body.ent-body .vc-promo-input,
body.ent-body .dt-input,
body.ent-body .ns-input,
body.ent-body .epp-input,
body.ent-body .dr-search,
body.ent-body .sr-search,
body.ent-body .option-block input[type="text"],
body.ent-body .option-block input[type="password"],
body.ent-body .option-block select {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
body.ent-body .co-input:focus,
body.ent-body .cpd-input:focus,
body.ent-body .cpd-tld-select:focus,
body.ent-body .vc-promo-input:focus,
body.ent-body .dt-input:focus,
body.ent-body .ns-input:focus,
body.ent-body .epp-input:focus,
body.ent-body .option-block input:focus,
body.ent-body .option-block select:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* 9. Logged-in Checkout Banner & Complete Page Polish */
body.ent-body .co-logged-avatar {
  background: linear-gradient(135deg, #2563EB, #0EA5E9) !important;
  border-radius: 11px !important;
}
body.ent-body .co-logged-email {
  color: #059669 !important;
}
body.ent-body .complete-container {
  position: relative;
  overflow: hidden;
  padding: 44px 36px !important;
}
body.ent-body .complete-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #2563EB);
}
body.ent-body .vc-price,
body.ent-body .co-sum-price,
body.ent-body .cycle-price {
  font-variant-numeric: tabular-nums !important;
}
