/* =============================================================
   Hostlixa - Modern WHMCS Theme
   Author: Hostlixa
   Version: 1.0.0
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --hl-primary:        #4f7cff;
  --hl-primary-2:      #6f5cff;
  --hl-primary-3:      #a154ff;
  --hl-accent:         #22d3ee;
  --hl-success:        #22c55e;
  --hl-warning:        #f59e0b;
  --hl-danger:         #ef4444;
  --hl-info:           #38bdf8;

  /* Surfaces */
  --hl-bg:             #f4f6ff;
  --hl-bg-soft:        #eaedfb;
  --hl-bg-elev:        #ffffff;
  --hl-surface:        rgba(15, 23, 42, 0.03);
  --hl-surface-strong: rgba(15, 23, 42, 0.06);
  --hl-border:         rgba(15, 23, 42, 0.08);
  --hl-border-strong:  rgba(15, 23, 42, 0.14);

  /* Text */
  --hl-text:           #0f1735;
  --hl-text-muted:     #4a5478;
  --hl-text-dim:       #7a83a5;
  --hl-text-inverse:   #ffffff;

  /* Radius & shadow */
  --hl-radius-xs:      8px;
  --hl-radius-sm:      12px;
  --hl-radius:         16px;
  --hl-radius-lg:      22px;
  --hl-radius-xl:      28px;
  --hl-shadow-sm:      0 4px 14px rgba(31, 41, 90, 0.08);
  --hl-shadow:         0 16px 40px rgba(31, 41, 90, 0.12);
  --hl-shadow-lg:      0 30px 80px rgba(31, 41, 90, 0.2);
  --hl-glow:           0 0 0 1px rgba(111, 92, 255, 0.35), 0 12px 40px rgba(111, 92, 255, 0.25);

  /* Gradients */
  --hl-grad-primary:   linear-gradient(135deg, #4f7cff 0%, #6f5cff 45%, #a154ff 100%);
  --hl-grad-soft:      linear-gradient(135deg, rgba(79,124,255,.18), rgba(161,84,255,.18));
  --hl-grad-card:      linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.6));
  --hl-grad-hero:      radial-gradient(ellipse 900px 520px at 8% 18%, rgba(147, 197, 253, 0.55), transparent 58%),
                       radial-gradient(ellipse 820px 480px at 92% 12%, rgba(196, 181, 253, 0.48), transparent 55%),
                       radial-gradient(ellipse 700px 420px at 72% 78%, rgba(167, 139, 250, 0.22), transparent 60%),
                       radial-gradient(ellipse 600px 360px at 18% 88%, rgba(186, 230, 253, 0.28), transparent 58%),
                       linear-gradient(180deg, #fbfcff 0%, #f6f8ff 42%, #eef2ff 100%);

  /* Layout */
  --hl-nav-h:          72px;
  --hl-sidebar-w:      260px;
  --hl-container:      1240px;

  /* Motion */
  --hl-ease:           cubic-bezier(.2,.7,.2,1);
  --hl-fast:           .18s var(--hl-ease);
  --hl-mid:            .35s var(--hl-ease);
  --hl-slow:           .6s var(--hl-ease);
}

/* ---------- 2. Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: auto; }

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hl-text);
  background: var(--hl-bg);
  background-image:
    radial-gradient(1200px 700px at 90% -20%, rgba(111,92,255,.12), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(34,211,238,.08), transparent 60%);
  background-attachment: scroll;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--hl-mid), color var(--hl-mid);
}

a { color: var(--hl-primary); text-decoration: none; transition: color var(--hl-fast); }
a:hover { color: var(--hl-primary-3); }

h1,h2,h3,h4,h5,h6 { color: var(--hl-text); margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--hl-text-muted); margin: 0 0 1em; }

.hl-muted   { color: var(--hl-text-muted) !important; }
.hl-text-success { color: var(--hl-success) !important; }
.hl-text-warning { color: var(--hl-warning) !important; }
.hl-dim     { color: var(--hl-text-dim) !important; }
.hl-gradient-text {
  background: var(--hl-grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

::selection { background: rgba(111,92,255,.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hl-surface-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(111,92,255,.5); }

/* ---------- 3. Layout helpers ---------- */
.hl-container { width: 100%; max-width: var(--hl-container); margin: 0 auto; padding: 0 24px; }
.hl-section   { padding: 96px 0; position: relative; }
.hl-section-sm { padding: 56px 0; }
.hl-grid      { display: grid; gap: 24px; }
.hl-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-grid-aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hl-grid-aside-sm { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hl-grid-form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hl-grid-form-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hl-grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hl-grid-auto-md { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.hl-grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.hl-hero-copy { max-width: 680px; margin: 0 auto; }
.hl-flex      { display: flex; }
.hl-row       { display: flex; flex-wrap: wrap; gap: 24px; }
.hl-center    { display: flex; align-items: center; justify-content: center; }
.hl-between   { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hl-stack     { display: flex; flex-direction: column; gap: 16px; }
.hl-stack-sm  { display: flex; flex-direction: column; gap: 8px; }

.hl-hide-mobile { display: inline; }
.hl-hide-xs { display: inline; }
.hl-show-xs-only { display: none !important; }
.hl-text-center { text-align: center; }
.hl-mb-0 { margin-bottom: 0 !important; }
.hl-mb-1 { margin-bottom: 8px; }
.hl-mb-2 { margin-bottom: 16px; }
.hl-mb-3 { margin-bottom: 24px; }
.hl-mb-4 { margin-bottom: 32px; }
.hl-mb-5 { margin-bottom: 48px; }
.hl-mt-1 { margin-top: 8px; }
.hl-mt-2 { margin-top: 16px; }
.hl-mt-3 { margin-top: 24px; }
.hl-mt-4 { margin-top: 32px; }

/* ---------- 4. Buttons ---------- */
.hl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--hl-fast), box-shadow var(--hl-fast), background var(--hl-fast), color var(--hl-fast), border-color var(--hl-fast);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.hl-btn:hover { transform: translateY(-1px); }
.hl-btn:active { transform: translateY(0); }
.hl-btn i, .hl-btn svg { font-size: 1em; }

.hl-btn-primary {
  background: var(--hl-grad-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(111, 92, 255, .35);
}
.hl-btn-primary:hover { color: #fff; box-shadow: 0 16px 32px rgba(111, 92, 255, .45); }

.hl-btn-orange {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}
.hl-btn-orange:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
}
.hl-btn-pars-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hl-btn-pars-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hl-btn-ghost {
  background: var(--hl-surface-strong);
  color: var(--hl-text);
  border-color: var(--hl-border-strong);
}
.hl-btn-ghost:hover { background: var(--hl-surface-strong); color: var(--hl-text); border-color: rgba(111,92,255,.5); }

.hl-btn-outline {
  background: transparent;
  color: var(--hl-text);
  border: 1px solid var(--hl-border-strong);
}
.hl-btn-outline:hover { color: #fff; border-color: var(--hl-primary); background: rgba(79,124,255,.12); }

.hl-btn-soft {
  background: rgba(79,124,255,.12);
  color: var(--hl-primary);
  border: 1px solid rgba(79,124,255,.25);
}
.hl-btn-soft:hover { background: rgba(79,124,255,.18); color: var(--hl-primary); }

.hl-btn-success { background: var(--hl-success); color: #fff; }
.hl-btn-warning { background: var(--hl-warning); color: #fff; }
.hl-btn-danger  { background: var(--hl-danger);  color: #fff; }

.hl-btn-sm { padding: 8px 14px; font-size: .85rem; }
.hl-btn-lg { padding: 16px 28px; font-size: 1rem; }
.hl-btn-block { width: 100%; }
.hl-btn[disabled], .hl-btn.is-loading { opacity: .55; pointer-events: none; }

/* ---------- 5. Cards & Glass ---------- */
.hl-card {
  position: relative;
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 24px;
  box-shadow: var(--hl-shadow-sm);
  transition: transform var(--hl-mid), box-shadow var(--hl-mid), border-color var(--hl-mid);
}
.hl-card.is-hoverable:hover {
  transform: translateY(-4px);
  border-color: var(--hl-border-strong);
  box-shadow: var(--hl-shadow);
}
.hl-card-lg { padding: 32px; border-radius: var(--hl-radius-lg); }

.hl-glass {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--hl-radius);
}

.hl-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.hl-card-title  { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--hl-text); }
.hl-card-sub    { color: var(--hl-text-muted); font-size: .85rem; margin: 4px 0 0; }

/* Stat / overview card */
.hl-stat {
  position: relative;
  padding: 24px;
  border-radius: var(--hl-radius);
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--hl-mid), box-shadow var(--hl-mid);
}
.hl-stat::after {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(111,92,255,.25), transparent 50%);
  opacity: 0; transition: opacity var(--hl-mid);
  border-radius: inherit; z-index: -1;
}
.hl-stat:hover { transform: translateY(-3px); box-shadow: var(--hl-shadow); }
.hl-stat:hover::after { opacity: 1; }

.hl-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(79,124,255,.15); color: var(--hl-primary);
  font-size: 1.1rem; margin-bottom: 16px;
}
.hl-stat-icon.is-success { background: rgba(34,197,94,.15); color: var(--hl-success); }
.hl-stat-icon.is-warning { background: rgba(245,158,11,.15); color: var(--hl-warning); }
.hl-stat-icon.is-danger  { background: rgba(239,68,68,.15);  color: var(--hl-danger); }
.hl-stat-icon.is-accent  { background: rgba(34,211,238,.15); color: var(--hl-accent); }

.hl-stat-label { color: var(--hl-text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hl-stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 6px 0; color: var(--hl-text); }
.hl-stat-meta  { font-size: .85rem; color: var(--hl-text-muted); }
.hl-stat-delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.hl-stat-delta.is-up   { color: var(--hl-success); background: rgba(34,197,94,.12); }
.hl-stat-delta.is-down { color: var(--hl-danger);  background: rgba(239,68,68,.12); }

/* ---------- 6. Badges & Pills ---------- */
.hl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  background: var(--hl-surface-strong); color: var(--hl-text);
  border: 1px solid var(--hl-border);
}
.hl-badge.is-success { background: rgba(34,197,94,.12);  color: var(--hl-success); border-color: rgba(34,197,94,.25); }
.hl-badge.is-warning { background: rgba(245,158,11,.12); color: var(--hl-warning); border-color: rgba(245,158,11,.25); }
.hl-badge.is-danger  { background: rgba(239,68,68,.12);  color: var(--hl-danger);  border-color: rgba(239,68,68,.25); }
.hl-badge.is-info    { background: rgba(56,189,248,.12); color: var(--hl-info);    border-color: rgba(56,189,248,.25); }
.hl-badge.is-primary { background: rgba(79,124,255,.14); color: var(--hl-primary); border-color: rgba(79,124,255,.3); }
.hl-badge.status-active,
.hl-badge.status-completed { background: rgba(34,197,94,.12); color: var(--hl-success); border-color: rgba(34,197,94,.25); }
.hl-badge.status-pending,
.hl-badge.status-processing { background: rgba(245,158,11,.12); color: var(--hl-warning); border-color: rgba(245,158,11,.25); }
.hl-badge.status-suspended,
.hl-badge.status-terminated,
.hl-badge.status-cancelled,
.hl-badge.status-fraud { background: rgba(239,68,68,.12); color: var(--hl-danger); border-color: rgba(239,68,68,.25); }

.hl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hl-text-dim); display: inline-block; }
.hl-dot.is-success { background: var(--hl-success); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hl-dot.is-warning { background: var(--hl-warning); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.hl-dot.is-danger  { background: var(--hl-danger);  box-shadow: 0 0 0 4px rgba(239,68,68,.18); }

/* ---------- 7. Forms ---------- */
.hl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hl-label { font-size: .85rem; font-weight: 600; color: var(--hl-text); }
.hl-help  { font-size: .8rem; color: var(--hl-text-muted); }

.hl-input, .hl-select, .hl-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-sm);
  color: var(--hl-text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--hl-fast), background var(--hl-fast), box-shadow var(--hl-fast);
}
.hl-input:focus, .hl-select:focus, .hl-textarea:focus {
  outline: none;
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 4px rgba(79,124,255,.18);
  background: var(--hl-surface-strong);
}
.hl-input::placeholder, .hl-textarea::placeholder { color: var(--hl-text-dim); }
.hl-textarea { min-height: 120px; resize: vertical; }

/* WHMCS markdown editor (submit ticket, KB, announcements) */
.md-editor {
  display: block;
  width: 100%;
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-sm);
  background: var(--hl-surface);
  overflow: hidden;
  transition: border-color var(--hl-fast), box-shadow var(--hl-fast);
}

.md-editor > .btn-toolbar,
.md-editor > .md-header.btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0;
  background: var(--hl-bg-elev);
  border-bottom: 1px solid var(--hl-border);
}

.md-editor .btn-toolbar .btn-group,
.md-editor .btn-group {
  display: inline-flex;
  vertical-align: middle;
  position: relative;
  flex: 0 0 auto;
}

.md-editor .btn-toolbar .btn-group {
  margin: 0;
}

.md-editor .btn-toolbar .btn,
.md-editor .btn-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  vertical-align: middle;
  white-space: nowrap;
}

.md-editor .btn-group > .btn:not(:first-child) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.md-editor .btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.md-editor .btn-group > .btn:only-child {
  border-radius: 8px;
}

