/* ================================================================
   HOSTPRIMEX WHMCS THEME v4 — CSS-Only Ultra Professional
   Targets exact WHMCS twenty-one HTML structure
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --p: #2563eb;
  --p2: #1d4ed8;
  --s: #7c3aed;
  --g: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --g2: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  --t: #111827;
  --t2: #6b7280;
  --bg: #f5f7fa;
  --w: #ffffff;
  --b: #e5e7eb;
  --b2: #f3f4f6;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

/* ═══════════ BASE ═══════════ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: var(--bg) !important;
  color: var(--t) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

a { color: var(--p); }
a:hover { color: var(--p2); text-decoration: none; }

/* ═══════════ HIDE DEFAULT NAV & FOOTER ═══════════ */
.navbar-default, .navbar, #nav-collapse, .navbar-header, .header-lined { display: none !important; }
footer:not(.hpx-footer), #footer, .footer-default { display: none !important; }

/* ═══════════ CUSTOM NAVBAR ═══════════ */
.hpx-navbar {
  position: sticky; top: 0; z-index: 1050;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.8);
  box-shadow: 0 1px 12px rgba(0,0,0,0.03);
}
.hpx-navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.hpx-navbar-logo img { height: 100px; width: auto; }
.hpx-navbar-links { display: flex; align-items: center; gap: 2px; }
.hpx-navbar-links a {
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: #4b5563;
  text-decoration: none; border-radius: 10px; transition: all .2s;
}
.hpx-navbar-links a:hover { color: var(--p); background: rgba(37,99,235,0.06); }
.hpx-navbar-actions { display: flex; align-items: center; gap: 8px; }
.hpx-btn-login {
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: #374151;
  text-decoration: none; border-radius: 10px; border: 1.5px solid var(--b); background: var(--w);
  transition: all .2s;
}
.hpx-btn-login:hover { color: var(--p); border-color: var(--p); text-decoration: none; }
.hpx-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; font-size: 13.5px; font-weight: 700;
  color: #fff !important; background: var(--g); border: none; border-radius: 10px;
  text-decoration: none !important; transition: all .3s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.hpx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); color: #fff !important; }
.hpx-menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: #374151; border-radius: 8px; }
.hpx-mobile-menu { display: none; background: rgba(255,255,255,0.98); border-top: 1px solid #e5e7eb; padding: 16px; }
.hpx-mobile-menu.open { display: block; }
.hpx-mobile-menu a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; color: #374151; text-decoration: none; border-radius: 10px; }
.hpx-mobile-menu a:hover { background: rgba(37,99,235,0.06); color: var(--p); }
@media (max-width: 768px) {
  .hpx-navbar-links, .hpx-navbar-actions { display: none !important; }
  .hpx-menu-toggle { display: block !important; }
}


/* ═══════════════════════════════════════════
   ★★★ LOGIN PAGE — ULTRA PROFESSIONAL ★★★
   ═══════════════════════════════════════════ */

/* Center the login card */
.login-form {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 65vh !important;
  padding: 40px 20px !important;
}

/* The card itself */
.login-form .card {
  max-width: 440px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 2px 4px rgba(0,0,0,0.02),
    0 20px 60px rgba(0,0,0,0.07) !important;
  overflow: visible !important;
  position: relative !important;
  background: var(--w) !important;
}

/* Animated gradient accent bar at top */
.login-form .card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb) !important;
  background-size: 200% 100% !important;
  animation: hpx-gradient-flow 3s ease infinite !important;
  border-radius: 24px 24px 0 0 !important;
  display: block !important;
}

@keyframes hpx-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Card body */
.login-form .card-body {
  padding: 40px 36px 28px !important;
}

/* Title styling */
.login-form .card-body .h3,
.login-form .card-body h6.h3 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--t) !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 4px !important;
}

.login-form .card-body .text-muted {
  font-size: 14px !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

.login-form .card-body .mb-4 {
  margin-bottom: 28px !important;
  text-align: center !important;
}

/* Form labels */
.login-form .form-control-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
}

/* Forgot password link */
.login-form .small.text-muted {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--p) !important;
}

.login-form .small.text-muted:hover {
  color: var(--p2) !important;
  text-decoration: underline !important;
}