.md-editor .btn-toolbar .btn:hover,
.md-editor .btn-group .btn:hover {
  background: var(--hl-surface-strong);
  border-color: var(--hl-border-strong);
  color: var(--hl-primary);
}

.md-editor .btn-toolbar .btn.active,
.md-editor .btn-group .btn.active {
  background: rgba(79, 124, 255, 0.12);
  border-color: var(--hl-primary);
  color: var(--hl-primary);
}

.md-editor .btn-toolbar .btn:focus,
.md-editor .btn-group .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.18);
}

.md-editor .btn-toolbar .hidden {
  display: none !important;
}

.md-editor .md-controls {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0 2px;
}

.md-editor .md-controls .md-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--hl-text-muted);
  text-decoration: none;
  border-radius: 8px;
}

.md-editor .md-controls .md-control:hover {
  color: var(--hl-primary);
  background: rgba(79, 124, 255, 0.08);
}

.md-editor > textarea.md-input,
.md-editor > textarea.markdown-editor {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--hl-border);
  border-radius: 0;
  background: var(--hl-surface);
  color: var(--hl-text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  box-shadow: none;
}

.md-editor > textarea.md-input:focus,
.md-editor > textarea.markdown-editor:focus {
  outline: none;
  background: var(--hl-surface-strong);
  box-shadow: none;
}

.md-editor > .md-preview {
  padding: 14px 16px;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text);
  min-height: 120px;
  overflow: auto;
}

.md-editor .md-footer {
  display: block;
  padding: 6px 12px;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-bg-elev);
}

.markdown-editor-status {
  padding: 2px 0;
  font-size: 0.75rem;
  color: var(--hl-text-muted);
  text-align: right;
}

.md-editor.active {
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}

.md-editor.md-fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 10070;
  width: 100%;
  height: 100%;
  padding: 72px 24px 20px;
  border: 0;
  border-radius: 0;
  background: var(--hl-bg) !important;
  overflow: auto;
}

.md-editor.md-fullscreen-mode > .btn-toolbar,
.md-editor.md-fullscreen-mode > .md-header.btn-toolbar {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 10071;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
}

.md-editor.md-fullscreen-mode > textarea.md-input,
.md-editor.md-fullscreen-mode > textarea.markdown-editor,
.md-editor.md-fullscreen-mode > .md-preview {
  min-height: calc(100vh - 180px);
}

.md-nooverflow {
  overflow: hidden;
}

.hl-input-group {
  display: flex; align-items: center; position: relative;
}
.hl-input-group .hl-input { padding-left: 42px; }
.hl-input-group .hl-input-icon {
  position: absolute; left: 14px; color: var(--hl-text-muted);
  pointer-events: none;
}

.hl-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--hl-text-muted); cursor: pointer;
}
.hl-check input { accent-color: var(--hl-primary); width: 16px; height: 16px; }

/* ---------- 8. Tables ---------- */
.hl-table-wrap {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.hl-table { width: 100%; border-collapse: collapse; }
.hl-table thead th {
  text-align: left; padding: 14px 18px;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--hl-text-muted);
  background: var(--hl-surface);
  border-bottom: 1px solid var(--hl-border);
}
.hl-table tbody td {
  padding: 16px 18px; font-size: .92rem;
  color: var(--hl-text); border-bottom: 1px solid var(--hl-border);
  vertical-align: middle;
}
.hl-table tbody tr:last-child td { border-bottom: none; }
.hl-table tbody tr { transition: background var(--hl-fast); }
.hl-table tbody tr:hover { background: var(--hl-surface); }
.hl-table .hl-td-actions { text-align: right; white-space: nowrap; }

/* ---------- 9. Navbar ---------- */
/* ---- Promo / announcement bar ---- */
.hl-promo-bar {
    background: linear-gradient(90deg, #0f766e, #0ea5e9);
    color: #fff;
    font-size: .875rem;
}
.hl-promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 24px;
    text-align: center;
}
.hl-promo-bar-code { font-weight: 700; letter-spacing: .04em; }
.hl-promo-bar-cta {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.hl-promo-bar-cta:hover { text-decoration: underline; color: #fff; }

.hl-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.hl-navbar {
  height: var(--hl-nav-h);
  display: flex;
  align-items: center;
  background: var(--hl-bg-elev);
  border-bottom: 1px solid var(--hl-border);
}

.hl-navbar-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
.hl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hl-text); font-weight: 800; font-size: 1.15rem; }
.hl-brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--hl-grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 18px rgba(111,92,255,.4);
}
.hl-brand-mark::before { content: "H"; font-family: 'Inter', sans-serif; }
.hl-brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(79, 124, 255, .25);
}
.hl-brand-logo--full {
  width: auto;
  max-width: min(220px, 42vw);
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.hl-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hl-nav-item { position: relative; list-style: none; }
.hl-nav-links > li { list-style: none; margin: 0; padding: 0; }
.hl-nav-links a,
.hl-nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  color: var(--hl-text-muted); font-weight: 500; font-size: .92rem;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; line-height: 1.4;
  transition: color var(--hl-fast), background var(--hl-fast);
}
.hl-nav-links a:hover,
.hl-nav-links a.is-active,
.hl-nav-trigger:hover,
.hl-nav-dd.is-open > .hl-nav-trigger {
  color: var(--hl-text);
  background: var(--hl-surface);
}
.hl-nav-chevron {
  font-size: .65rem;
  opacity: .65;
  transition: transform var(--hl-fast);
}
.hl-nav-dd.is-open > .hl-nav-trigger .hl-nav-chevron {
  transform: rotate(180deg);
}

/* Mega menu panels */
.hl-nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: min(680px, calc(100vw - 32px));
  padding-top: 12px; /* invisible hover bridge — prevents gap from closing menu */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--hl-mid), transform var(--hl-mid), visibility var(--hl-mid);
  z-index: 90;
}
.hl-nav-dd.is-open > .hl-nav-mega,
.hl-nav-dd.is-hover > .hl-nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hl-nav-mega-inner {
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-lg);
  box-shadow: var(--hl-shadow-lg);
  padding: 20px;
  overflow: hidden;
}
.hl-nav-mega--compact { min-width: min(520px, calc(100vw - 32px)); }
.hl-nav-mega-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hl-border);
}
.hl-nav-mega-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hl-text);
}
.hl-nav-mega-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hl-primary);
  margin-bottom: 4px;
}
.hl-nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hl-nav-mega-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-nav-mega-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-nav-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--hl-radius);
  border: 1px solid transparent;
  color: var(--hl-text);
  transition: background var(--hl-fast), border-color var(--hl-fast), transform var(--hl-fast);
}
.hl-nav-mega-item:hover {
  background: var(--hl-surface);
  border-color: var(--hl-border);
  transform: translateY(-1px);
}
.hl-nav-mega-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.hl-nav-mega-item small {
  display: block;
  font-size: .78rem;
  color: var(--hl-text-muted);
  line-height: 1.35;
}
.hl-nav-mega-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 124, 255, 0.12);
  color: var(--hl-primary);
  font-size: .95rem;
}
.hl-nav-mega-icon.is-accent { background: rgba(111, 92, 255, 0.12); color: #6f5cff; }
.hl-nav-mega-icon.is-success { background: rgba(34, 197, 94, 0.12); color: var(--hl-success); }
.hl-nav-mega-icon.is-info { background: rgba(56, 189, 248, 0.12); color: var(--hl-info); }

.hl-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hl-icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hl-surface); color: var(--hl-text);
  border: 1px solid var(--hl-border);
  cursor: pointer; transition: all var(--hl-fast); position: relative;
}
.hl-icon-btn:hover { background: var(--hl-surface-strong); border-color: var(--hl-border-strong); color: var(--hl-text); }
.hl-icon-btn .hl-dot-ind {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hl-danger); border: 2px solid var(--hl-bg);
}

.hl-burger { display: none; }

.hl-cart-link { position: relative; }
.hl-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--hl-primary);
  color: #fff;
  border: 2px solid var(--hl-bg);
  pointer-events: none;
}
.hl-cart-badge.is-empty { display: none; }

.hl-lang-btn,
.hl-currency-btn {
  width: auto;
  min-width: 40px;
  padding: 0 12px;
  gap: 6px;
}
.hl-lang-label,
.hl-currency-label {
  font-size: .78rem;
  font-weight: 600;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hl-dd-menu--lang .hl-lang-code,
.hl-dd-menu--currency .hl-lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hl-text-muted);
}
.hl-dd-item.is-active { background: var(--hl-surface-strong); }

.hl-mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--hl-nav-h) 0 0 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
}
.hl-mobile-nav-backdrop:not([hidden]) { display: block; }

.hl-mobile-nav-drawer { display: contents; }
.hl-mobile-nav-head { display: none; }

/* ---------- 10. Sidebar (client area) ---------- */
.hl-app { display: grid; grid-template-columns: var(--hl-sidebar-w) 1fr; min-height: calc(100vh - var(--hl-nav-h)); }
.hl-sidebar {
  position: sticky; top: var(--hl-nav-h);
  align-self: start;
  height: calc(100vh - var(--hl-nav-h));
  padding: 24px 16px;
  border-right: 1px solid var(--hl-border);
  background: var(--hl-bg-elev);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hl-sidebar-section { margin-bottom: 18px; }
.hl-sidebar-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hl-text-dim);
  padding: 0 12px; margin: 0 0 8px;
}
.hl-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--hl-text-muted); font-weight: 500; font-size: .92rem;
  transition: background var(--hl-fast), color var(--hl-fast);
}
.hl-sidebar-link:hover { color: var(--hl-text); background: var(--hl-surface); }
.hl-sidebar-link.is-active {
  color: #fff;
  background: var(--hl-grad-primary);
  box-shadow: 0 8px 24px rgba(111,92,255,.35);
}
.hl-sidebar-link i { width: 18px; text-align: center; }
.hl-sidebar-link .hl-count {
  margin-left: auto;
  font-size: .7rem; font-weight: 700;
  background: var(--hl-surface-strong); color: var(--hl-text-muted);
  padding: 2px 8px; border-radius: 999px;
}
.hl-sidebar-link.is-active .hl-count {
  background: rgba(255,255,255,.18); color: #fff;
}

.hl-content {
  padding: 32px 32px 64px;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
  overscroll-behavior-y: auto;
}
.hl-content-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* WHMCS core {$headeroutput} — hidden when Hostlixa client-area shell is active */
body.hl-is-client-area > .header-lined,
body.hl-is-client-area > h1.header-lined,
body.hl-is-cart > .header-lined {
  display: none !important;
}

/* Client area — scroll performance (avoid blur/fixed layers while scrolling) */
body.hl-is-client-area {
  background-image: none;
  background-color: var(--hl-bg);
}

body.hl-is-client-area .hl-app {
  contain: layout style;
}

body.hl-is-client-area .hl-ca-panel,
body.hl-is-client-area .hl-stat-link {
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

body.hl-is-client-area .hl-card.is-hoverable:hover,
body.hl-is-client-area .hl-stat-link:hover {
  transform: none;
  box-shadow: var(--hl-shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------- Client area dashboard ---------- */
.hl-ca-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hl-stat-link {
  text-decoration: none;
  color: inherit;
  transition: transform var(--hl-fast), box-shadow var(--hl-fast);
}

.hl-stat-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(111, 92, 255, 0.15);
}

.hl-ca-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.hl-ca-panel .hl-card-header {
  flex-wrap: wrap;
  gap: 12px;
}

.hl-ca-panel-body {
  padding: 0 22px 18px;
  font-size: 0.92rem;
  color: var(--hl-text-muted);
}

.hl-ca-panel-body .table,
.hl-ca-panel-body table {
  width: 100%;
  margin: 0;
}

/* Client area — security settings (lagom2-style tabbed panel) */
.hl-security-panel {
  overflow: hidden;
}

.hl-security-tabs-wrap {
  border-bottom: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

.hl-security-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 8px;
}

.hl-security-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hl-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--hl-fast), border-color var(--hl-fast), background var(--hl-fast);
}

.hl-security-tab:hover {
  color: var(--hl-text);
  background: rgba(79, 124, 255, 0.04);
}

.hl-security-tab.is-active {
  color: var(--hl-primary);
  border-bottom-color: var(--hl-primary);
  background: var(--hl-bg-elev);
}

.hl-security-body {
  padding: 24px;
}

.hl-security-pane .hl-alert {
  margin-bottom: 16px;
}

.hl-ca-security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}

.hl-ca-security-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Linked accounts + confirmation popovers (WHMCS bootstrap-confirmation) */
.hl-linked-providers .social-signin-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.hl-linked-providers .social-signin-btns .btn,
.hl-linked-providers .social-signin-btns a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg-elev);
  color: var(--hl-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.hl-linked-providers .social-signin-btns .btn:hover,
.hl-linked-providers .social-signin-btns a.btn:hover {
  background: var(--hl-surface);
  border-color: var(--hl-border-strong);
  color: var(--hl-text);
}

.hl-security-panel .hl-table-wrap {
  backdrop-filter: none;
}

.hl-security-panel #tableLinkedAccounts,
.hl-security-panel #tableLinkedAccounts.table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: transparent;
}

.hl-security-panel #tableLinkedAccounts thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-text-muted);
  background: var(--hl-surface);
  border-bottom: 1px solid var(--hl-border);
}