/* Input group styling */
.login-form .input-group {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1.5px solid #e5e7eb !important;
  background: #f9fafb !important;
  transition: all 0.3s !important;
}

.login-form .input-group:focus-within {
  border-color: var(--p) !important;
  background: var(--w) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
}

.login-form .input-group-prepend .input-group-text {
  background: transparent !important;
  border: none !important;
  padding: 12px 0 12px 16px !important;
  color: #9ca3af !important;
  font-size: 14px !important;
}

.login-form .input-group:focus-within .input-group-text {
  color: var(--p) !important;
}

.login-form .input-group .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 13px 16px 13px 8px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--t) !important;
  height: auto !important;
}

.login-form .input-group .form-control:focus {
  box-shadow: none !important;
}

.login-form .input-group .form-control::placeholder {
  color: #b0b7c3 !important;
  font-weight: 400 !important;
}

/* Password reveal button */
.login-form .btn-reveal-pw {
  background: transparent !important;
  border: none !important;
  color: #9ca3af !important;
  padding: 12px 16px 12px 8px !important;
}

.login-form .btn-reveal-pw:hover {
  color: var(--p) !important;
}

.login-form .input-group-append {
  border: none !important;
}

/* Login button */
.login-form .btn-primary {
  background: var(--g) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3) !important;
  transition: all 0.3s !important;
  letter-spacing: -0.01em !important;
}

.login-form .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(37,99,235,0.4) !important;
}

/* Remember me checkbox */
.login-form .form-check-input {
  accent-color: var(--p) !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
}

.login-form .text-right label {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

/* Card footer */
.login-form .card-footer {
  background: #f9fafb !important;
  border-top: 1px solid #f0f1f3 !important;
  padding: 18px 36px !important;
  text-align: center !important;
  border-radius: 0 0 24px 24px !important;
}

.login-form .card-footer small {
  font-size: 14px !important;
  color: #9ca3af !important;
}

.login-form .card-footer a {
  color: var(--p) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* Make login button full width */
.login-form .float-left {
  float: none !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

.login-form .float-left .btn-primary {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.login-form .text-right {
  text-align: center !important;
  float: none !important;
}


/* ═══════════════════════════════════════════
   ★★★ REGISTER / ACCOUNT CREATE PAGE ★★★
   ═══════════════════════════════════════════ */

/* Target all card elements for register */
#main-body .card,
.main-content .card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
  background: var(--w) !important;
  position: relative !important;
}

#main-body .card::before,
.main-content .card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: var(--g) !important;
  display: block !important;
  z-index: 1 !important;
}

/* Don't apply gradient bar to nested cards / sub cards */
#main-body .card .card::before,
.main-content .card .card::before {
  display: none !important;
}

#main-body .card-body,
.main-content .card-body {
  padding: 28px 32px !important;
}

#main-body .card-header,
.main-content .card-header {
  background: var(--w) !important;
  border-bottom: 1px solid var(--b2) !important;
  padding: 20px 32px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--t) !important;
}

#main-body .card-footer,
.main-content .card-footer {
  background: #f9fafb !important;
  border-top: 1px solid var(--b2) !important;
  padding: 16px 32px !important;
}


/* ═══════════════════════════════════════════
   FORM CONTROLS — Everywhere
   ═══════════════════════════════════════════ */

.form-control {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--t) !important;
  background: #f9fafb !important;
  transition: all 0.25s !important;
  box-shadow: none !important;
  height: auto !important;
}

.form-control:focus {
  border-color: var(--p) !important;
  background: var(--w) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #b0b7c3 !important;
  font-weight: 400 !important;
}

textarea.form-control {
  min-height: 100px !important;
  resize: vertical !important;
}

.form-group {
  margin-bottom: 16px !important;
}

label, .form-control-label, .control-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
}

select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
}

/* Input groups outside login */
.input-group .input-group-prepend .input-group-text {
  background: #f9fafb !important;
  border: 1.5px solid #e5e7eb !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  color: #9ca3af !important;
  padding: 10px 14px !important;
}

.input-group .form-control {
  border-radius: 0 10px 10px 0 !important;
}


/* ═══════════════════════════════════════════
   BUTTONS — All Types
   ═══════════════════════════════════════════ */