.hl-security-panel #tableLinkedAccounts tbody td {
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--hl-text);
  border-bottom: 1px solid var(--hl-border);
  vertical-align: middle;
}

.hl-security-panel #tableLinkedAccounts tbody tr:last-child td {
  border-bottom: none;
}

.hl-security-panel #tableLinkedAccounts tbody tr:hover {
  background: rgba(79, 124, 255, 0.03);
}

.hl-security-panel #tableLinkedAccounts td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* WHMCS injects unlink confirm modals inside table cells — keep hidden until moved to body */
#tableLinkedAccounts td .modal {
  display: none !important;
}

.hl-security-panel .btn,
.hl-security-panel a.btn,
.hl-security-panel button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg-elev);
  color: var(--hl-text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  vertical-align: middle;
}

.hl-security-panel .btn-primary,
.hl-security-panel .btn-danger,
.hl-security-panel .btn[data-btn-ok],
.hl-security-panel .btn[data-apply="confirmation"] {
  background: var(--hl-danger);
  border-color: transparent;
  color: #fff;
}

.hl-security-panel .btn-default,
.hl-security-panel .btn-secondary,
.hl-security-panel .btn[data-btn-cancel],
.hl-security-panel .btn[data-dismiss="confirmation"] {
  background: var(--hl-surface);
  border-color: var(--hl-border);
  color: var(--hl-text);
}

.hl-security-panel .btn:hover {
  filter: brightness(0.97);
}

/* Bootstrap confirmation popovers — hidden until active (no Bootstrap CSS in theme) */
.popover {
  position: absolute;
  z-index: 1060;
  display: none;
  max-width: 320px;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: 12px;
  box-shadow: var(--hl-shadow-lg);
}

.popover.show {
  display: block;
}

.popover .arrow {
  display: none;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hl-text);
  background: var(--hl-surface);
  border-bottom: 1px solid var(--hl-border);
  border-radius: 12px 12px 0 0;
}

.popover-header:empty {
  display: none;
}

.popover-body {
  padding: 14px;
  color: var(--hl-text-muted);
  line-height: 1.45;
}

.popover-body .btn-group,
.popover-body .confirmation-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.popover-body .btn-group .btn,
.popover-body .confirmation-buttons .btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Keep inactive confirmation templates out of table layout */
#tableLinkedAccounts td .popover:not(.show),
.hl-security-panel td .popover:not(.show) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* WHMCS modals (Ajax 2FA, linked-account unlink confirm, etc.) */
#modalAjax,
.modal.fade[id^="confirmModal"] {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
}

#modalAjax.show,
#modalAjax.in,
.modal.fade[id^="confirmModal"].show,
.modal.fade[id^="confirmModal"].in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#modalAjax:not(.show):not(.in),
.modal.fade[id^="confirmModal"]:not(.show):not(.in) {
  display: none !important;
}

#modalAjax .modal-dialog,
.modal.fade[id^="confirmModal"] .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  pointer-events: auto;
}

#modalAjax .modal-dialog.modal-lg,
.modal.fade[id^="confirmModal"] .modal-dialog.modal-lg {
  max-width: 720px;
}

#modalAjax .modal-content,
.modal.fade[id^="confirmModal"] .modal-content {
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-lg);
  box-shadow: var(--hl-shadow-lg);
  overflow: hidden;
}

#modalAjax .modal-header,
.modal.fade[id^="confirmModal"] .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

#modalAjax .modal-title,
.modal.fade[id^="confirmModal"] .modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hl-text);
}

#modalAjax .modal-header .close,
.modal.fade[id^="confirmModal"] .modal-header .close {
  margin: 0;
  padding: 4px 8px;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--hl-text-muted);
  cursor: pointer;
}

#modalAjax .modal-header .close:hover,
.modal.fade[id^="confirmModal"] .modal-header .close:hover {
  color: var(--hl-text);
}

#modalAjax .modal-body,
.modal.fade[id^="confirmModal"] .modal-body {
  padding: 20px 22px;
  color: var(--hl-text);
}

#modalAjax .modal-footer,
.modal.fade[id^="confirmModal"] .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

#modalAjax .modal-footer .loader,
.modal.fade[id^="confirmModal"] .modal-footer .loader {
  margin-right: auto;
  color: var(--hl-text-muted);
  font-size: 0.88rem;
}

#modalAjax .modal-footer .btn,
.modal.fade[id^="confirmModal"] .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg-elev);
  color: var(--hl-text);
  cursor: pointer;
}

#modalAjax .modal-footer .btn-primary,
#modalAjax .modal-footer .modal-submit {
  background: var(--hl-grad-primary);
  border-color: transparent;
  color: #fff;
}

.modal.fade[id^="confirmModal"] .modal-footer .btn-success {
  background: var(--hl-danger);
  border-color: transparent;
  color: #fff;
}

#modalAjax .modal-footer .btn-danger,
.modal.fade[id^="confirmModal"] .modal-footer .btn-danger {
  background: var(--hl-danger);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 720px) {
  .hl-ca-security-grid {
    grid-template-columns: 1fr;
  }

  .hl-security-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.82rem;
  }
}

/* Client area — change password */
.hl-password-panel {
  max-width: 640px;
}

.hl-password-grid {
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.using-password-strength .progress {
  height: 8px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.using-password-strength .progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.using-password-strength .progress-bar.bg-danger { background: var(--hl-danger) !important; }
.using-password-strength .progress-bar.bg-warning { background: var(--hl-warning) !important; }
.using-password-strength .progress-bar.bg-success { background: var(--hl-success) !important; }

.using-password-strength .hl-input.is-invalid {
  border-color: var(--hl-danger);
}

.using-password-strength .hl-input.is-valid {
  border-color: var(--hl-success);
}

#inputNewPassword2Msg .form-text {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--hl-danger);
}

@media (max-width: 720px) {
  .hl-password-grid {
    grid-template-columns: 1fr;
  }
}

/* Generate Password modal (WHMCS — no Bootstrap CSS in theme) */
#modalGeneratePassword {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
}

#modalGeneratePassword.show,
#modalGeneratePassword.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#modalGeneratePassword:not(.show):not(.in) {
  display: none !important;
}

#modalGeneratePassword .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  pointer-events: auto;
}

#modalGeneratePassword .modal-content {
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-lg);
  box-shadow: var(--hl-shadow-lg);
  overflow: hidden;
}

#modalGeneratePassword .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

#modalGeneratePassword .modal-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hl-text);
}

#modalGeneratePassword .modal-header .close {
  margin: 0;
  padding: 4px 8px;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--hl-text-muted);
  cursor: pointer;
}

#modalGeneratePassword .modal-header .close:hover {
  color: var(--hl-text);
}

#modalGeneratePassword .modal-body {
  padding: 20px 24px;
}

#modalGeneratePassword .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

body.hl-modal-open {
  overflow: hidden;
}

.hl-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.45);
}

/* WHMCS injects Bootstrap markup into panel bodies — reset & skin */
.hl-ca-panel-body .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 !important;
  width: 100%;
}

.hl-ca-panel-body [class*="col-"] {
  flex: 1 1 100%;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

.hl-ca-panel-body form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
}

.hl-ca-panel-body input[type="text"],
.hl-ca-panel-body input[type="email"],
.hl-ca-panel-body input[type="password"],
.hl-ca-panel-body input[type="search"],
.hl-ca-panel-body input.form-control,
.hl-ca-panel-body select,
.hl-ca-panel-body textarea {
  flex: 1 1 200px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  color: var(--hl-text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
}

.hl-ca-panel-body .btn,
.hl-ca-panel-body button[type="submit"],
.hl-ca-panel-body input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.hl-ca-panel-body .btn-primary,
.hl-ca-panel-body input.btn-primary {
  background: var(--hl-grad-primary);
  color: #fff;
  border-color: transparent;
}

.hl-ca-panel-body .btn-default,
.hl-ca-panel-body .btn-secondary {
  background: var(--hl-surface);
  border-color: var(--hl-border);
  color: var(--hl-text);
}

.hl-ca-panel-body p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.hl-ca-panel-body a:not(.btn) {
  color: var(--hl-primary);
  font-weight: 600;
}

/* Client area home — domain register panel */
.hl-ca-panel-domain .hl-card-title i {
  color: var(--hl-primary);
}

.hl-ca-domain-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.hl-ca-panel-body .hl-ca-domain-search {
  flex-wrap: nowrap;
  align-items: stretch;
}

.hl-ca-domain-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
}

.hl-ca-domain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.hl-ca-domain-input {
  flex: 1 1 200px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  background: var(--hl-bg-elev);
  color: var(--hl-text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--hl-fast), box-shadow var(--hl-fast);
}

.hl-ca-domain-input::placeholder {
  color: var(--hl-text-muted);
}

.hl-ca-domain-input:focus {
  outline: none;
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12);
}

.hl-ca-domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.hl-ca-domain-actions .hl-btn {
  min-height: 44px;
  padding: 0 16px;
}

.hl-ca-domain-captcha {
  width: 100%;
}

.hl-ca-domain-captcha .hl-text-center {
  text-align: left;
  margin: 0;
}

.hl-ca-domain-captcha .recaptcha-container,
.hl-ca-domain-captcha #google-recaptcha-domainchecker {
  display: inline-block;
  margin: 0;
}

.hl-ca-domain-captcha .captcha-container {
  text-align: left;
}

.hl-ca-domain-captcha .hl-flex {
  justify-content: flex-start;
}

.hl-ca-domain-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hl-text-muted);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .hl-ca-domain-row {
    flex-direction: column;
  }

  .hl-ca-domain-actions {
    width: 100%;
  }

  .hl-ca-domain-actions .hl-btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

.hl-ca-panel-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hl-border);
}

.hl-ca-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: var(--hl-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hl-border);
  font-size: 0.92rem;
  transition: background var(--hl-fast), color var(--hl-fast);
}

.hl-ca-panel-item:last-child {
  border-bottom: none;
}

.hl-ca-panel-item:hover {
  background: var(--hl-surface);
  color: var(--hl-text);
}

.hl-ca-panel-item.is-active {
  background: rgba(111, 92, 255, 0.08);
  color: var(--hl-text);
}

.hl-ca-panel-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--hl-border);
  font-size: 0.88rem;
  color: var(--hl-text-muted);
}

/* Active products / services (client area home) */
.hl-ca-panel-body .list-group,
div[menuitemname="Active Products/Services"] .list-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hl-ca-panel-body .list-group-item,
div[menuitemname="Active Products/Services"] .list-group-item {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.hl-ca-panel-body .hl-service-item,
.hl-ca-panel-body .div-service-item,
div[menuitemname="Active Products/Services"] .div-service-item {
  display: block;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hl-border);
  cursor: pointer;
  transition: background var(--hl-fast);
}

.hl-ca-panel-body .hl-service-item:last-child,
.hl-ca-panel-body .div-service-item:last-child,
div[menuitemname="Active Products/Services"] .list-group-item:last-child .div-service-item,
div[menuitemname="Active Products/Services"] .div-service-item:last-child {
  border-bottom: none;
}

.hl-ca-panel-body .hl-service-item:hover,
.hl-ca-panel-body .div-service-item:hover,
div[menuitemname="Active Products/Services"] .div-service-item:hover {
  background: var(--hl-surface);
}

.hl-service-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hl-service-item-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hl-service-item-status,
.div-service-status {
  position: static !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  text-align: right;
}

.hl-service-item-status .label,
.hl-service-item-status .label-placeholder,
.div-service-status .label,
.div-service-status .label-placeholder {
  display: none !important;
}

.hl-service-item-badge {
  white-space: nowrap;
}

.hl-service-item-title,
.div-service-name .font-weight-bold {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hl-text);
}

.hl-service-item-domain,
.div-service-name .text-domain {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--hl-text-muted);
}

.hl-service-item-actions,
.div-service-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hl-service-item-actions .hl-btn,
.div-service-buttons .hl-btn {
  margin: 0;
  box-shadow: none;
}

.hl-service-item-actions .btn-custom-action.is-disabled,
.hl-service-item-actions .btn-custom-action.disabled,
.div-service-buttons .btn-custom-action.is-disabled,
.div-service-buttons .btn-custom-action.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hl-service-item-actions .loading,
.div-service-buttons .loading {
  display: inline-flex;
  align-items: center;
}

.hl-service-item-actions .btn-group,
.hl-service-item-actions .dropdown-menu,
.div-service-buttons .btn-group,
.div-service-buttons .dropdown-menu {
  display: none !important;
}

@media (max-width: 640px) {
  .hl-service-item-head {
    flex-direction: column;
    gap: 10px;
  }

  .hl-service-item-status,
  .div-service-status {
    text-align: left;
  }

  .hl-service-item-actions .hl-btn,
  .div-service-buttons .hl-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .hl-service-item-actions .btn-view-details,
  .div-service-buttons .btn-view-details {
    flex-basis: 100%;
    min-width: 100%;
  }
}

@media (max-width: 1100px) {
  .hl-ca-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hl-ca-stats { grid-template-columns: 1fr; }
}

.hl-page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hl-page-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.hl-page-sub   { margin: 8px 0 0; color: var(--hl-text-muted); font-size: 0.92rem; line-height: 1.55; max-width: 52em; }