.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border: none !important;
  transition: all 0.25s !important;
  cursor: pointer !important;
}

.btn-primary {
  background: var(--g) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--g2) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35) !important;
}

.btn-success {
  background: var(--ok) !important;
  color: #fff !important;
}
.btn-success:hover { background: #059669 !important; }

.btn-default, .btn-secondary, .btn-outline-primary {
  background: var(--w) !important;
  color: var(--t) !important;
  border: 1.5px solid var(--b) !important;
}
.btn-default:hover { background: #f9fafb !important; border-color: #d1d5db !important; }

.btn-danger {
  background: var(--err) !important;
  color: #fff !important;
}

.btn-info {
  background: var(--p) !important;
  color: #fff !important;
}

.btn-link {
  color: var(--p) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn-lg {
  padding: 14px 28px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
}

.btn-sm { padding: 7px 16px !important; font-size: 13px !important; }
.btn-xs { padding: 4px 12px !important; font-size: 11.5px !important; }


/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */

.table {
  border-radius: 12px !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table thead th {
  background: #f8f9fb !important;
  border-bottom: 2px solid var(--b) !important;
  padding: 12px 16px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--t2) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.table tbody td {
  padding: 14px 16px !important;
  font-size: 14px !important;
  border-top: 1px solid var(--b2) !important;
  vertical-align: middle !important;
}

.table tbody tr:hover td {
  background: rgba(37,99,235,0.015) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(249,250,251,0.5) !important;
}


/* ═══════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════ */

.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.alert-success { background: #ecfdf5 !important; color: #065f46 !important; border-left: 4px solid var(--ok) !important; }
.alert-danger { background: #fef2f2 !important; color: #991b1b !important; border-left: 4px solid var(--err) !important; }
.alert-warning { background: #fffbeb !important; color: #92400e !important; border-left: 4px solid var(--warn) !important; }
.alert-info { background: #eff6ff !important; color: #1e40af !important; border-left: 4px solid var(--p) !important; }


/* ═══════════════════════════════════════════
   BADGES & LABELS
   ═══════════════════════════════════════════ */

.badge, .label {
  border-radius: 20px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.badge-success, .label-success { background: #ecfdf5 !important; color: #059669 !important; }
.badge-warning, .label-warning { background: #fffbeb !important; color: #d97706 !important; }
.badge-danger, .label-danger { background: #fef2f2 !important; color: #dc2626 !important; }
.badge-info, .label-info { background: #eff6ff !important; color: #2563eb !important; }
.badge-primary, .label-primary { background: #f5f3ff !important; color: #7c3aed !important; }


/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */

.list-group {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--b) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.list-group-item {
  border: none !important;
  border-bottom: 1px solid var(--b2) !important;
  padding: 13px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--t) !important;
  transition: all 0.15s !important;
}

.list-group-item:hover {
  background: rgba(37,99,235,0.04) !important;
  color: var(--p) !important;
}

.list-group-item.active {
  background: rgba(37,99,235,0.06) !important;
  color: var(--p) !important;
  font-weight: 700 !important;
  border-left: 3px solid var(--p) !important;
}

.list-group-item-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--t2) !important;
}


/* ═══════════════════════════════════════════
   ORDER / STORE PAGES
   ═══════════════════════════════════════════ */

.store-product, .product-group .card {
  transition: all 0.3s !important;
  cursor: pointer !important;
}

.store-product:hover, .product-group .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(37,99,235,0.1) !important;
}

/* Order summary */
.order-summary { border-radius: 16px !important; }

.total-due-today {
  font-size: 32px !important;
  font-weight: 800 !important;
  background: var(--g) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Checkout buttons */
#btnCompleteOrder, .btn-order-complete {
  background: var(--g) !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  width: 100% !important;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3) !important;
}

#btnCompleteOrder:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(37,99,235,0.4) !important;
}


/* ═══════════════════════════════════════════
   TICKETS
   ═══════════════════════════════════════════ */

.ticket-reply-container .card {
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

.ticket-staff-reply {
  border-left: 3px solid var(--p) !important;
  background: rgba(37,99,235,0.015) !important;
}


/* ═══════════════════════════════════════════
   INVOICES
   ═══════════════════════════════════════════ */

.invoice-container .card { border-radius: 16px !important; }

.status-paid {
  background: #ecfdf5 !important; color: #059669 !important;
  padding: 6px 14px !important; border-radius: 20px !important;
  font-weight: 700 !important; font-size: 12px !important;
}

.status-unpaid {
  background: #fef2f2 !important; color: #dc2626 !important;
  padding: 6px 14px !important; border-radius: 20px !important;
  font-weight: 700 !important; font-size: 12px !important;
}


/* ═══════════════════════════════════════════
   KNOWLEDGEBASE
   ═══════════════════════════════════════════ */

.article-list .card { border-radius: 16px !important; transition: all 0.3s !important; }
.article-list .card:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important; }


/* ═══════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════ */

.breadcrumb {
  background: transparent !important;
  padding: 12px 0 !important;
  font-size: 13px !important;
}

.breadcrumb-item a { color: var(--p) !important; font-weight: 500 !important; }
.breadcrumb-item.active { color: var(--t2) !important; }


/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

.page-link {
  border-radius: 8px !important;
  margin: 0 2px !important;
  border: 1px solid var(--b) !important;
  color: var(--t) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
}

.page-item.active .page-link {
  background: var(--g) !important;
  border-color: transparent !important;
  color: #fff !important;
}


/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */

.modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15) !important;
}

.modal-header {
  border-bottom: 1px solid var(--b2) !important;
  padding: 20px 24px !important;
}

.modal-body { padding: 24px !important; }

.modal-footer {
  border-top: 1px solid var(--b2) !important;
  padding: 16px 24px !important;
}


/* ═══════════════════════════════════════════
   DROPDOWN
   ═══════════════════════════════════════════ */

.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid var(--b) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
  padding: 6px !important;
}

.dropdown-item {
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.dropdown-item:hover {
  background: rgba(37,99,235,0.06) !important;
  color: var(--p) !important;
}


/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */

.nav-tabs {
  border-bottom: 2px solid var(--b2) !important;
}

.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--t2) !important;
  margin-bottom: -2px !important;
  transition: all 0.2s !important;
}

.nav-tabs .nav-link:hover {
  border-color: #d1d5db !important;
  background: transparent !important;
  color: var(--t) !important;
}

.nav-tabs .nav-link.active {
  border: none !important;
  border-bottom: 2px solid var(--p) !important;
  color: var(--p) !important;
  background: transparent !important;
  font-weight: 700 !important;
}


/* ═══════════════════════════════════════════
   PAGE HEADINGS
   ═══════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  color: var(--t) !important;
  letter-spacing: -0.01em !important;
}

.page-header, .header-text {
  margin-bottom: 24px !important;
}


/* ═══════════════════════════════════════════
   DOMAIN SEARCH
   ═══════════════════════════════════════════ */

.domain-checker-bg {
  background: var(--g) !important;
  border-radius: 16px !important;
  padding: 32px !important;
}

.domain-checker-bg .form-control {
  border-radius: 12px 0 0 12px !important;
  padding: 14px 18px !important;
  font-size: 16px !important;
  background: var(--w) !important;
}

.domain-checker-bg .btn {
  border-radius: 0 12px 12px 0 !important;
  padding: 14px 24px !important;
}


/* ═══════════════════════════════════════════
   WELL & MISC
   ═══════════════════════════════════════════ */

.well {
  background: #f9fafb !important;
  border: 1px solid var(--b) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 20px !important;
}

hr { border-color: var(--b2) !important; }

/* Captcha */
.g-recaptcha { margin: 12px 0 !important; }


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.hpx-footer {
  background: linear-gradient(170deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: #94a3b8; padding: 48px 0 24px; margin-top: 40px;
}
.hpx-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hpx-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.hpx-footer-brand img { height: 90px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.hpx-footer-brand p { font-size: 13.5px; line-height: 1.7; color: #94a3b8; max-width: 280px; }
.hpx-footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.hpx-footer-col a { display: block; font-size: 13.5px; color: #94a3b8; text-decoration: none; padding: 4px 0; }
.hpx-footer-col a:hover { color: #fff; }
.hpx-footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2); border-radius: 10px; margin-top: 16px;
}
.hpx-footer-status .dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: hpx-pulse 2s ease-in-out infinite; }
.hpx-footer-status span { font-size: 12px; font-weight: 700; color: #10b981; }
.hpx-footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.hpx-footer-bottom p { font-size: 12px; color: #64748b; margin: 0; }
.hpx-footer-bottom a { font-size: 12px; color: #64748b; text-decoration: none; }
.hpx-footer-bottom a:hover { color: #94a3b8; }
.hpx-footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.hpx-footer-socials a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8; transition: all .2s; padding: 0;
}
.hpx-footer-socials a:hover { background: rgba(37,99,235,0.3); border-color: rgba(37,99,235,0.3); color: #fff; }

/* WhatsApp */
.hpx-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform .3s; text-decoration: none;
}
.hpx-whatsapp:hover { transform: scale(1.1); }

/* Animations */
@keyframes hpx-pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Responsive */
@media (max-width: 768px) {
  .hpx-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hpx-footer-bottom { flex-direction: column; text-align: center; }
  .login-form .card-body { padding: 28px 20px 20px !important; }
  .login-form .card-footer { padding: 14px 20px !important; }
  #main-body .card-body, .main-content .card-body { padding: 20px !important; }
}
/* ═══════ FIX: Login card width ═══════ */
.login-form .card.mw-540 {
  max-width: 420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ═══════ FIX: Register card width ═══════ */
#main-body > .container > .card,
.main-content > .container > .card,
form[action*="register"] .card,
form .card.mw-540 {
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ═══════ FIX: Input group icons alignment ═══════ */
.input-group {
  flex-wrap: nowrap !important;
}

.input-group .input-group-prepend {
  flex-shrink: 0 !important;
}

.input-group .input-group-prepend .input-group-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: auto !important;
  padding: 0 12px !important;
  background: #f3f4f6 !important;
  border: 1.5px solid #e5e7eb !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  color: #9ca3af !important;
  font-size: 14px !important;
}

.input-group .input-group-append {
  flex-shrink: 0 !important;
}

.input-group .input-group-append .btn {
  border-radius: 0 10px 10px 0 !important;
  border: 1.5px solid #e5e7eb !important;
  border-left: none !important;
  padding: 0 14px !important;
  height: auto !important;
}

.input-group .form-control {
  border-radius: 0 !important;
  border-left: none !important;
  min-height: 46px !important;
}

.input-group .input-group-prepend + .form-control {
  border-radius: 0 10px 10px 0 !important;
}

.input-group .input-group-prepend + .form-control:not(:last-child) {
  border-radius: 0 !important;
}

/* Login page specific - override border for cleaner look */
.login-form .input-group {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f9fafb !important;
}

.login-form .input-group:focus-within {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
}

.login-form .input-group .input-group-prepend .input-group-text {
  border: none !important;
  background: transparent !important;
  min-width: 40px !important;
  padding: 0 0 0 14px !important;
}

.login-form .input-group .form-control {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 13px 14px 13px 8px !important;
}

.login-form .input-group .input-group-append .btn {
  border: none !important;
  background: transparent !important;
  padding: 0 14px !important;
}

/* ═══════ FIX: Register page width — bigger ═══════ */
#main-body > .container > .card,
.main-content > .container > .card,
form[action*="register"] .card,
form .card.mw-540 {
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep login card smaller */
.login-form .card.mw-540,
.login-form .card {
  max-width: 420px !important;
}

/* ═══════ FIX: ALL input group icons — proper alignment ═══════ */
.input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

.input-group .input-group-prepend,
.input-group .input-group-append {
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: stretch !important;
}

.input-group .input-group-prepend .input-group-text,
.input-group .input-group-append .input-group-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 46px !important;
  padding: 0 14px !important;
  background: #f3f4f6 !important;
  border: 1.5px solid #e5e7eb !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.input-group .input-group-prepend .input-group-text i,
.input-group .input-group-prepend .input-group-text svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 1 !important;
}

.input-group .form-control {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-height: 46px !important;
  border-radius: 0 10px 10px 0 !important;
  border: 1.5px solid #e5e7eb !important;
  border-left: none !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
}

.input-group .input-group-append .input-group-text {
  border-left: none !important;
  border-right: 1.5px solid #e5e7eb !important;
  border-radius: 0 10px 10px 0 !important;
}

.input-group .input-group-append .btn {
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid #e5e7eb !important;
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 0 14px !important;
  background: #f9fafb !important;
}

/* When there is both prepend and append */
.input-group .input-group-prepend + .form-control:not(:last-child) {
  border-radius: 0 !important;
}

/* Phone number input with country code */
.iti { width: 100% !important; }
.iti .form-control { padding-left: 52px !important; }
.iti__flag-container { z-index: 2 !important; }

/* Fix select inside input-group */
.input-group select.form-control {
  border-radius: 0 10px 10px 0 !important;
}

/* ═══════ Override login page icons (keep clean look) ═══════ */
.login-form .input-group {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f9fafb !important;
}

.login-form .input-group:focus-within {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
}

.login-form .input-group .input-group-prepend .input-group-text {
  border: none !important;
  background: transparent !important;
  min-width: 40px !important;
  padding: 0 0 0 14px !important;
}

.login-form .input-group .form-control {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 13px 14px 13px 8px !important;
}

.login-form .input-group .input-group-append .btn {
  border: none !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════
   REGISTER PAGE — COMPLETE FIX v3
   ═══════════════════════════════════════ */

/* Register card width */
#main-body .card,
.main-content .card,
form .card {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Login card stays small */
.login-form .card,
.login-form .card.mw-540 {
  max-width: 420px !important;
}

/* ═══════ HIDE LEFT ICONS — Clean inputs ═══════ */
.input-group-prepend {
  display: none !important;
}

/* Fix input when prepend is hidden */
.input-group .form-control {
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  min-height: 46px !important;
  width: 100% !important;
  background: #f9fafb !important;
  flex: 1 !important;
}

.input-group .form-control:focus {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
}

/* Input group fix — no wrapping */
.input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Append buttons (password reveal, generate) on RIGHT */
.input-group-append {
  display: flex !important;
  flex-shrink: 0 !important;
  margin-left: -1px !important;
}

.input-group-append .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #e5e7eb !important;
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 0 14px !important;
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  min-height: 46px !important;
  cursor: pointer !important;
  font-size: 13px !important;
}

.input-group-append .btn:hover {
  background: #e5e7eb !important;
  color: #2563eb !important;
}

/* When append exists, fix input border */
.input-group .form-control:not(:last-child) {
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
}

/* ═══════ GENERATE PASSWORD BUTTON FIX ═══════ */
.btn-generate-pw,
.btn[data-action="generate-password"],
button[onclick*="generatePassword"],
.generate-password,
.btn-reveal-pw {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #e5e7eb !important;
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 0 14px !important;
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  min-height: 46px !important;
  min-width: 46px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.btn-generate-pw:hover,
.btn[data-action="generate-password"]:hover,
.btn-reveal-pw:hover {
  background: #e5e7eb !important;
  color: #2563eb !important;
}

/* Password strength meter */
.pw-strength,
.password-strength-meter {
  margin-top: 6px !important;
  height: 4px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* ═══════ LOGIN PAGE — Keep icons visible ═══════ */
.login-form .input-group-prepend {
  display: flex !important;
}

.login-form .input-group {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f9fafb !important;
}

.login-form .input-group:focus-within {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08) !important;
}

.login-form .input-group-prepend .input-group-text {
  border: none !important;
  background: transparent !important;
  padding: 0 0 0 14px !important;
  color: #9ca3af !important;
  min-width: auto !important;
}

.login-form .input-group:focus-within .input-group-text {
  color: #2563eb !important;
}

.login-form .input-group .form-control {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 13px 14px 13px 8px !important;
  min-height: auto !important;
}

.login-form .input-group .form-control:focus {
  box-shadow: none !important;
}

.login-form .input-group-append .btn {
  border: none !important;
  background: transparent !important;
  min-height: auto !important;
}

/* ═══════ PHONE INPUT (intl-tel-input) FIX ═══════ */
.iti {
  width: 100% !important;
  display: block !important;
}

.iti .form-control {
  width: 100% !important;
  padding-left: 52px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
}

.iti__flag-container {
  z-index: 2 !important;
}

/* ═══════ SELECT DROPDOWN FIX ═══════ */
select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

/* ═══════ FORM SECTIONS SPACING ═══════ */
.form-group {
  margin-bottom: 16px !important;
}

label, .form-control-label, .control-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Required asterisk */
.required::after {
  content: ' *' !important;
  color: #ef4444 !important;
}

/* Help text */
.field-help-text, .help-block {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-top: 4px !important;
}

/* ═══════════════════════════════════════
   AGGRESSIVE ICON FIX — HIDE ALL ICONS
   except login page
   ═══════════════════════════════════════ */

/* Hide ALL prepend icons everywhere */
.input-group-prepend,
.input-group-text:not(.login-form .input-group-text) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Fix ALL inputs to be full rounded when icon hidden */
.input-group .form-control,
.input-group > .form-control {
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  padding: 12px 16px !important;
  width: 100% !important;
  background: #f9fafb !important;
}

/* When append button exists (password reveal/generate) */
.input-group .form-control:not(:last-child) {
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
}

/* ═══════ LOGIN PAGE ONLY — Show icons ═══════ */
.login-form .input-group-prepend {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.login-form .input-group-prepend .input-group-text {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  padding: 0 0 0 14px !important;
  color: #9ca3af !important;
}

.login-form .input-group .form-control {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 13px 14px 13px 8px !important;
}

.login-form .input-group .form-control:not(:last-child) {
  border-radius: 0 !important;
  border-right: none !important;
}

/* ═══════════════════════════════════════
   AGGRESSIVE ICON FIX — HIDE ALL ICONS
   except login page
   ═══════════════════════════════════════ */

/* Hide ALL prepend icons everywhere */
.input-group-prepend,
.input-group-text:not(.login-form .input-group-text) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Fix ALL inputs to be full rounded when icon hidden */
.input-group .form-control,
.input-group > .form-control {
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  padding: 12px 16px !important;
  width: 100% !important;
  background: #f9fafb !important;
}

/* When append button exists (password reveal/generate) */
.input-group .form-control:not(:last-child) {
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
}

/* ═══════ LOGIN PAGE ONLY — Show icons ═══════ */
.login-form .input-group-prepend {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.login-form .input-group-prepend .input-group-text {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  padding: 0 0 0 14px !important;
  color: #9ca3af !important;
}

.login-form .input-group .form-control {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 13px 14px 13px 8px !important;
}

.login-form .input-group .form-control:not(:last-child) {
  border-radius: 0 !important;
  border-right: none !important;
}

/* ═══════════════════════════════════════
   REGISTER ICON NUKE v4 — Final Fix
   Saare leaking icons ko hatata hai
   ═══════════════════════════════════════ */

/* 1. Saare register inputs se background icons hatao */
form input.form-control[name="firstname"],
form input.form-control[name="lastname"],
form input.form-control[name="email"],
form input.form-control[name="phonenumber"],
form input.form-control[name="companyname"],
form input.form-control[name="address1"],
form input.form-control[name="address2"],
form input.form-control[name="city"],
form input.form-control[name="state"],
form input.form-control[name="postcode"],
form input.form-control[name="taxid"],
form input.form-control[type="email"],
form input.form-control[type="tel"],
form input.form-control[type="text"]:not([name="domain"]) {
    background-image: none !important;
    background-color: #f9fafb !important;
    padding-left: 16px !important;
}

form input.form-control:focus {
    background-color: #fff !important;
}

/* 2. Selects: sirf dropdown arrow rakho, baaki sab hatao */
form select.form-control,
form select[name="country"],
form select[name="currency"],
form select[name="state"] {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: #f9fafb !important;
    padding-left: 16px !important;
    padding-right: 40px !important;
}

/* 3. Inline <i> aur <svg> icons jo input ke andar/upar lage hain — hide */
form .form-group > i,
form .form-group > svg:first-child,
form .field > i,
form .field > svg,
form .field-icon,
form i.field-icon,
form .input-icon,
form .form-control-icon,
form .form-group i.fa,
form .form-group i.fas,
form .form-group i.far,
form .form-group i[class^="fa-"],
form .form-group i[class*=" fa-"] {
    display: none !important;
}

/* 4. Pseudo-element icons (::before / ::after) ko bhi nuke */
form .form-group::before,
form .form-group .field::before,
form .field-container::before,
form .form-group label::before,
form .form-control::before {
    content: none !important;
    display: none !important;
}

/* 5. Phone (intl-tel-input) — flag dropdown rakho, clean baaki */
form .iti input.form-control,
form .iti--allow-dropdown input.form-control {
    padding-left: 52px !important;
    background-image: none !important;
}

/* 6. Section card gradient bar ko clean rakhna (optional, agar gradient line hata hai) */
form fieldset.card,
form .card {
    border-top: none !important;
}
form fieldset.card legend,
form .card-header {
    border-bottom: 1px solid #e5e7eb !important;
}


/* ============================================================
   HOSTPRIMEX CHECKOUT — AUTH TOGGLE + ORDER SUMMARY SIDEBAR
   Append this to the END of your existing custom.css
   ============================================================ */

/* === Checkout 2-Column Layout === */
.hpx-checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 991px) {
    .hpx-checkout-wrapper {
        grid-template-columns: 1fr;
    }
    .hpx-checkout-sidebar {
        order: -1;
    }
}

/* === Auth Toggle (New Account / Already Registered) === */
.hpx-auth-toggle {
    margin-bottom: 22px;
}
.hpx-auth-toggle-inner {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}
.hpx-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    color: #64748b;
}
.hpx-auth-btn:hover {
    color: #334155;
    background: rgba(255,255,255,0.5);
}
.hpx-auth-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
}
.hpx-auth-btn-new.active {
    color: #2563eb;
}
.hpx-auth-btn-existing.active {
    color: #059669;
}
.hpx-auth-btn i {
    font-size: 15px;
}

/* Hide WHMCS default "already-registered" bar since we replaced it */
#order-standard_cart .already-registered {
    display: none !important;
}

/* === Order Summary Sidebar === */
.hpx-order-summary {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* Header */
.hpx-os-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.hpx-os-header i {
    font-size: 17px;
    opacity: 0.85;
}

/* Body — Items */
.hpx-os-body {
    padding: 16px 20px;
}
.hpx-os-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hpx-os-item:last-child {
    border-bottom: none;
}
.hpx-os-item-addon {
    padding-left: 10px;
    opacity: 0.85;
}
.hpx-os-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 14px;
}
.hpx-os-item-details {
    flex: 1;
    min-width: 0;
}
.hpx-os-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}
.hpx-os-item-group {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.hpx-os-item-domain {
    font-size: 12.5px;
    color: #2563eb;
    margin-top: 3px;
    font-weight: 500;
    word-break: break-all;
}
.hpx-os-item-cycle {
    display: inline-block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
}
.hpx-os-item-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

/* Totals */
.hpx-os-totals {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}
.hpx-os-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13.5px;
    color: #475569;
}
.hpx-os-row span:last-child {
    font-weight: 700;
    color: #1e293b;
}
.hpx-os-discount span:last-child {
    color: #059669;
}

/* Total Due */
.hpx-os-total-due {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-top: 2px solid #bbf7d0;
    text-align: center;
}
.hpx-os-total-label {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.hpx-os-total-amount {
    font-size: 28px;
    font-weight: 900;
    color: #065f46;
    line-height: 1.1;
}

/* Secure Badge */
.hpx-os-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}
.hpx-os-secure i {
    color: #22c55e;
    font-size: 13px;
}

/* === Mobile: Order Summary Collapsible === */
@media (max-width: 991px) {
    .hpx-order-summary {
        position: relative;
        top: 0;
    }
}

/* === Sub-heading styling override for checkout form === */
.hpx-checkout-main .sub-heading {
    margin-top: 20px;
}

/* === Hide original WHMCS "Total Due Today" inside form since sidebar shows it === */
/* Keep it but make it more subtle */
.hpx-checkout-main #totalDueToday {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4) !important;
    border: 1px solid #bbf7d0 !important;
    color: #065f46 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
}
.hpx-checkout-main #totalDueToday strong {
    font-size: 18px !important;
    color: #065f46 !important;
}