/* Legal / policy page prose */
.hl-prose { color: var(--hl-text); line-height: 1.75; font-size: 0.98rem; }
.hl-prose h3 { margin: 1.75rem 0 0.65rem; font-size: 1.12rem; font-weight: 700; }
.hl-prose h4 { margin: 1.25rem 0 0.5rem; font-size: 1rem; font-weight: 700; }
.hl-prose p  { margin: 0 0 1rem; color: var(--hl-text-muted); }
.hl-prose ul, .hl-prose ol { margin: 0 0 1rem 1.25rem; color: var(--hl-text-muted); }
.hl-prose li { margin-bottom: 0.45rem; }
.hl-prose a  { color: var(--hl-accent); text-decoration: underline; text-underline-offset: 2px; }
.hl-prose a:hover { color: var(--hl-accent-strong, #4f7cff); }
.hl-prose strong { color: var(--hl-text); font-weight: 600; }

/* ---------- Knowledgebase ---------- */
.hl-kb-page {
  padding: 0 0 72px;
}

.hl-kb-hero {
  margin-bottom: 56px;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(111, 92, 255, .18), transparent 65%),
    radial-gradient(700px 340px at 10% 80%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(600px 300px at 95% 60%, rgba(161, 84, 255, .1), transparent 55%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hl-border);
}

.hl-kb-hero-inner {
  position: relative;
  z-index: 1;
}

.hl-kb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--hl-border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.hl-kb-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--hl-text);
}

.hl-kb-hero-lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hl-kb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--hl-border-strong);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(111, 92, 255, .12), 0 2px 8px rgba(15, 23, 42, .04);
}

.hl-kb-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.hl-kb-search-icon {
  color: var(--hl-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.hl-kb-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--hl-text);
  outline: none;
  padding: 12px 0;
}

.hl-kb-search-input::placeholder {
  color: var(--hl-text-muted);
}

.hl-kb-search-btn {
  border-radius: 999px !important;
  padding: 12px 28px !important;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(111, 92, 255, .35);
}

.hl-kb-search--inline {
  max-width: none;
}

.hl-kb-page > .hl-container {
  padding-top: 32px;
}

.hl-kb-list-item {
  overflow: hidden;
  transition: transform var(--hl-fast), border-color var(--hl-fast), box-shadow var(--hl-fast);
}

.hl-kb-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 92, 255, .22);
  box-shadow: 0 10px 28px rgba(111, 92, 255, .1);
}

.hl-kb-list-icon {
  width: 42px;
  height: 42px;
  font-size: .95rem;
  margin: 0;
  flex-shrink: 0;
}

.hl-kb-list-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hl-kb-list-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--hl-text);
}

.hl-kb-list-excerpt {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--hl-text-muted);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.hl-kb-list-arrow {
  color: var(--hl-text-muted);
  flex-shrink: 0;
  transition: transform var(--hl-fast), color var(--hl-fast);
}

.hl-kb-list-item:hover .hl-kb-list-arrow {
  color: var(--hl-primary);
  transform: translateX(3px);
}

.hl-kb-article-head {
  margin-bottom: 24px;
}

.hl-kb-article-head .hl-page-title {
  margin: 0 0 12px;
}

.hl-kb-popular-tags {
  font-size: .88rem;
}

.hl-kb-popular-tags a {
  color: var(--hl-primary);
  font-weight: 600;
  text-decoration: none;
}

.hl-kb-popular-tags a:hover {
  text-decoration: underline;
}

.hl-kb-body {
  padding-top: 8px;
}

.hl-kb-section-head {
  margin-bottom: 32px;
}

.hl-kb-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hl-kb-category-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 196px;
  border: 1px solid var(--hl-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
  transition: transform var(--hl-fast), box-shadow var(--hl-fast), border-color var(--hl-fast);
}

.hl-kb-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 92, 255, .25);
  box-shadow: 0 16px 40px rgba(111, 92, 255, .12);
}

.hl-kb-cat-icon {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  margin: 0 0 16px;
  border-radius: 12px;
}

.hl-stat-icon.is-purple {
  background: rgba(168, 85, 247, .15);
  color: #a855f7;
}

.hl-kb-category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--hl-text);
}

.hl-kb-cat-desc {
  flex: 1;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--hl-text-muted);
  margin: 0 0 16px;
}

.hl-kb-cat-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  margin-top: auto;
}

.hl-kb-popular-section {
  margin-bottom: 56px;
}

.hl-kb-popular-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.hl-kb-popular {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hl-kb-article-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--hl-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .03);
  transition: transform var(--hl-fast), border-color var(--hl-fast), box-shadow var(--hl-fast);
}

.hl-kb-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 92, 255, .22);
  box-shadow: 0 10px 28px rgba(111, 92, 255, .1);
}

.hl-kb-article-icon {
  width: 40px;
  height: 40px;
  font-size: .9rem;
  margin: 0;
  border-radius: 10px;
  flex-shrink: 0;
}

.hl-kb-article-body {
  flex: 1;
  min-width: 0;
}

.hl-kb-article-card h4 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px !important;
  color: var(--hl-text);
}

.hl-kb-article-meta {
  font-size: .78rem;
  color: var(--hl-text-muted);
  line-height: 1.45;
}

.hl-kb-article-arrow {
  color: var(--hl-text-muted);
  font-size: .85rem;
  flex-shrink: 0;
  transition: transform var(--hl-fast), color var(--hl-fast);
}

.hl-kb-article-card:hover .hl-kb-article-arrow {
  color: var(--hl-primary);
  transform: translateX(3px);
}

.hl-kb-empty {
  padding: 56px 24px;
  margin-bottom: 48px;
}

.hl-kb-empty-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

.hl-kb-hero--sub {
  padding: 48px 0 40px;
  margin-bottom: 40px;
}

.hl-kb-hero--article {
  padding-bottom: 32px;
}

.hl-kb-back {
  margin: 0;
}

.hl-kb-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  text-decoration: none;
}

.hl-kb-back a:hover {
  color: var(--hl-primary);
}

.hl-kb-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hl-kb-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, .85);
  font-size: .82rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  text-decoration: none;
  transition: border-color var(--hl-fast), color var(--hl-fast), box-shadow var(--hl-fast);
}

.hl-kb-cat-pill:hover,
.hl-kb-cat-pill.is-active {
  border-color: rgba(111, 92, 255, .35);
  color: var(--hl-primary);
  box-shadow: 0 6px 20px rgba(111, 92, 255, .12);
}

.hl-kb-cat-pill.is-active {
  background: rgba(111, 92, 255, .08);
}

.hl-kb-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.hl-kb-articles-list .hl-kb-article-card {
  width: 100%;
}

.hl-kb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .84rem;
}

.hl-kb-breadcrumb a {
  color: var(--hl-text-muted);
  font-weight: 600;
  text-decoration: none;
}

.hl-kb-breadcrumb a:hover {
  color: var(--hl-primary);
}

.hl-kb-breadcrumb-sep {
  color: var(--hl-text-muted);
  opacity: .55;
}

.hl-kb-title--article {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hl-kb-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 12px;
  font-size: .84rem;
  color: var(--hl-text-muted);
}

.hl-kb-article-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hl-kb-article-panel {
  padding: 32px;
}

.hl-kb-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hl-text);
}

.hl-kb-vote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hl-kb-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hl-border);
}

.hl-kb-sidebar-card {
  padding: 22px;
}

.hl-kb-sidebar-stack {
  gap: 16px;
}

.hl-pt-4 {
  padding-top: 24px;
}

.hl-kb-cta {
  margin-top: 0;
}

.hl-kb-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.hl-kb-layout--article {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
}

@media (max-width: 1100px) {
  .hl-kb-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hl-kb-popular { grid-template-columns: 1fr; }
  .hl-kb-layout,
  .hl-kb-layout--article { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hl-kb-page { padding-bottom: 48px; }
  .hl-kb-hero { padding: 48px 0 40px; margin-bottom: 40px; }
  .hl-kb-hero--sub { padding: 36px 0 28px; margin-bottom: 28px; }
  .hl-kb-search {
    flex-direction: column;
    border-radius: var(--hl-radius-lg);
    padding: 16px;
    align-items: stretch;
  }
  .hl-kb-search-btn { width: 100%; }
  .hl-kb-categories { grid-template-columns: 1fr; }
  .hl-kb-popular-tags { font-size: .82rem; line-height: 1.8; }
}

/* ---------- Downloads ---------- */
.hl-dl-page {
  padding: 32px 0 64px;
}

.hl-dl-hero {
  margin-bottom: 40px;
  padding: 48px 24px 40px;
  border-radius: var(--hl-radius-xl);
  overflow: hidden;
  background:
    radial-gradient(800px 380px at 80% -10%, rgba(111, 92, 255, .22), transparent 60%),
    radial-gradient(600px 300px at 0% 50%, rgba(34, 211, 238, .16), transparent 60%),
    linear-gradient(135deg, #f7f9ff, #eef1ff);
  border: 1px solid var(--hl-border-strong);
}

.hl-dl-hero-lead {
  max-width: 560px;
  margin: 0 auto 24px;
}

.hl-dl-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  max-width: 620px;
  margin: 0 auto;
  border-radius: 999px;
}

.hl-dl-categories {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.hl-dl-category-card {
  padding: 24px;
  display: block;
}

.hl-dl-popular {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}

.hl-dl-file-card {
  padding: 18px;
  display: block;
}

@media (max-width: 720px) {
  .hl-dl-page { padding: 24px 0 48px; }
  .hl-dl-hero { padding: 32px 16px 28px; margin-bottom: 28px; }
  .hl-dl-search { flex-direction: column; border-radius: var(--hl-radius); }
}

/* ---------- Announcements ---------- */
.hl-announcements-page {
  padding: 32px 0 64px;
}

.hl-announcements-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hl-announcements-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hl-border);
}

.hl-announcements-hero .hl-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.hl-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hl-announcement-card {
  padding: 24px 28px;
}

.hl-announcement-card.is-featured {
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(111, 92, 255, .12), transparent 65%),
    radial-gradient(420px 180px at 100% 100%, rgba(34, 211, 238, .1), transparent 60%),
    var(--hl-surface);
  border-color: var(--hl-border-strong);
}

.hl-announcement-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.hl-announcement-title a {
  color: var(--hl-text);
  text-decoration: none;
}

.hl-announcement-title a:hover {
  color: var(--hl-accent);
}

.hl-announcement-edit {
  margin-left: 8px;
  vertical-align: middle;
}

.hl-announcement-meta {
  margin: 0 0 14px;
}

.hl-announcement-excerpt {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--hl-text-muted);
  margin-bottom: 16px;
}

.hl-announcement-excerpt p:last-child {
  margin-bottom: 0;
}

.hl-announcement-read {
  align-self: flex-start;
}

.hl-announcement-single-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.hl-announcements-pagination .hl-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hl-pagination-item.is-disabled .hl-pagination-link {
  opacity: .45;
  pointer-events: none;
}

.hl-pagination-item.is-active .hl-pagination-link {
  background: var(--hl-accent);
  color: #fff;
  border-color: var(--hl-accent);
}

.hl-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.hl-pagination-link:hover {
  border-color: var(--hl-accent);
  color: var(--hl-accent);
}

@media (max-width: 720px) {
  .hl-announcements-page { padding: 24px 0 48px; }
  .hl-announcement-card { padding: 20px 18px; }
}

/* ---------- Server status ---------- */
.hl-status-page {
  padding: 32px 0 64px;
}

.hl-status-page .hl-grid[style*="repeat(4"] {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

@media (max-width: 720px) {
  .hl-status-page { padding: 24px 0 48px; }
}

body.hl-body .hl-app ~ .hl-footer,
body.hl-body:has(.hl-app) .hl-footer {
  display: none !important;
}

/* Sidebar (mobile) overlay */
.hl-sidebar-backdrop { display: none; }

/* ---------- 11. Dropdown (notifications, user) ---------- */
.hl-dd { position: relative; }
.hl-dd-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 320px; max-width: 92vw;
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius);
  box-shadow: var(--hl-shadow-lg);
  padding: 8px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--hl-fast), transform var(--hl-fast);
  z-index: 90;
}
.hl-dd.is-open .hl-dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hl-dd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px; border-bottom: 1px solid var(--hl-border);
}
.hl-dd-head h5 { margin: 0; font-size: .92rem; }
.hl-dd-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  color: var(--hl-text); cursor: pointer;
  transition: background var(--hl-fast);
}
.hl-dd-item:hover { background: var(--hl-surface); }
.hl-dd-item .hl-avatar { flex-shrink: 0; }
.hl-dd-item-title { font-size: .88rem; font-weight: 600; margin: 0; }
.hl-dd-item-sub { font-size: .8rem; color: var(--hl-text-muted); margin: 2px 0 0; }
.hl-dd-time { font-size: .72rem; color: var(--hl-text-dim); margin-top: 4px; display: block; }
.hl-dd-foot {
  border-top: 1px solid var(--hl-border);
  padding: 10px; text-align: center;
}
.hl-dd-empty {
  padding: 18px 14px;
  text-align: center;
}

/* Avatar */
.hl-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--hl-grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .82rem;
  border: 2px solid var(--hl-border);
}
.hl-avatar.is-success { background: linear-gradient(135deg, #22c55e, #15803d); }
.hl-avatar.is-warning { background: linear-gradient(135deg, #f59e0b, #b45309); }
.hl-avatar.is-danger  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.hl-avatar.is-info    { background: linear-gradient(135deg, #38bdf8, #0369a1); }

/* ---------- 12. Hero (homepage) ---------- */
.hl-hero {
  position: relative;
  padding: 120px 0 96px;
  background: var(--hl-grad-hero);
  overflow: hidden;
  isolation: isolate;
}
.hl-hero::before,
.hl-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}
.hl-hero::before {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, transparent 68%);
  animation: hl-hero-drift-a 18s ease-in-out infinite;
}
.hl-hero::after {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  top: -6%;
  right: -6%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.38) 0%, transparent 70%);
  animation: hl-hero-drift-b 22s ease-in-out infinite;
}
@keyframes hl-hero-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.06); }
}
@keyframes hl-hero-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 14px) scale(1.05); }
}

/* Full-width banner — single column, mesh background (reference layout) */
.hl-hero--banner {
  padding: clamp(88px, 12vw, 132px) 0 clamp(72px, 8vw, 104px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.hl-hero--banner .hl-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.hl-hero--banner .hl-hero-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.85;
}
.hl-hero--banner .hl-hero-mesh span:nth-child(1) {
  width: 420px;
  height: 420px;
  top: 8%;
  left: 6%;
  background: rgba(147, 197, 253, 0.45);
}
.hl-hero--banner .hl-hero-mesh span:nth-child(2) {
  width: 380px;
  height: 380px;
  top: 4%;
  right: 8%;
  background: rgba(196, 181, 253, 0.42);
}
.hl-hero--banner .hl-hero-mesh span:nth-child(3) {
  width: 320px;
  height: 320px;
  bottom: -8%;
  left: 38%;
  background: rgba(129, 140, 248, 0.18);
}
.hl-hero--banner .hl-hero-grid {
  grid-template-columns: minmax(0, 680px);
  gap: 0;
  align-items: start;
}
.hl-hero--banner .hl-hero-copy h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hl-hero--banner .hl-hero-copy > p {
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  max-width: 560px;
  color: var(--hl-text-muted);
  margin: 0;
}
.hl-hero--banner .hl-hero-eyebrow {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}
.hl-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.hl-hero h1 { margin-bottom: 18px; }
.hl-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--hl-surface-strong);
  border: 1px solid var(--hl-border-strong);
  color: var(--hl-text); font-size: .8rem; font-weight: 600;
  margin-bottom: 18px;
}
.hl-hero-eyebrow .hl-dot { background: var(--hl-success); }
.hl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hl-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px;
  color: var(--hl-text-muted);
}
.hl-hero-meta div { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.hl-hero-meta i { color: var(--hl-success); }

.hl-hero-domain {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 18px;
  border-radius: var(--hl-radius-lg);
}

/* Pars.hosting-style hero + domain search */
.hl-pars-hero-wrap {
  position: relative;
  margin-bottom: 56px;
}
.hl-pars-hero {
  background: linear-gradient(135deg, #0f1f5c 0%, #1a3a8f 50%, #1e4db7 100%);
  padding: 70px 0 110px;
  position: relative;
  overflow: hidden;
}
.hl-pars-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hl-pars-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}
.hl-pars-hero-viewport {
  position: relative;
  min-height: 380px;
  z-index: 1;
  padding-bottom: 56px;
}
.hl-pars-hero-track {
  position: relative;
  width: 100%;
  min-height: 380px;
}
.hl-pars-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .5s var(--hl-ease), transform .5s var(--hl-ease), visibility .5s;
}
.hl-pars-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}
.hl-pars-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hl-pars-hero-text { flex: 1; min-width: 0; }
.hl-pars-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}
.hl-pars-hero-title {
  font-size: clamp(2rem, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.hl-pars-hero-title span { color: #fbbf24; }
.hl-pars-hero-subtitle {
  font-size: 17px;
  color: #93c5fd;
  margin: 0 0 28px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
}
.hl-pars-hero-features {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}
.hl-pars-hero-features li {
  color: #bfdbfe;
  font-size: 15px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hl-pars-check {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.hl-pars-hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hl-pars-hero-visual {
  flex: 0 0 400px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hl-pars-hero-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}
.hl-pars-hero-graphic {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
  animation: hl-pars-float 4s ease-in-out infinite;
}
@keyframes hl-pars-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hl-pars-discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 90px;
  height: 90px;
  background: #f97316;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  animation: hl-pars-pulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes hl-pars-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.hl-pars-discount-pct {
  font-size: 30px;
  line-height: 1;
}
.hl-pars-servers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.hl-pars-server-block {
  width: 160px;
  height: 30px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.hl-pars-server-block::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #86efac;
  border-radius: 50%;
  flex-shrink: 0;
}
.hl-pars-server-block::after {
  content: '';
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.hl-pars-server-block:nth-child(2) {
  width: 140px;
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
}
.hl-pars-server-block:nth-child(3) {
  width: 120px;
  background: linear-gradient(90deg, #1e3a8a, #0f172a);
}
.hl-pars-server-link {
  margin-top: 18px;
  font-size: 28px;
  opacity: 0.6;
  color: #fff;
}
.hl-pars-price-tag {
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 24px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  white-space: nowrap;
}

.hl-pars-hero-nav {
  position: absolute;
  left: max(12px, calc((100vw - var(--hl-container)) / 2 - 48px));
  top: 42%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
.hl-pars-hero-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--hl-fast), transform var(--hl-fast);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.hl-pars-hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.hl-pars-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.hl-pars-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width var(--hl-fast), background var(--hl-fast);
}
.hl-pars-hero-dot.is-active {
  width: 28px;
  background: #f97316;
}

.hl-pars-domain-wrap {
  max-width: var(--hl-container);
  margin: -36px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.hl-pars-domain-tabs {
  display: inline-flex;
  gap: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #1e3a8a;
}
.hl-pars-domain-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hl-pars-domain-tab.is-active {
  background: #fff;
  color: #1e293b;
  border-radius: 10px 10px 0 0;
}
.hl-pars-ai-badge {
  background: #f97316;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}
.hl-pars-domain-box {
  background: #fff;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 28px 32px;
}
.hl-pars-domain-panel[hidden] {
  display: none !important;
}
.hl-pars-ai-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: #64748b;
}
.hl-pars-ai-loading {
  margin-top: 16px;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hl-pars-ai-results {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hl-pars-ai-result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.hl-pars-ai-result-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.hl-pars-ai-result-domain {
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}
.hl-pars-ai-result-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}
.hl-pars-ai-result-status.is-available {
  background: #dcfce7;
  color: #166534;
}
.hl-pars-ai-result-status.is-taken {
  background: #fee2e2;
  color: #991b1b;
}
.hl-pars-ai-result-status.is-suggested {
  background: #e0e7ff;
  color: #3730a3;
}
.hl-pars-ai-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.hl-pars-ai-result-price {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}
.hl-pars-ai-result-form {
  margin: 0;
}
.hl-pars-domain-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hl-pars-domain-input {
  flex: 1;
  height: 54px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  color: #1e293b;
  min-width: 0;
}
.hl-pars-domain-input::placeholder { color: #94a3b8; }
.hl-pars-domain-input:focus { border-color: #2563eb; }
.hl-pars-domain-btn {
  height: 54px;
  padding: 0 30px;
  white-space: nowrap;
  border-radius: 12px;
}
.hl-pars-tld-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}
.hl-pars-tld-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.hl-pars-tld-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hl-pars-tld-name {
  font-weight: 800;
  color: #1e293b;
  font-size: 13px;
}

.hl-hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 520px; margin-left: auto;
}
.hl-orb {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(111,92,255,.5), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(34,211,238,.4), transparent 55%);
  border-radius: 50%;
  filter: blur(40px);
  animation: hl-pulse 6s ease-in-out infinite;
}
@keyframes hl-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.07); opacity: 1; }
}
.hl-hero-card {
  position: absolute; padding: 16px 20px; border-radius: var(--hl-radius);
  background: var(--hl-bg-elev); border: 1px solid var(--hl-border-strong);
  box-shadow: var(--hl-shadow-lg);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 12px;
}
.hl-hero-card.is-1 { top: 12%;  left: 4%; }
.hl-hero-card.is-2 { top: 48%;  right: 0;  }
.hl-hero-card.is-3 { bottom: 8%; left: 18%; }
.hl-hero-card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--hl-grad-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.hl-hero-card-title { font-weight: 700; font-size: .9rem; margin: 0; }
.hl-hero-card-sub { color: var(--hl-text-muted); font-size: .78rem; margin: 0; }

/* ---------- 13. Section heads ---------- */
.hl-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.hl-section-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(79,124,255,.12);
  border: 1px solid rgba(79,124,255,.25);
  color: var(--hl-primary);
  border-radius: 999px;
  font-weight: 600; font-size: .8rem; letter-spacing: .04em;
  margin-bottom: 16px;
}
.hl-section-head h2 { margin: 0 0 12px; }
.hl-section-head p  { margin: 0; font-size: 1.05rem; }

/* ---------- 14. Features grid ---------- */
.hl-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hl-feature {
  padding: 28px;
  border-radius: var(--hl-radius);
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  transition: transform var(--hl-mid), border-color var(--hl-mid), box-shadow var(--hl-mid);
}
.hl-feature:hover { transform: translateY(-4px); border-color: var(--hl-border-strong); box-shadow: var(--hl-shadow); }
.hl-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--hl-grad-soft); color: var(--hl-primary-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 18px;
  border: 1px solid var(--hl-border);
}
.hl-feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.hl-feature p  { margin: 0; font-size: .92rem; }

/* ---------- 15. Pricing ---------- */
.hl-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hl-plan {
  padding: 32px; border-radius: var(--hl-radius-lg);
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  position: relative;
  transition: transform var(--hl-mid), border-color var(--hl-mid), box-shadow var(--hl-mid);
}
.hl-plan:hover { transform: translateY(-4px); box-shadow: var(--hl-shadow); }
.hl-plan.is-featured {
  background: linear-gradient(180deg, rgba(111,92,255,.18), rgba(79,124,255,.06));
  border-color: rgba(111,92,255,.4);
  box-shadow: var(--hl-glow);
}
.hl-plan-tag {
  position: absolute; top: -12px; left: 32px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--hl-grad-primary); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.hl-plan-name { font-weight: 700; font-size: 1rem; color: var(--hl-text-muted); margin: 0; }
.hl-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 12px 0 8px; }
.hl-plan-save {
  flex: 0 0 100%;
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, .15);
  color: var(--hl-success);
  line-height: 1.4;
}
.hl-plan.is-featured .hl-plan-save {
  background: var(--hl-success);
  color: #fff;
}
.hl-billing-toggle-wrap {
  display: flex;
  justify-content: center;
}
.hl-billing-tabs {
  margin-bottom: 0;
}
.hl-plan-price .hl-amt { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--hl-text); }
.hl-plan-price .hl-cycle { color: var(--hl-text-muted); font-size: .9rem; }
.hl-plan-desc { color: var(--hl-text-muted); font-size: .9rem; margin: 0 0 22px; }
.hl-plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.hl-plan-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: var(--hl-text);
}
.hl-plan-list li i { color: var(--hl-success); width: 16px; }
.hl-plan-list li.is-off i { color: var(--hl-text-dim); }

/* ---------- 16. Testimonials ---------- */
.hl-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hl-quote {
  padding: 28px; border-radius: var(--hl-radius);
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  display: flex; flex-direction: column; gap: 18px;
}
.hl-quote p { color: var(--hl-text); font-size: .98rem; line-height: 1.6; margin: 0; }
.hl-quote-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.hl-quote-person .hl-meta-name { font-weight: 700; font-size: .92rem; margin: 0; color: var(--hl-text); }
.hl-quote-person .hl-meta-role { color: var(--hl-text-muted); font-size: .8rem; margin: 0; }
.hl-stars i { color: var(--hl-warning); font-size: .85rem; margin-right: 2px; }

/* ---------- 17. CTA banner ---------- */
.hl-cta {
  padding: 56px;
  border-radius: var(--hl-radius-xl);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(161,84,255,.35), transparent 60%),
    linear-gradient(135deg, #1a1f4d 0%, #2b1a5d 100%);
  border: 1px solid var(--hl-border-strong);
  text-align: center;
}
.hl-cta h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); color: #fff; margin: 0 0 12px; }
.hl-cta p { color: rgba(231,234,246,.85); max-width: 620px; margin: 0 auto 24px; }
.hl-cta .hl-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hl-cta .hl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- 18. Footer ---------- */
.hl-footer {
  margin-top: 96px;
  border-top: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
}
.hl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
  margin-bottom: 48px;
}
.hl-footer h5 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hl-text); margin: 0 0 16px; }
.hl-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hl-footer a { color: var(--hl-text-muted); font-size: .9rem; }
.hl-footer a:hover { color: var(--hl-text); }
.hl-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--hl-border);
  color: var(--hl-text-muted); font-size: .85rem;
}
.hl-social { display: flex; gap: 8px; }
.hl-social a {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hl-surface); color: var(--hl-text-muted);
  border: 1px solid var(--hl-border);
}
.hl-social a:hover { background: var(--hl-surface-strong); color: var(--hl-text); }

/* ---------- 19. Auth pages ---------- */
body.hl-is-auth-page .hl-site-header,
body.hl-is-auth-page .hl-sidebar,
body.hl-is-auth-page .hl-sidebar-backdrop,
body.hl-is-auth-page .hl-cart-progress {
  display: none !important;
}
body.hl-is-auth-page .hl-app {
  display: block;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
body.hl-is-auth-page .hl-content,
body.hl-is-auth-page .hl-content-inner {
  padding: 0;
  max-width: none;
}

.hl-auth {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--hl-grad-hero);
}
.hl-auth-side {
  position: relative;
  padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hl-auth-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 400px at 20% 30%, rgba(111,92,255,.35), transparent 60%),
    radial-gradient(400px 300px at 80% 80%, rgba(34,211,238,.25), transparent 60%);
  z-index: 0;
}
.hl-auth-side > * { position: relative; z-index: 1; }
.hl-auth-side h2 { font-size: 2rem; margin-bottom: 12px; }
.hl-auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.hl-auth-side li { display: flex; align-items: center; gap: 10px; color: var(--hl-text); }
.hl-auth-side li i { color: var(--hl-accent); }

.hl-auth-main {
  padding: 64px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--hl-bg);
}
.hl-auth-form { width: 100%; max-width: 420px; margin: 0 auto; }
.hl-auth-form h1 { font-size: 2rem; margin-bottom: 8px; }
.hl-auth-form > p { margin-bottom: 28px; }

.hl-auth-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--hl-text-dim); font-size: .8rem;
  margin: 22px 0;
}
.hl-auth-or::before, .hl-auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--hl-border);
}

.hl-auth-social { margin-bottom: 8px; }
.hl-auth-social .providerPreLinking { min-height: 0; }
.hl-auth-social .social-signin-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hl-auth-social .social-signin-btns .btn,
.hl-auth-social .social-signin-btns a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: none;
  white-space: nowrap;
}
.hl-auth-social .social-signin-btns .btn:hover,
.hl-auth-social .social-signin-btns a.btn:hover {
  background: var(--hl-surface-strong);
  border-color: var(--hl-border-strong);
  color: var(--hl-text);
}
.hl-auth-social .social-signin-btns .btn-social {
  text-align: center;
  overflow: visible;
  text-overflow: unset;
}
.hl-auth-social .social-signin-btns .btn-social i.fas,
.hl-auth-social .social-signin-btns .btn-social i.far,
.hl-auth-social .social-signin-btns .btn-social i.fab {
  position: static;
  width: auto;
  line-height: 1;
  border-right: 0;
  padding-right: 0;
  font-size: 1.1rem;
}
.hl-auth-form .providerLinkingFeedback {
  display: none;
  margin-bottom: 16px;
}
.hl-auth-form .providerLinkingFeedback.alert {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: rgba(59, 130, 246, .08);
  color: var(--hl-text);
  font-size: .92rem;
}
.hl-auth-form .providerLinkingFeedback.alert-danger {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .25);
  color: var(--hl-danger);
}
.hl-auth-form .providerLinkingFeedback.alert-success {
  background: rgba(34, 197, 94, .08);
  border-color: rgba(34, 197, 94, .25);
  color: var(--hl-success);
}
.hl-auth-form .providerLinkingFeedback.alert-info {
  background: rgba(59, 130, 246, .08);
  border-color: rgba(59, 130, 246, .25);
  color: var(--hl-info);
}

/* ---------- 20. Ticket / chat UI ---------- */
.hl-chat { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.hl-chat-list {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 8px;
  max-height: 70vh; overflow-y: auto;
}
.hl-chat-list-item {
  display: flex; gap: 12px; padding: 12px;
  border-radius: 12px; cursor: pointer;
  transition: background var(--hl-fast);
}
.hl-chat-list-item:hover { background: var(--hl-surface); }
.hl-chat-list-item.is-active { background: var(--hl-surface-strong); border: 1px solid var(--hl-border-strong); }
.hl-chat-list-meta { flex: 1; min-width: 0; }
.hl-chat-list-meta h5 { font-size: .9rem; margin: 0 0 2px; color: var(--hl-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-chat-list-meta p { color: var(--hl-text-muted); font-size: .8rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hl-chat-window {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  display: flex; flex-direction: column;
  min-height: 70vh;
}
.hl-chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hl-border);
}
.hl-chat-header .hl-stack-sm { gap: 4px; }
.hl-chat-header h4 { margin: 0; font-size: 1rem; }
.hl-chat-header p { margin: 0; color: var(--hl-text-muted); font-size: .82rem; }

.hl-chat-body {
  flex: 1; padding: 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
}
.hl-msg { display: flex; gap: 12px; max-width: 78%; }
.hl-msg.is-staff { align-self: flex-start; }
.hl-msg.is-mine  { align-self: flex-end; flex-direction: row-reverse; }
.hl-msg-bubble {
  padding: 14px 16px; border-radius: 16px;
  font-size: .92rem; line-height: 1.5;
  background: var(--hl-surface-strong);
  border: 1px solid var(--hl-border);
  color: var(--hl-text);
}
.hl-msg.is-mine .hl-msg-bubble {
  background: var(--hl-grad-primary);
  color: #fff;
  border-color: transparent;
}
.hl-msg-meta { font-size: .72rem; color: var(--hl-text-dim); margin-top: 6px; }
.hl-msg-attach {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-top: 8px;
  background: rgba(0,0,0,.18); border-radius: 10px;
  color: inherit; font-size: .82rem;
}

.hl-chat-foot {
  border-top: 1px solid var(--hl-border);
  padding: 14px 18px;
  display: flex; align-items: end; gap: 10px;
}
.hl-chat-foot .hl-textarea { min-height: 48px; max-height: 160px; }

/* ---------- 21. Invoice ---------- */
.hl-invoice {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-lg);
  padding: 40px;
}
.hl-invoice-head {
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--hl-border);
}
.hl-invoice-num { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }
.hl-invoice-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .82rem;
}
.hl-invoice-total {
  margin-top: 24px; padding: 20px 24px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hl-invoice-total .label { color: var(--hl-text-muted); font-size: .9rem; margin: 0; }
.hl-invoice-total .value { font-size: 1.8rem; font-weight: 800; margin: 0; }

/* ---------- 22. Progress / bars ---------- */
.hl-progress {
  width: 100%;
  height: 10px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  overflow: hidden;
}
.hl-progress > span {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--hl-grad-primary);
  border-radius: 999px;
  transition: width var(--hl-slow);
}
.hl-progress.is-disk > span { background: var(--hl-grad-primary); }
.hl-progress.is-bandwidth > span { background: linear-gradient(90deg, var(--hl-accent), #0ea5e9); }

.hl-usage-card .hl-progress,
.cpanel-usage-stats .hl-progress {
  margin-top: 4px;
}

/* cPanel / product usage stats */
.hl-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hl-usage-card {
  display: flex;
  flex-direction: column;
}

.hl-usage-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hl-usage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hl-usage-icon.is-disk {
  background: rgba(79, 124, 255, 0.15);
  color: var(--hl-primary);
}

.hl-usage-icon.is-bandwidth {
  background: rgba(34, 211, 238, 0.15);
  color: var(--hl-accent);
}

.hl-usage-card-copy {
  min-width: 0;
}

.hl-usage-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-text-muted);
}

.hl-usage-percent {
  margin: 4px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hl-text);
}

.hl-usage-meta {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--hl-text-muted);
}

.hl-usage-footnote {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--hl-text-muted);
}

@media (max-width: 768px) {
  .hl-usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body.tpl-clientareaproductdetails .hl-content {
    padding: 20px 16px 48px;
  }

  .hl-product-top-grid {
    grid-template-columns: 1fr;
  }

  .hl-billing-grid {
    grid-template-columns: 1fr;
  }

  .hl-email-create-form {
    grid-template-columns: 1fr;
  }

  .hl-form-row-action,
  .hl-email-create-action .hl-btn,
  .hl-product-domain-actions .hl-btn,
  .hl-product-actions-card .hl-btn {
    width: 100%;
    justify-content: center;
  }

  .hl-cpanel-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hl-cpanel-overview .col-md-6,
  .hl-cpanel-overview .col-md-5,
  .hl-cpanel-overview .col-md-7,
  .hl-cpanel-overview .col-md-3,
  .hl-cpanel-overview .col-sm-3,
  .hl-cpanel-overview .col-sm-4,
  .hl-cpanel-overview .col-xs-6,
  .hl-cpanel-overview .col-6,
  .hl-cpanel-overview .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hl-cpanel-shortcuts {
    grid-template-columns: 1fr;
  }

  .hl-product-head-actions {
    width: 100%;
  }

  .hl-product-head-actions .hl-btn {
    flex: 1;
  }
}

/* ---------- 23. Status indicators ---------- */
.hl-status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  margin-bottom: 10px;
}
.hl-status-row + .hl-status-row { margin-top: 0; }
.hl-status-row .left { display: flex; align-items: center; gap: 12px; }
.hl-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.hl-status-pill.ok    { background: rgba(34,197,94,.12);  color: var(--hl-success); }
.hl-status-pill.warn  { background: rgba(245,158,11,.12); color: var(--hl-warning); }
.hl-status-pill.down  { background: rgba(239,68,68,.12);  color: var(--hl-danger); }

/* ---------- 24. Tabs ---------- */
.hl-tabs {
  display: inline-flex; padding: 4px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  gap: 4px;
  margin-bottom: 24px;
}
.hl-tab {
  padding: 8px 16px; border-radius: 999px;
  color: var(--hl-text-muted); font-weight: 600; font-size: .88rem;
  cursor: pointer; border: none; background: transparent;
  transition: background var(--hl-fast), color var(--hl-fast);
}
.hl-tab.is-active { background: var(--hl-grad-primary); color: #fff; }
.hl-tab:hover:not(.is-active) { color: var(--hl-text); background: var(--hl-surface-strong); }
.hl-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px;
  font-size: .68rem; font-weight: 700;
  border-radius: 999px;
  background: var(--hl-surface-strong);
  color: var(--hl-text-muted);
  margin-left: 6px;
  transition: background var(--hl-fast), color var(--hl-fast);
}
.hl-tab.is-active .hl-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------- 25. Alerts ---------- */
.hl-alert {
  display: flex; gap: 12px; align-items: start;
  padding: 14px 18px;
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  margin-bottom: 18px;
}
.hl-alert i { color: var(--hl-info); font-size: 1.1rem; margin-top: 2px; }
.hl-alert.is-success { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.25);  }
.hl-alert.is-success i { color: var(--hl-success); }
.hl-alert.is-warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
.hl-alert.is-warning i { color: var(--hl-warning); }
.hl-alert.is-danger  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.25);  }
.hl-alert.is-danger i  { color: var(--hl-danger); }

/* ---------- 26. Animations ---------- */
.hl-fade-up {
  opacity: 0; transform: translateY(16px);
  animation: hl-fade-up .8s var(--hl-ease) forwards;
}
.hl-fade-up.d-1 { animation-delay: .08s; }
.hl-fade-up.d-2 { animation-delay: .16s; }
.hl-fade-up.d-3 { animation-delay: .24s; }
.hl-fade-up.d-4 { animation-delay: .32s; }
@keyframes hl-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hl-float { animation: hl-float 6s ease-in-out infinite; }
@keyframes hl-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

.hl-spin { animation: hl-spin 1s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }

/* Counter animation hook (JS animates style.opacity) */
.hl-count-up { display: inline-block; }

/* ---------- 27. Utilities ---------- */
.hl-divider { height: 1px; background: var(--hl-border); margin: 24px 0; border: 0; }
.hl-divider-y { width: 1px; background: var(--hl-border); align-self: stretch; }
.hl-hidden { display: none !important; }
body:not(.hl-is-cart) .w-hidden { display: none !important; }
body.hl-is-cart .w-hidden { display: none; }

/* WHMCS tab panes (product details, domain details) */
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* Module client area buttons (cPanel login, etc.) */
.module-client-area .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--hl-radius-md);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  border: 1px solid var(--hl-border);
  background: rgba(255,255,255,.06);
  color: var(--hl-text);
  margin: 4px 8px 4px 0;
}
.module-client-area .btn-primary,
.module-client-area input[type="submit"] {
  background: var(--hl-primary);
  border-color: transparent;
  color: #fff;
}
.module-client-area form { margin-top: 0; }

/* cPanel product overview shortcuts */
.hl-cpanel-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.hl-cpanel-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 16px 12px;
  border-radius: var(--hl-radius-md);
  border: 1px solid var(--hl-border);
  background: rgba(255,255,255,.04);
  color: var(--hl-text);
  text-decoration: none;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.hl-cpanel-shortcut:hover {
  border-color: rgba(79, 124, 255, 0.35);
  background: rgba(79, 124, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.12);
  color: var(--hl-text);
}
.hl-cpanel-shortcut i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(79, 124, 255, 0.12);
  font-size: 1.1rem;
  color: var(--hl-primary);
}
.hl-cpanel-shortcut span {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}
.hl-cpanel-overview .hl-card + .hl-card { margin-top: 0; }

/* ---------- Product details / cPanel overview (modern layout) ---------- */
.hl-product-details .hl-stack,
.hl-cpanel-overview.hl-stack {
  gap: 20px;
}

.hl-product-overview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hl-product-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.hl-product-domain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
}

.hl-product-domain-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hl-product-domain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(79, 124, 255, 0.14);
  color: var(--hl-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hl-product-domain-group {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hl-text-muted);
}

.hl-product-domain-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hl-text);
}

.hl-product-domain-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hl-primary);
  text-decoration: none;
  word-break: break-word;
}

.hl-product-domain-link:hover {
  text-decoration: underline;
}

.hl-product-domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hl-product-usage-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hl-product-usage-wrap .hl-usage-grid {
  flex: 1;
}

.hl-product-actions-card .module-client-area form,
.hl-product-actions-card .hl-product-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hl-product-actions-card .module-client-area .hl-btn,
.hl-product-actions-card .module-client-area .btn {
  margin: 0;
}

.hl-card-title i {
  margin-right: 8px;
  color: var(--hl-primary);
  opacity: 0.9;
}

.hl-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hl-billing-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.hl-billing-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hl-text-muted);
}

.hl-billing-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hl-text);
  word-break: break-word;
}

.hl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.hl-form-row-field {
  flex: 1 1 220px;
  min-width: 0;
}

.hl-form-row-action {
  flex: 0 0 auto;
  align-self: stretch;
}

.hl-email-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.hl-email-create-action {
  display: flex;
  align-items: stretch;
}

.hl-email-create-action .hl-btn {
  width: 100%;
  white-space: nowrap;
}

.hl-input-group {
  display: flex;
  width: 100%;
  min-width: 0;
}

.hl-input-group .hl-input {
  flex: 1;
  min-width: 0;
  border-radius: var(--hl-radius-md) 0 0 var(--hl-radius-md);
}

.hl-input-group-addon {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--hl-border);
  border-left: none;
  border-radius: 0 var(--hl-radius-md) var(--hl-radius-md) 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--hl-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.hl-cpanel-overview:not(:has(.hl-product-overview)) .cpanel-feature-row img {
  display: none;
}

.hl-email-create-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.email-create-feedback.w-hidden { display: none !important; }
.hl-text-sm { font-size: .85rem; }
.hl-text-xs { font-size: .75rem; }
.hl-fw-700 { font-weight: 700; }

/* WHMCS default cPanel overview.tpl fallback (Bootstrap markup without Bootstrap CSS) */
.hl-cpanel-overview .panel.card,
.hl-cpanel-overview .panel.panel-default,
#tabOverview .hl-cpanel-overview .panel {
  background: var(--hl-surface-raised, var(--hl-surface));
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: none;
}

.hl-cpanel-overview .panel-heading,
.hl-cpanel-overview .card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--hl-border);
  background: transparent;
}

.hl-cpanel-overview .panel-title,
.hl-cpanel-overview .card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hl-text);
}

.hl-cpanel-overview .panel-body,
.hl-cpanel-overview .card-body {
  padding: 20px 22px;
}

.hl-cpanel-overview .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.hl-cpanel-overview .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.hl-cpanel-overview .col-md-6 { flex: 0 0 50%; max-width: 50%; }
.hl-cpanel-overview .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.hl-cpanel-overview .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.hl-cpanel-overview .col-md-3,
.hl-cpanel-overview .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
.hl-cpanel-overview .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.hl-cpanel-overview .col-xs-6,
.hl-cpanel-overview .col-6 { flex: 0 0 50%; max-width: 50%; }
.hl-cpanel-overview .col-md-12,
.hl-cpanel-overview .col-12 { flex: 0 0 100%; max-width: 100%; }

.hl-cpanel-overview .text-right { text-align: right; }
.hl-cpanel-overview .text-center { text-align: center; }
.hl-cpanel-overview .text-left { text-align: left; }

.hl-cpanel-overview .cpanel-feature-row {
  margin: 0;
}

.hl-cpanel-overview .cpanel-feature-row a,
.hl-cpanel-overview .cpanel-feature-row a.d-block {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  padding: 16px 10px;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hl-text);
  text-decoration: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hl-cpanel-overview .cpanel-feature-row a:hover {
  border-color: var(--hl-border-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  color: var(--hl-text);
}

.hl-cpanel-overview .cpanel-feature-row img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  object-fit: contain;
}

.hl-cpanel-overview .cpanel-usage-stats .row {
  align-items: stretch;
  gap: 16px;
}

.hl-cpanel-overview .cpanel-usage-stats.is-hl-usage-ready .usage-dial,
.hl-cpanel-overview .cpanel-usage-stats.is-hl-usage-ready canvas,
.cpanel-usage-stats.is-hl-usage-ready .usage-dial,
.cpanel-usage-stats.is-hl-usage-ready canvas {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

.hl-cpanel-overview .cpanel-usage-stats #diskUsage,
.hl-cpanel-overview .cpanel-usage-stats #bandwidthUsage,
.cpanel-usage-stats #diskUsage,
.cpanel-usage-stats #bandwidthUsage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-lg);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.hl-cpanel-overview .cpanel-usage-stats #diskUsage::before,
.hl-cpanel-overview .cpanel-usage-stats #bandwidthUsage::before,
.cpanel-usage-stats #diskUsage::before,
.cpanel-usage-stats #bandwidthUsage::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}

.hl-cpanel-overview .cpanel-usage-stats #diskUsage::before,
.cpanel-usage-stats #diskUsage::before {
  content: "\f0a0";
  background: rgba(79, 124, 255, 0.15);
  color: var(--hl-primary);
}

.hl-cpanel-overview .cpanel-usage-stats #bandwidthUsage::before,
.cpanel-usage-stats #bandwidthUsage::before {
  content: "\f201";
  background: rgba(34, 211, 238, 0.15);
  color: var(--hl-accent);
}

.hl-cpanel-overview .cpanel-usage-stats strong,
.cpanel-usage-stats strong {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-text-muted);
}

.hl-cpanel-overview .usage-dial,
.cpanel-usage-stats .usage-dial {
  display: none !important;
}

.hl-cpanel-overview .cpanel-usage-stats #diskUsage,
.hl-cpanel-overview .cpanel-usage-stats #bandwidthUsage,
.cpanel-usage-stats #diskUsage,
.cpanel-usage-stats #bandwidthUsage {
  color: var(--hl-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.hl-cpanel-overview .hl-usage-fallback-percent,
.cpanel-usage-stats .hl-usage-fallback-percent {
  display: block;
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hl-text);
}

.hl-cpanel-overview .form-control,
.hl-cpanel-overview .custom-select,
.hl-cpanel-overview select.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-md);
  background: var(--hl-surface);
  color: var(--hl-text);
  font: inherit;
  font-size: 0.92rem;
}

.hl-cpanel-overview .input-group {
  display: flex;
  width: 100%;
}

.hl-cpanel-overview .input-group .form-control {
  border-radius: var(--hl-radius-md) 0 0 var(--hl-radius-md);
  flex: 1;
  min-width: 0;
}

.hl-cpanel-overview .input-group-addon,
.hl-cpanel-overview .input-group-append,
.hl-cpanel-overview .input-group-text {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--hl-border);
  border-left: none;
  border-radius: 0 var(--hl-radius-md) var(--hl-radius-md) 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--hl-text-muted);
}

.hl-cpanel-overview .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--hl-radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hl-text);
  cursor: pointer;
}

.hl-cpanel-overview .btn-primary {
  background: var(--hl-primary);
  border-color: transparent;
  color: #fff;
}

.hl-cpanel-overview .btn-success {
  background: var(--hl-success);
  border-color: transparent;
  color: #fff;
}

.hl-cpanel-overview .btn-default,
.hl-cpanel-overview .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hl-border);
  color: var(--hl-text);
}

.hl-cpanel-overview .btn-block {
  display: flex;
  width: 100%;
}

.hl-cpanel-overview .btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.hl-cpanel-overview .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--hl-radius-md);
  border: 1px solid var(--hl-border);
  margin-bottom: 16px;
}

.hl-cpanel-overview .alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--hl-text);
}

.hl-cpanel-overview .alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.hl-cpanel-overview .alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.hl-cpanel-overview .limit-near,
.hl-cpanel-overview .text-danger {
  color: var(--hl-danger);
}

.hl-cpanel-overview .text-info {
  color: var(--hl-info);
}

.hl-cpanel-overview .mb-3 { margin-bottom: 16px !important; }
.hl-cpanel-overview .mb-1 { margin-bottom: 8px !important; }
.hl-cpanel-overview .mt-1 { margin-top: 8px !important; }

@media (max-width: 768px) {
  .hl-cpanel-overview .col-md-6,
  .hl-cpanel-overview .col-md-5,
  .hl-cpanel-overview .col-md-7,
  .hl-cpanel-overview .col-md-3,
  .hl-cpanel-overview .col-sm-3,
  .hl-cpanel-overview .col-sm-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 520px) {
  .hl-cpanel-overview .col-md-6,
  .hl-cpanel-overview .col-md-5,
  .hl-cpanel-overview .col-md-7,
  .hl-cpanel-overview .col-md-3,
  .hl-cpanel-overview .col-sm-3,
  .hl-cpanel-overview .col-sm-4,
  .hl-cpanel-overview .col-xs-6,
  .hl-cpanel-overview .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ---------- 28. Cart / order form (when theme wraps cart.php) ---------- */
.hl-cart-main {
  padding: 0;
  max-width: 100%;
  min-height: calc(100vh - var(--hl-nav-h) - 100px);
}

.hl-cart-progress--theme {
  border-bottom: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.hl-cart-progress--theme .hl-cart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.hl-cart-progress--theme .hl-cart-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--hl-text-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.hl-cart-progress--theme .hl-cart-step.is-active { color: var(--hl-text); }

.hl-cart-progress--theme .hl-cart-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.hl-cart-progress--theme .hl-cart-step.is-active .hl-cart-step-num {
  background: var(--hl-grad-primary);
  color: #fff;
  border-color: transparent;
}

.hl-cart-progress--theme .hl-cart-step.is-done .hl-cart-step-num {
  background: rgba(34, 197, 94, 0.12);
  color: var(--hl-success);
}

.hl-cart-progress--theme .hl-cart-step-line {
  width: 36px;
  height: 2px;
  background: var(--hl-border);
}

.hl-cart-footer {
  border-top: 1px solid var(--hl-border);
  padding: 20px 0 28px;
  background: var(--hl-surface);
}

/* ---------- 29. Network map (status page) ---------- */
.hl-network-map {
  position: relative;
  padding: 8px 0 0;
  overflow: hidden;
  border-radius: var(--hl-radius-sm);
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.04), rgba(34, 211, 238, 0.03));
}
.hl-network-svg {
  width: 100%;
  height: auto;
  max-height: 460px;
  display: block;
}
.hl-world-ocean { fill: url(#hl-net-ocean); }
.hl-world-graticule line {
  stroke: rgba(79, 124, 255, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hl-world-land path {
  fill: rgba(79, 124, 255, 0.14);
  stroke: rgba(79, 124, 255, 0.28);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill var(--hl-fast);
}
.hl-network-map:hover .hl-world-land path {
  fill: rgba(79, 124, 255, 0.18);
}
.hl-network-arc {
  stroke-dasharray: 8 12;
  animation: hl-net-dash 12s linear infinite;
}
@keyframes hl-net-dash {
  to { stroke-dashoffset: -120; }
}
.hl-network-node { cursor: pointer; outline: none; }
.hl-network-node .hl-network-core {
  fill: var(--hl-primary);
  stroke: #fff;
  stroke-width: 2;
}
.hl-network-node.is-warning .hl-network-core { fill: var(--hl-warning); }
.hl-network-node.is-down .hl-network-core,
.hl-network-node.is-danger .hl-network-core { fill: var(--hl-danger); }
.hl-network-node .hl-network-pulse {
  fill: rgba(79, 124, 255, .25);
  animation: hl-net-pulse 2.4s ease-out infinite;
}
.hl-network-node.is-warning .hl-network-pulse { fill: rgba(245, 158, 11, .25); }
.hl-network-node.is-active .hl-network-pulse,
.hl-network-node:focus .hl-network-pulse {
  fill: rgba(34, 211, 238, .35);
  animation-duration: 1.2s;
}
@keyframes hl-net-pulse {
  0% { r: 8; opacity: .9; }
  100% { r: 22; opacity: 0; }
}
.hl-network-pop {
  fill: var(--hl-accent);
  opacity: .7;
}
.hl-network-tooltip {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 14px 18px;
  background: var(--hl-bg-elev);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-sm);
  box-shadow: var(--hl-shadow);
  z-index: 5;
  pointer-events: none;
  transition: opacity var(--hl-fast), transform var(--hl-fast);
}
.hl-network-tooltip:not(.hl-hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
.hl-network-tooltip-title {
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 4px;
  color: var(--hl-text);
}
.hl-network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  margin-top: 16px;
  font-size: .8rem;
  color: var(--hl-text-muted);
}
.hl-network-legend > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 30. Responsive ---------- */
@media (max-width: 1100px) {
  .hl-hero-grid { grid-template-columns: 1fr; }
  .hl-hero--banner .hl-hero-grid { max-width: 100%; }
  .hl-hero--banner .hl-hero-copy h1 { max-width: none; }
  .hl-pars-hero-inner { flex-direction: column; }
  .hl-pars-hero-visual { flex: none; max-width: 100%; width: 100%; order: -1; }
  .hl-pars-hero-graphic { width: min(100%, 300px); height: min(100vw, 300px); margin: 0 auto; }
  /* Stack slides in document flow so tall mobile content is not clipped */
  .hl-pars-hero-viewport {
    min-height: 0;
    padding-bottom: 48px;
    overflow: visible;
  }
  .hl-pars-hero-track {
    min-height: 0;
  }
  .hl-pars-hero-slide {
    position: relative;
    inset: auto;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s;
  }
  .hl-pars-hero-slide.is-active {
    height: auto;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
  }
  .hl-pars-hero-nav { left: 8px; top: 38%; }
  .hl-pars-hero-dots { bottom: 16px; }
  .hl-pars-domain-wrap { margin-top: 16px; padding: 0 16px; }
  .hl-pars-domain-row { flex-direction: column; align-items: stretch; }
  .hl-pars-domain-btn { width: 100%; justify-content: center; }
  .hl-hero-slide-grid { grid-template-columns: 1fr; }
  .hl-hero-visual { margin: 32px auto 0; max-width: 420px; }
  .hl-features, .hl-pricing, .hl-quotes { grid-template-columns: repeat(2, 1fr); }
  .hl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hl-footer-grid > :nth-child(n+5) { grid-column: span 1; }
}

@media (max-width: 960px) {
  .hl-auth { grid-template-columns: 1fr; }
  .hl-auth-side { display: none; }
  .hl-app { grid-template-columns: 1fr; }
  /* backdrop-filter traps position:fixed children inside the 72px nav bar */
  .hl-navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .hl-sidebar {
    position: fixed; top: var(--hl-nav-h); left: 0;
    width: 280px; height: calc(100vh - var(--hl-nav-h));
    transform: translateX(-100%);
    transition: transform var(--hl-mid);
    z-index: 70;
    border-right: 1px solid var(--hl-border-strong);
    background: var(--hl-bg-elev);
  }
  .hl-sidebar.is-open { transform: translateX(0); }
  .hl-sidebar-backdrop {
    display: block; position: fixed; inset: var(--hl-nav-h) 0 0 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    z-index: 65; opacity: 0; pointer-events: none;
    transition: opacity var(--hl-mid);
  }
  .hl-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .hl-burger { display: inline-flex !important; }
  .hl-hide-mobile { display: none !important; }
  /* Reset desktop mega-menu positioning on mobile (prevents left-edge clipping) */
  .hl-nav-mega,
  .hl-nav-mega--compact,
  .hl-nav-dd.is-open > .hl-nav-mega,
  .hl-nav-dd.is-hover > .hl-nav-mega {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hl-nav-links { display: none; }
  body.hl-mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }
  body.hl-mobile-nav-open .hl-mobile-nav-drawer {
    display: block;
    position: fixed;
    top: var(--hl-nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: var(--hl-bg-elev);
    border-top: 1px solid var(--hl-border);
    box-shadow: var(--hl-shadow-lg);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  body.hl-mobile-nav-open .hl-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hl-border);
    background: var(--hl-bg-elev);
  }
  .hl-mobile-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hl-text);
    letter-spacing: -.01em;
  }
  .hl-mobile-nav-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  body.hl-mobile-nav-open .hl-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: static;
    flex: none;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    z-index: auto;
    padding: 12px 16px 32px;
    gap: 6px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
  }
  body.hl-mobile-nav-open .hl-nav-links > li,
  body.hl-mobile-nav-open .hl-nav-item { width: 100%; max-width: 100%; flex-shrink: 0; }
  body.hl-mobile-nav-open .hl-nav-dd {
    width: 100%;
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    background: var(--hl-surface);
    overflow: visible;
  }
  body.hl-mobile-nav-open .hl-nav-item:not(.hl-nav-dd) {
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    background: var(--hl-surface);
    overflow: hidden;
  }
  body.hl-mobile-nav-open .hl-nav-links a,
  body.hl-mobile-nav-open .hl-nav-trigger {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: var(--hl-text);
    font-size: .95rem;
    box-sizing: border-box;
  }
  body.hl-mobile-nav-open .hl-nav-trigger {
    justify-content: space-between;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  body.hl-mobile-nav-open .hl-nav-mega {
    display: none;
    border-top: 1px solid var(--hl-border);
    background: var(--hl-bg-elev);
  }
  body.hl-mobile-nav-open .hl-nav-dd.is-open > .hl-nav-mega {
    display: block;
  }
  body.hl-mobile-nav-open .hl-nav-dd.is-open > .hl-nav-trigger .hl-nav-chevron {
    transform: rotate(180deg);
  }
  body.hl-mobile-nav-open .hl-nav-mega-inner {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 8px 12px 12px;
    background: transparent;
    overflow: visible;
  }
  body.hl-mobile-nav-open .hl-nav-mega-head {
    display: none;
  }
  body.hl-mobile-nav-open .hl-nav-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 2px;
  }
  body.hl-mobile-nav-open .hl-nav-mega-item {
    width: 100%;
    transform: none;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .hl-lang-label,
  .hl-currency-label { display: none; }
  .hl-nav-actions { gap: 6px; }
  .hl-content { padding: 24px 18px 64px; }
  .hl-chat { grid-template-columns: 1fr; }
  .hl-chat-list { max-height: 320px; }
}

@media (max-width: 720px) {
  .hl-section { padding: 64px 0; }
  .hl-hero { padding: 88px 0 56px; }
  .hl-pars-hero-wrap { margin-bottom: 40px; }
  .hl-pars-hero { padding: 36px 0 28px; }
  .hl-pars-hero-visual { order: 1; margin-top: 20px; }
  .hl-pars-hero-text { order: 0; }
  .hl-pars-hero-graphic {
    width: min(100%, 220px);
    height: 220px;
    border-radius: 28px;
  }
  .hl-pars-hero-image { max-width: 220px; margin: 0 auto; }
  .hl-pars-hero-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
    letter-spacing: -.5px;
  }
  .hl-pars-hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
    max-width: none;
  }
  .hl-pars-hero-features { margin-bottom: 22px; }
  .hl-pars-hero-features li { font-size: 14px; }
  .hl-pars-hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hl-pars-hero-btns .hl-btn { width: 100%; justify-content: center; }
  .hl-pars-hero-nav { display: none; }
  .hl-pars-hero-viewport { padding-bottom: 36px; }
  .hl-pars-hero-dots {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    margin-top: 16px;
  }
  .hl-pars-domain-wrap { margin-top: 12px; padding: 0 12px; }
  .hl-pars-domain-tabs { display: flex; width: 100%; }
  .hl-pars-domain-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 10px;
    font-size: 13px;
    text-align: center;
  }
  .hl-pars-domain-box {
    padding: 18px 14px;
    border-radius: 0 12px 12px 12px;
  }
  .hl-pars-domain-input { height: 48px; font-size: 16px; }
  .hl-pars-domain-btn { height: 48px; padding: 0 20px; }
  .hl-pars-tld-prices { gap: 10px 16px; margin-top: 16px; }
  .hl-features, .hl-pricing, .hl-quotes { grid-template-columns: 1fr; }
  .hl-footer-grid { grid-template-columns: 1fr 1fr; }
  .hl-footer-grid > :first-child { grid-column: 1 / -1; }
  .hl-cta { padding: 36px 24px; }
  .hl-invoice { padding: 24px; }
  .hl-page-title { font-size: 1.4rem; }
  .hl-stat-value { font-size: 1.6rem; }
  .hl-network-tooltip { left: 16px; right: 16px; transform: none; width: auto; }
  .hl-network-tooltip:not(.hl-hidden) { transform: translateY(-4px); }
  .hl-cart-progress--theme .hl-cart-step-line { width: 20px; }
  .hl-error-page { min-height: 50vh; padding: 48px 0 64px; }
  .hl-error-page-actions { flex-direction: column; align-items: stretch; }
  .hl-error-page-actions .hl-btn { width: 100%; justify-content: center; }
  .hl-error-page-title { font-size: clamp(2rem, 8vw, 2.75rem); }
}

/* Error / 404 pages */
.hl-error-page {
  min-height: min(68vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0 80px;
}

.hl-error-page-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hl-error-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(111, 92, 255, .12);
  color: var(--hl-brand-600, #6f5cff);
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.hl-error-page-icon--warning {
  background: rgba(245, 158, 11, .14);
  color: #d97706;
}

.hl-error-page-title {
  margin: 0 0 10px;
  font-family: var(--hl-font-display, inherit);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--hl-text, #0f172a);
}

.hl-error-page-lead {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hl-text, #0f172a);
}

.hl-error-page-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(111, 92, 255, .08);
  border: 1px solid rgba(111, 92, 255, .18);
  color: var(--hl-text-muted);
  font-size: .9rem;
  text-align: left;
  max-width: 100%;
}

.hl-error-page-note i {
  color: var(--hl-brand-600, #6f5cff);
  margin-top: 2px;
  flex-shrink: 0;
}

.hl-error-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Screen-reader only (visible on xs icon buttons) */
.hl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 31. Mobile polish (≤960px / ≤720px / ≤480px) ---------- */
@media (max-width: 960px) {
  .hl-container { padding: 0 16px; }
  .hl-navbar-inner { padding: 0 12px; gap: 10px; }
  .hl-brand { font-size: 1rem; min-width: 0; }
  .hl-brand-logo--full { max-width: min(160px, 38vw); }
  .hl-icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .hl-lang-btn,
  .hl-currency-btn { min-width: 36px; padding: 0 8px; }
  .hl-nav-actions { gap: 4px; flex-shrink: 1; min-width: 0; }
  .hl-nav-actions .hl-btn-sm { padding: 8px 10px; font-size: .82rem; }
  .hl-promo-bar-inner { padding: 10px 12px; font-size: .8rem; gap: 8px; }
  .hl-promo-bar-cta { white-space: normal; }
  .hl-dd-menu {
    position: fixed;
    top: calc(var(--hl-nav-h) + 8px);
    right: 12px;
    left: 12px;
    min-width: 0;
    max-width: none;
  }
  .hl-page-head { flex-direction: column; align-items: stretch; }
  .hl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hl-table { min-width: 520px; }
  main:not(.hl-cart-main):not(.hl-content) {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .hl-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hl-footer-grid > * { grid-column: auto !important; }
  .hl-cta .hl-btn { width: 100%; justify-content: center; }
  .hl-invoice-actions,
  .hl-page-head .hl-flex { flex-direction: column; align-items: stretch; }
  .hl-invoice-actions .hl-btn,
  .hl-page-head .hl-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hl-hide-xs { display: none !important; }
  .hl-show-xs-only { display: inline-flex !important; }
  .hl-container { padding: 0 12px; }
  .hl-navbar-inner { padding: 0 10px; gap: 6px; }
  .hl-section { padding: 48px 0; }
  .hl-section-sm { padding: 40px 0; }
  .hl-nav-actions .hl-btn-primary.hl-btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .hl-form-input,
  .hl-form-select,
  .hl-form-textarea,
  input.form-input,
  select.form-input,
  textarea.form-input {
    font-size: 16px;
  }
  .hl-card,
  .hl-panel { border-radius: 12px; }
  .hl-kb-grid { grid-template-columns: 1fr !important; }
  .hl-chat-compose { flex-direction: column; }
  .hl-chat-compose .hl-btn { width: 100%; }
}

/* ---------- 32. Global page responsiveness ---------- */
.hl-public-main {
  min-width: 0;
  overflow-x: clip;
}

@media (max-width: 960px) {
  /* Override inline grid-template-columns on any WHMCS page template */
  .hl-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .hl-grid-cols-4,
  .hl-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hl-grid-aside,
  .hl-grid-aside-sm,
  .hl-grid-form-3,
  .hl-grid[style*="1.4fr"],
  .hl-grid[style*="1.2fr"] {
    grid-template-columns: 1fr !important;
  }

  .hl-grid-auto-lg,
  .hl-grid-auto-md,
  .hl-grid-auto-sm,
  .hl-grid[style*="auto-fill"],
  .hl-grid[style*="auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  section.hl-hero {
    padding-top: 56px !important;
    padding-bottom: 40px !important;
  }

  .hl-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hl-card-header .hl-flex {
    flex-wrap: wrap;
    width: 100%;
  }

  .hl-card:has(> .hl-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hl-table {
    min-width: 560px;
  }

  .hl-status-page .hl-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hl-network-map {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hl-auth-form[style*="max-width"] {
    max-width: 100% !important;
  }

  .hl-public-main > :not(.hl-section):not(.hl-hero):not(.hl-pars-hero-wrap):not(.hl-status-page):not(.hl-container) {
    width: 100%;
    max-width: var(--hl-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .hl-grid-cols-2,
  .hl-grid-cols-3,
  .hl-grid-cols-4,
  .hl-grid-form-2,
  .hl-grid-aside,
  .hl-grid-aside-sm,
  .hl-grid-form-3,
  .hl-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  section.hl-hero {
    padding-top: 48px !important;
    padding-bottom: 32px !important;
    border-radius: 0 !important;
  }

  .hl-card-lg {
    padding: 20px 16px;
  }

  .hl-card-header .hl-btn,
  .hl-page-head .hl-flex .hl-btn {
    width: 100%;
    justify-content: center;
  }

  .hl-btn-block-mobile,
  .hl-card form > .hl-btn-primary.hl-btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hl-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hl-status-row .hl-btn {
    width: 100%;
    justify-content: center;
  }

  .hl-status-page .hl-card.hl-card-lg > .hl-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hl-status-page .hl-card.hl-card-lg > .hl-flex > div[style*="min-width"] {
    min-width: 0 !important;
    width: 100%;
  }

  .hl-invoice-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hl-check {
    align-items: flex-start;
  }

  .hl-public-main > :not(.hl-section):not(.hl-hero):not(.hl-pars-hero-wrap):not(.hl-status-page):not(.hl-container) {
    padding-left: 12px;
    padding-right: 12px;
  }
}
