/* ==========================================================================
   AwareCRM — Portal design system
   Authentication (admin + customer), customer area chrome and Knowledge Base.
   Loaded LAST (after Theme Style inline CSS) so it owns the final palette.
   ========================================================================== */

:root {
  --p-primary: #2563eb;
  --p-primary-700: #1d4ed8;
  --p-primary-soft: #eff6ff;
  --p-ink: #0f172a;
  --p-ink-2: #334155;
  --p-muted: #64748b;
  --p-faint: #94a3b8;
  --p-line: #e2e8f0;
  --p-line-soft: #f1f5f9;
  --p-bg: #f5f7fb;
  --p-surface: #ffffff;
  --p-success: #059669;
  --p-warning: #d97706;
  --p-danger: #dc2626;
  --p-info: #0284c7;
  --p-radius: 18px;
  --p-radius-md: 12px;
  --p-radius-sm: 10px;
  --p-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 30px -18px rgba(15, 23, 42, .28);
  --p-shadow-lg: 0 28px 70px -38px rgba(15, 23, 42, .5);
  --p-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --acrm-aurora:
    radial-gradient(85% 70% at 4% -8%, #ffe4f2 0%, rgba(255, 228, 242, 0) 62%),
    radial-gradient(80% 70% at 104% -6%, #e6ebff 0%, rgba(230, 235, 255, 0) 62%),
    radial-gradient(90% 80% at 40% 120%, #e0f5ff 0%, rgba(224, 245, 255, 0) 66%),
    linear-gradient(180deg, #fdfdff 0%, #f5f7fd 100%);
}

/* ==========================================================================
   1. Coherent palette — neutralises the chaotic Theme Style colours.
   (Theme Style sets success=purple, danger=orange, info=salmon.)
   ========================================================================== */
.btn,
.btn-default,
.btn-primary,
.btn-success,
.btn-danger,
.btn-info,
.btn-warning {
  background-image: none !important;
}

.btn {
  border-radius: var(--p-radius-sm);
  font-weight: 600;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn-primary,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.btn-primary:active.focus,
.btn-primary.active.focus {
  background-color: var(--p-primary) !important;
  border-color: var(--p-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
  background-color: var(--p-primary-700) !important;
  border-color: var(--p-primary-700) !important;
}

.btn-success,
.btn-success:focus,
.btn-success.focus,
.btn-success:hover,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
  background-color: var(--p-success) !important;
  border-color: var(--p-success) !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #047857 !important;
  border-color: #047857 !important;
}

.btn-danger,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:hover,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
  background-color: var(--p-danger) !important;
  border-color: var(--p-danger) !important;
  color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

.btn-info,
.btn-info:focus,
.btn-info.focus,
.btn-info:hover,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
  background-color: var(--p-info) !important;
  border-color: var(--p-info) !important;
  color: #fff !important;
}

.btn-info:hover,
.btn-info:focus {
  background-color: #0369a1 !important;
  border-color: #0369a1 !important;
}

.btn-warning,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
  background-color: var(--p-warning) !important;
  border-color: var(--p-warning) !important;
  color: #fff !important;
}

.label-success { background: #d1fae5 !important; color: #047857 !important; }
.label-danger  { background: #fee2e2 !important; color: #b91c1c !important; }
.label-info    { background: #dbeafe !important; color: #1d4ed8 !important; }
.label-warning { background: #fef3c7 !important; color: #b45309 !important; }

.alert-success { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #065f46 !important; }
.alert-danger  { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.alert-info    { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e40af !important; }
.alert-warning { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }

/* ==========================================================================
   2. Brand logo (with wordmark fallback)
   ========================================================================== */
.acrm-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: 0 !important;
}

.acrm-brand-logo img {
  display: block;
  max-height: 38px;
  width: auto;
}

.acrm-brand-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.acrm-brand-logo__name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--p-ink);
  line-height: 1;
}

/* ==========================================================================
   3. Authentication — fullscreen photographic parallax + glass split
   ========================================================================== */
body.acrm-auth {
  margin: 0;
  min-height: 100vh;
  background: #eef1f7;
  font-family: var(--p-font);
  color: var(--p-ink-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.acrm-auth *,
.acrm-auth *::before,
.acrm-auth *::after { box-sizing: border-box; }

/* ------------------------------------------------ fullscreen depth stack -- */
.acrm-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e9edf5;
}

.acrm-auth-bg__layer,
.acrm-auth-bg__grid,
.acrm-auth-bg__wash,
.acrm-auth-bg__grain,
.acrm-auth-bg__vignette {
  position: absolute;
  inset: 0;
}

.acrm-auth-bg__layer,
.acrm-auth-bg__grid { will-change: transform; }

.acrm-auth-bg__photo-layer { inset: -5%; }

.acrm-auth-bg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* light brand wash keeps the photo airy instead of dark */
.acrm-auth-bg__wash {
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, .9) 0%,
      rgba(255, 255, 255, .8) 38%,
      rgba(255, 243, 249, .7) 58%,
      rgba(255, 255, 255, .88) 100%),
    radial-gradient(58% 62% at 10% 14%, rgba(255, 0, 129, .12), rgba(255, 0, 129, 0) 72%),
    radial-gradient(58% 62% at 92% 86%, rgba(37, 99, 235, .12), rgba(37, 99, 235, 0) 72%);
}

.acrm-auth-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: acrm-orb-float 20s ease-in-out infinite;
}

.acrm-auth-bg__orb--1 {
  width: 620px; height: 620px; top: -200px; left: -160px;
  background: radial-gradient(circle, #ff9ecb 0%, rgba(255, 158, 203, 0) 66%);
  opacity: .5;
}

.acrm-auth-bg__orb--2 {
  width: 560px; height: 560px; bottom: -220px; right: -140px;
  background: radial-gradient(circle, #a5b4fc 0%, rgba(165, 180, 252, 0) 66%);
  opacity: .45;
  animation-duration: 24s;
  animation-delay: -6s;
}

.acrm-auth-bg__orb--3 {
  width: 460px; height: 460px; top: 34%; left: 48%;
  background: radial-gradient(circle, #7dd3fc 0%, rgba(125, 211, 252, 0) 66%);
  opacity: .35;
  animation-duration: 28s;
  animation-delay: -11s;
}

.acrm-auth-bg__grid {
  inset: -14%;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 40% 40%, #000 8%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 40% 40%, #000 8%, transparent 78%);
}

.acrm-auth-bg__grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
}

.acrm-auth-bg__vignette {
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0) 46%, rgba(15, 23, 42, .16) 100%);
}

@keyframes acrm-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -38px, 0) scale(1.07); }
}

/* -------------------------------------------------------------- split ----- */
.acrm-auth-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: 100vh;
}

.acrm-auth-showcase-panel {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.acrm-showcase-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 64px 56px;
}

.acrm-showcase-copy { max-width: 33rem; }

.acrm-showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .6);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.acrm-showcase-title {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #0b1220;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .55);
}

.acrm-showcase-sub {
  margin: 0;
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: #3f4c63;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .5);
}

.acrm-showcase-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 30px;
}

.acrm-showcase-metric strong {
  display: block;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #0b1220;
  font-variant-numeric: tabular-nums;
}

.acrm-showcase-metric span {
  font-size: 12.5px;
  font-weight: 500;
  color: #526078;
}

.acrm-showcase-stage {
  position: relative;
  flex: 0 0 296px;
  min-height: 0;
}

.acrm-showcase-mock {
  position: absolute;
  left: 0;
  right: -72px;
  top: 0;
  bottom: 0;
  will-change: transform;
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------- mockup ----- */
.acrm-mock {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 56px 110px -48px rgba(15, 23, 42, .6), 0 12px 32px -20px rgba(15, 23, 42, .28);
}

.acrm-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f7;
  background: #fbfcfe;
}

.acrm-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.acrm-mock__dot:nth-child(1) { background: #ffd0e2; }
.acrm-mock__dot:nth-child(2) { background: #ffe6c2; }
.acrm-mock__dot:nth-child(3) { background: #d6f5e3; }

.acrm-mock__url {
  margin-left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f1f4f9;
  color: #94a3b8;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}

.acrm-mock__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: calc(100% - 42px);
}

.acrm-mock__side {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 16px;
  border-right: 1px solid #eef1f7;
  background: #fbfcfe;
}

.acrm-mock__side span { height: 11px; border-radius: 999px; background: #e9edf5; }
.acrm-mock__side span:nth-child(1) { width: 78%; background: linear-gradient(135deg, #ff7ab8, #ff0081); }
.acrm-mock__side span:nth-child(2) { width: 62%; }
.acrm-mock__side span:nth-child(3) { width: 84%; }
.acrm-mock__side span:nth-child(4) { width: 54%; }
.acrm-mock__side span:nth-child(5) { width: 72%; }
.acrm-mock__side span:nth-child(6) { width: 48%; }

.acrm-mock__main { display: flex; flex-direction: column; gap: 14px; padding: 18px; }

.acrm-mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.acrm-mock__kpis > div {
  padding: 12px;
  border: 1px solid #eef1f7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 26px -22px rgba(15, 23, 42, .5);
}

.acrm-mock__kpis i { display: block; width: 42%; height: 7px; border-radius: 999px; background: #eef1f7; }
.acrm-mock__kpis b { display: block; width: 64%; height: 14px; margin: 9px 0 7px; border-radius: 6px; background: #dfe6f2; }
.acrm-mock__kpis em { display: block; width: 32%; height: 7px; border-radius: 999px; background: #d6f5e3; }
.acrm-mock__kpis > div:nth-child(2) em { background: #ffe6c2; }
.acrm-mock__kpis > div:nth-child(3) em { background: #ffd9e9; }

.acrm-mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 84px;
  padding: 14px;
  border: 1px solid #eef1f7;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.acrm-mock__chart span { flex: 1 1 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #cfe0ff, #e8eefb); }
.acrm-mock__chart span.is-peak { background: linear-gradient(180deg, #ff7ab8, #ff0081); }

.acrm-mock__rows { display: flex; flex-direction: column; gap: 10px; }
.acrm-mock__row { display: flex; align-items: center; gap: 11px; }
.acrm-mock__row i { width: 15px; height: 15px; border-radius: 5px; background: #eef1f7; }
.acrm-mock__row b { height: 9px; border-radius: 999px; background: #eef1f7; }
.acrm-mock__row em { width: 48px; height: 16px; margin-left: auto; border-radius: 999px; }

/* ------------------------------------------------------------- chips ------ */
.acrm-float-chip-wrap { position: absolute; inset: 0; will-change: transform; pointer-events: none; }

.acrm-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 26px 46px -26px rgba(15, 23, 42, .65);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  animation: acrm-chip-float 9s ease-in-out infinite;
}

.acrm-float-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7ab8, #ff0081);
  color: #fff;
}

.acrm-float-chip-wrap--2 .acrm-float-chip__icon { background: linear-gradient(135deg, #6ee7b7, #059669); }
.acrm-float-chip-wrap--3 .acrm-float-chip__icon { background: linear-gradient(135deg, #7dd3fc, #2563eb); }

.acrm-float-chip-wrap--1 .acrm-float-chip { right: 8%; top: -18px; }
.acrm-float-chip-wrap--2 .acrm-float-chip { right: 2%; bottom: 8px; animation-delay: -3s; }
.acrm-float-chip-wrap--3 .acrm-float-chip { left: -26px; bottom: 38%; animation-delay: -6s; }

@keyframes acrm-chip-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -13px, 0); }
}

/* ------------------------------------------------------- form glass ------- */
.acrm-auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 64px 28px;
  border-left: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: -50px 0 90px -70px rgba(15, 23, 42, .6);
}

.acrm-auth-form-inner {
  width: 100%;
  max-width: 392px;
  margin: auto;
  will-change: transform;
}

.acrm-auth-form-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--p-faint);
}

.acrm-auth-form-foot strong { color: var(--p-muted); font-weight: 600; }

.acrm-auth__brandmark {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 32px;
}

.acrm-auth__brandmark .acrm-brand-logo img { max-height: 40px; }

.acrm-auth__head { margin-bottom: 26px; text-align: left; }

.acrm-auth__title {
  margin: 0 0 8px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #0b1220;
}

.acrm-auth__subtitle {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--p-muted);
}

.acrm-auth .form-group { margin-bottom: 16px; }

.acrm-auth .control-label,
.acrm-auth label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #334155;
}

.acrm-auth .form-control {
  height: 48px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(15, 23, 42, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--p-ink);
  font-size: 14.5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.acrm-auth .form-control::placeholder { color: #a3aec0; }

.acrm-auth .form-control:focus {
  border-color: #ff5aa5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 0, 129, .14), 0 1px 2px rgba(15, 23, 42, .04);
}

.acrm-input-wrap { position: relative; display: block; }
.acrm-input-wrap .form-control { width: 100%; padding-left: 44px; }
.acrm-input-wrap .form-control.has-toggle { padding-right: 46px; }

.acrm-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #97a3b6;
  pointer-events: none;
  transition: color .16s ease;
}

.acrm-input-wrap .form-control:focus ~ .acrm-field-icon { color: #ff5aa5; }

.acrm-field-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #97a3b6;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.acrm-field-toggle:hover { background: rgba(15, 23, 42, .05); color: #334155; }
.acrm-field-toggle.is-visible { color: #ff0081; }

.acrm-auth .btn {
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acrm-auth .btn-primary {
  position: relative;
  overflow: hidden;
  background-color: #ff0081 !important;
  background-image: linear-gradient(135deg, #ff0081 0%, #ff3d95 52%, #ff7ab8 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 20px 38px -18px rgba(255, 0, 129, .85);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.acrm-auth .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
}

.acrm-auth .btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
  box-shadow: 0 26px 46px -18px rgba(255, 0, 129, .95);
}

.acrm-auth .btn-primary:hover::after { left: 140%; }
.acrm-auth .btn-block { width: 100%; }

.acrm-auth .checkbox { margin: 6px 0 20px; display: flex; align-items: center; }
.acrm-auth .checkbox label { margin: 0; font-size: 13.5px; font-weight: 500; color: #475569; }
.acrm-auth .checkbox input[type="checkbox"] { margin-right: 9px; width: 17px; height: 17px; accent-color: #ff0081; }

.acrm-auth .acrm-auth__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
}

.acrm-auth .acrm-auth__links a { color: #e60073; text-decoration: none; }
.acrm-auth .acrm-auth__links a:hover { color: #b8005c; text-decoration: underline; }

.acrm-auth .acrm-auth__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #8b97aa;
}

.acrm-auth .acrm-auth__code { text-align: center; letter-spacing: .35em; font-size: 19px; font-weight: 700; }

.acrm-auth .alert {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 15px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.acrm-auth .alert-danger  { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.acrm-auth .alert-success { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #065f46 !important; }
.acrm-auth .alert-info    { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e40af !important; }
.acrm-auth .alert-warning { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }

/* --------------------------------------- customer portal (same treatment) -- */
body.customers.acrm-has-auth { background: #eef1f7; }

body.customers.acrm-has-auth .navbar.header,
body.customers.acrm-has-auth .footer { display: none !important; }

body.customers.acrm-has-auth #wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.customers.acrm-has-auth .acrm-auth-showcase-panel { grid-column: 1; grid-row: 1; }

body.customers.acrm-has-auth #content {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px 28px;
  border-left: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: -50px 0 90px -70px rgba(15, 23, 42, .6);
}

body.customers.acrm-has-auth #content > .container { width: 100%; max-width: none; padding: 0; }
body.customers.acrm-has-auth #content > .container > .row { margin: 0; }

body.customers.acrm-has-auth .acrm-portal-auth {
  margin: 0 auto;
  max-width: 392px;
  width: 100%;
  float: none;
  will-change: transform;
}

body.customers.acrm-has-auth .acrm-portal-auth__card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none;
  padding: 0;
}

body.customers.acrm-has-auth .acrm-portal-auth__title {
  text-align: left;
  margin-bottom: 8px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #0b1220;
}

body.customers.acrm-has-auth .acrm-portal-auth__subtitle {
  text-align: left;
  margin-bottom: 26px;
  color: var(--p-muted);
}

body.customers.acrm-has-auth .acrm-portal-auth label { color: #334155; }

body.customers.acrm-has-auth .acrm-portal-auth .form-control {
  height: 48px;
  min-height: 48px;
  border-color: rgba(15, 23, 42, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--p-ink);
}

body.customers.acrm-has-auth .acrm-portal-auth .form-control:focus {
  border-color: #ff5aa5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 0, 129, .14);
}

body.customers.acrm-has-auth .acrm-portal-auth .bootstrap-select > .dropdown-toggle {
  min-height: 48px;
  border-color: rgba(15, 23, 42, .11);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .78);
  color: var(--p-ink);
}

body.customers.acrm-has-auth .acrm-portal-auth .btn { height: 50px; border-radius: 12px; font-weight: 700; }

body.customers.acrm-has-auth .acrm-portal-auth .btn-primary {
  background-color: #ff0081 !important;
  background-image: linear-gradient(135deg, #ff0081 0%, #ff3d95 52%, #ff7ab8 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 20px 38px -18px rgba(255, 0, 129, .85);
}

body.customers.acrm-has-auth .acrm-portal-auth .acrm-portal-auth__links { text-align: left; }
body.customers.acrm-has-auth .acrm-portal-auth .acrm-portal-auth__links a { color: #e60073; }
body.customers.acrm-has-auth .acrm-portal-auth__card .checkbox label { color: #475569; }
body.customers.acrm-has-auth .acrm-portal-auth__card .checkbox input[type="checkbox"] { accent-color: #ff0081; }

/* --- layout C: minimal recovery / 2FA (no photo, calm editorial card) --- */
body.acrm-auth--minimal {
  background:
    radial-gradient(90% 70% at 50% -12%, #fff0f7 0%, rgba(255, 240, 247, 0) 62%),
    radial-gradient(80% 70% at 100% 108%, #eef2ff 0%, rgba(238, 242, 255, 0) 62%),
    #f7f8fc;
}

body.acrm-auth--minimal .acrm-auth-bg { display: none; }
body.acrm-auth--minimal .acrm-auth-split { grid-template-columns: minmax(0, 1fr); }

body.acrm-auth--minimal .acrm-auth-form-panel {
  align-items: center;
  justify-content: center;
  border-left: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

body.acrm-auth--minimal .acrm-auth-form-inner {
  max-width: 424px;
  padding: 36px 34px 30px;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 60px -36px rgba(15, 23, 42, .4);
}

body.acrm-auth--minimal .acrm-auth__brandmark { justify-content: center; }
body.acrm-auth--minimal .acrm-auth__head { text-align: center; }
body.acrm-auth--minimal .acrm-auth__subtitle { margin: 0 auto; }
body.acrm-auth--minimal .acrm-auth__title { font-size: 24px; }
body.acrm-auth--minimal.acrm-auth .acrm-auth__links { justify-content: center; }

/* --- layout D: customer recovery = minimal, no photo --- */
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) { background: #f7f8fc; }
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) .acrm-auth-bg { display: none; }
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) #wrapper { grid-template-columns: minmax(0, 1fr); }
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) #content {
  grid-column: 1;
  align-items: center;
  justify-content: center;
  border-left: 0;
  background:
    radial-gradient(90% 70% at 50% -12%, #fff0f7 0%, rgba(255, 240, 247, 0) 62%),
    radial-gradient(80% 70% at 100% 108%, #eef2ff 0%, rgba(238, 242, 255, 0) 62%),
    #f7f8fc;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) .acrm-portal-auth {
  max-width: 424px;
  padding: 36px 34px 30px;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 26px 60px -36px rgba(15, 23, 42, .4);
}
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) .acrm-portal-auth__title,
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) .acrm-portal-auth__subtitle,
body.customers.acrm-has-auth:has(.acrm-portal-auth--minimal) .acrm-portal-auth__links { text-align: center; }

/* --- registration wizard (own layout: stepper + one section at a time) --- */
.acrm-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.acrm-stepper__item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 0;
  min-width: 0;
  color: var(--p-faint);
  font-size: 12.5px;
  font-weight: 600;
}

.acrm-stepper__dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.acrm-stepper__item::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e6eaf2;
  margin-left: 6px;
}

.acrm-stepper__item:last-child::after { display: none; }
.acrm-stepper__item.is-active .acrm-stepper__dot {
  background: linear-gradient(135deg, #ff0081, #ff5aa5);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(255, 0, 129, .9);
}
.acrm-stepper__item.is-active .acrm-stepper__label { color: #0b1220; }
.acrm-stepper__item.is-done .acrm-stepper__dot { background: #0b1220; color: #fff; }
.acrm-stepper__item.is-done .acrm-stepper__label { color: #475569; }

.acrm-reg-hidden { display: none !important; }

/* the visible wizard step owns the full card width */
body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card .row > .col-md-6:not(.acrm-reg-hidden),
body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card .row > .acrm-reg-step:not(.acrm-reg-hidden) {
  float: none;
  width: 100%;
}

.acrm-reg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.acrm-reg-nav__btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.acrm-reg-nav__btn:hover { background: #f8fafc; }
.acrm-reg-nav__btn[hidden] { display: none; }

.acrm-reg-nav__btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #64748b;
}

.acrm-reg-nav__btn--primary {
  margin-left: auto;
  border-color: transparent;
  background: linear-gradient(135deg, #ff0081, #ff3d95 52%, #ff7ab8);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(255, 0, 129, .85);
}

.acrm-reg-nav__btn--primary:hover { background: linear-gradient(135deg, #e60073, #ff2d8b); transform: translateY(-1px); }

/* --- layout B: customer portal login = centred glass card over the photo --- */
body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) #wrapper {
  grid-template-columns: minmax(0, 1fr);
}

body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) #content {
  grid-column: 1;
  align-items: center;
  justify-content: center;
  border-left: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) .acrm-portal-auth {
  max-width: 420px;
  padding: 38px 34px 30px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .87);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 46px 90px -40px rgba(15, 23, 42, .5), inset 0 1px 0 #fff;
}

body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) .acrm-portal-auth__title,
body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) .acrm-portal-auth__subtitle,
body.customers.acrm-has-auth:not(:has(.acrm-portal-auth--wide)) .acrm-portal-auth__links {
  text-align: center;
}

/* registration is a wide two-column form: keep the fullscreen photo but
   centre a roomy glass card instead of the narrow split column */
body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) #wrapper {
  grid-template-columns: minmax(0, 1fr);
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-auth-showcase-panel {
  display: none;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) #content {
  grid-column: 1;
  align-items: center;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth {
  max-width: 780px;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card {
  max-width: 780px;
  padding: 40px 40px 34px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 46px 90px -40px rgba(15, 23, 42, .5), inset 0 1px 0 #fff;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__title,
body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__subtitle {
  text-align: center;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__toolbar {
  justify-content: center;
  margin-bottom: 22px;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card .register-company-info-heading {
  margin-top: 0;
}

body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card h4 {
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  font-size: 15px;
}

@media (max-width: 1199px) {
  body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card .row > [class*="col-"] {
    float: none;
    width: 100%;
  }

  body.customers.acrm-has-auth:has(.acrm-portal-auth--wide) .acrm-portal-auth__card .register-company-info-heading {
    margin-top: 26px;
  }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1023px) {
  .acrm-auth-split { grid-template-columns: minmax(0, 1fr); }
  .acrm-auth-showcase-panel,
  body.customers.acrm-has-auth .acrm-auth-showcase-panel { display: none; }

  .acrm-auth-form-panel {
    border-left: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 32px 20px 26px;
  }

  .acrm-auth-form-inner {
    max-width: 440px;
    padding: 30px 24px 26px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 40px 80px -36px rgba(15, 23, 42, .45), inset 0 1px 0 #fff;
  }

  .acrm-auth__brandmark { justify-content: center; }
  .acrm-auth__head { text-align: center; }
  .acrm-auth__subtitle { margin: 0 auto; }
  .acrm-auth__title { font-size: 25px; }

  body.customers.acrm-has-auth #wrapper { grid-template-columns: minmax(0, 1fr); }
  body.customers.acrm-has-auth #content {
    border-left: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 32px 20px 26px;
  }

  body.customers.acrm-has-auth .acrm-portal-auth__card {
    max-width: 440px;
    margin: 0 auto;
    padding: 30px 24px 26px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 40px 80px -36px rgba(15, 23, 42, .45), inset 0 1px 0 #fff;
  }

  body.customers.acrm-has-auth .acrm-portal-auth__title,
  body.customers.acrm-has-auth .acrm-portal-auth__subtitle { text-align: center; }
}

/* ==========================================================================
   4. Customer area chrome
   ========================================================================== */
body.customers {
  font-family: var(--p-font);
  background: var(--p-bg);
  color: var(--p-ink-2);
}

body.customers .navbar.header,
body.customers .navbar.navbar-default.header {
  min-height: 66px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--p-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

body.customers .navbar.header .navbar-brand {
  height: auto;
  padding: 14px 15px;
}

body.customers .navbar.header .navbar-brand img { max-height: 38px; width: auto; }

body.customers .navbar.header .navbar-nav > li > a {
  padding-top: 22px;
  padding-bottom: 21px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-ink-2);
  background: transparent;
}

body.customers .navbar.header .navbar-nav > li > a:hover,
body.customers .navbar.header .navbar-nav > li > a:focus {
  color: var(--p-primary);
  background: transparent;
}

body.customers .navbar.header .navbar-nav > .active > a,
body.customers .navbar.header .navbar-nav > .active > a:hover,
body.customers .navbar.header .navbar-nav > .active > a:focus {
  color: var(--p-primary) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--p-primary);
}

body.customers .navbar.header .navbar-nav > li.customers-nav-item-login > a {
  margin: 16px 0 16px 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: #ff0081 !important;
  background-image: linear-gradient(135deg, #ff0081 0%, #ff5aa5 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px -16px rgba(255, 0, 129, .8);
}

body.customers .navbar.header .navbar-nav > li.customers-nav-item-login > a:hover {
  filter: brightness(.96);
}

body.customers #wrapper {
  background: transparent;
}

body.customers #content { padding-top: 26px; }

body.customers .panel_s,
body.customers .panel {
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

body.customers .panel_s > .panel-body,
body.customers .panel > .panel-body { padding: 20px 22px; }

body.customers .panel-heading {
  background: #fff;
  border-bottom: 1px solid var(--p-line-soft);
  border-radius: var(--p-radius) var(--p-radius) 0 0;
  padding: 15px 22px;
  font-weight: 700;
  color: var(--p-ink);
}

body.customers .footer {
  margin-top: 36px;
  border-top: 1px solid var(--p-line);
  background: #fff;
  padding: 22px 0;
}

body.customers .footer .copyright-footer {
  font-size: 12.5px;
  color: var(--p-muted);
}

body.customers .customer-top-submenu {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

body.customers .customer-top-submenu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink-2);
  text-decoration: none;
}

body.customers .customer-top-submenu li a:hover {
  border-color: #cbd5e1;
  color: var(--p-primary);
}

/* ==========================================================================
   5. Customer area auth (login / register / forgot / reset)
   ========================================================================== */
body.customers .acrm-portal-auth {
  max-width: 460px;
  margin: 40px auto 20px;
}

body.customers .acrm-portal-auth__card {
  padding: 34px 32px 30px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: #fff;
  box-shadow: var(--p-shadow-lg);
}

body.customers .acrm-portal-auth__title {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--p-ink);
  text-align: center;
}

body.customers .acrm-portal-auth__subtitle {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--p-muted);
  text-align: center;
}

body.customers .acrm-portal-auth .form-group { margin-bottom: 16px; }

body.customers .acrm-portal-auth label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

body.customers .acrm-portal-auth .form-control {
  height: 46px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-sm);
  font-size: 14px;
  box-shadow: none;
}

body.customers .acrm-portal-auth .form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

body.customers .acrm-portal-auth .btn {
  height: 46px;
  border-radius: var(--p-radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.customers .acrm-portal-auth .btn-block {
  width: 100%;
  margin-bottom: 10px;
}

body.customers .acrm-portal-auth .acrm-portal-auth__links {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

body.customers .acrm-portal-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--p-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.customers .acrm-portal-auth__divider::before,
body.customers .acrm-portal-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--p-line);
}

body.customers .acrm-portal-auth--wide { max-width: 1060px; }

body.customers .acrm-portal-auth__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body.customers .acrm-portal-auth__toolbar .bootstrap-select { min-width: 190px; }

body.customers .acrm-portal-auth__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--p-line-soft);
}

body.customers .acrm-portal-auth__back {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-muted);
}

body.customers .acrm-portal-auth__card h4 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
}

body.customers .acrm-portal-auth__card .checkbox {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

body.customers .acrm-portal-auth__card .checkbox label {
  margin: 0;
  font-weight: 500;
}

body.customers .acrm-portal-auth__card .checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--p-primary);
}

body.customers .acrm-portal-auth__card { padding: 34px 34px 28px; }

@media (max-width: 767px) {
  body.customers .acrm-portal-auth__card { padding: 24px 18px 22px; }
  body.customers .acrm-portal-auth__toolbar { justify-content: stretch; }
  body.customers .acrm-portal-auth__toolbar .bootstrap-select { width: 100%; min-width: 0; }
}

/* ==========================================================================
   6. Knowledge Base
   ========================================================================== */
.kb-search-jumbotron,
body.customers .jumbotron {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.acrm-kb-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 58px 26px 54px;
  border-radius: 0 0 30px 30px;
  border-bottom: 1px solid #eef1f7;
  color: var(--p-ink-2);
  background:
    radial-gradient(80% 120% at 4% -10%, #ffe4f2 0%, rgba(255, 228, 242, 0) 62%),
    radial-gradient(80% 120% at 100% -10%, #e6ebff 0%, rgba(230, 235, 255, 0) 62%),
    radial-gradient(90% 130% at 50% 130%, #e0f5ff 0%, rgba(224, 245, 255, 0) 66%),
    linear-gradient(180deg, #fdfdff 0%, #f5f7fd 100%);
}

.acrm-kb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000 16%, transparent 76%);
  mask-image: radial-gradient(100% 100% at 50% 0%, #000 16%, transparent 76%);
  pointer-events: none;
}

.acrm-kb-hero > * { position: relative; z-index: 1; }

.acrm-kb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .5);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.acrm-kb-hero__title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--p-ink);
}

.acrm-kb-hero__sub {
  margin: 0 auto 26px;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--p-muted);
}

.acrm-kb-search {
  max-width: 620px;
  margin: 0 auto;
}

.acrm-kb-search .input-group {
  display: flex;
  align-items: stretch;
  padding: 6px;
  border: 1px solid #eef1f7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 22px 44px -26px rgba(76, 29, 149, .35), 0 4px 12px -8px rgba(15, 23, 42, .16);
}

.acrm-kb-search .form-control {
  flex: 1 1 auto;
  height: 46px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14.5px;
}

.acrm-kb-search .input-group-btn { width: auto; }

.acrm-kb-search .btn {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background-color: #ff0081 !important;
  background-image: linear-gradient(135deg, #ff0081 0%, #ff5aa5 100%) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 16px 30px -16px rgba(255, 0, 129, .8);
}

.acrm-kb-search .btn:hover { filter: brightness(.96); }

.acrm-kb-search .kb-search-icon {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--p-faint);
}

/* KB cards / lists */
.acrm-kb-card {
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: #fff;
  box-shadow: var(--p-shadow);
  padding: 22px 24px;
}

.acrm-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.acrm-kb-tile {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: #fff;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.acrm-kb-tile:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--p-shadow);
  text-decoration: none;
}

.acrm-kb-tile__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--p-primary-soft);
  color: var(--p-primary);
  font-size: 15px;
}

.acrm-kb-tile__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
}

.acrm-kb-tile__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--p-muted);
}

.acrm-kb-tile__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-faint);
}

.acrm-kb-list { list-style: none; margin: 0; padding: 0; }

.acrm-kb-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--p-line-soft);
}

.acrm-kb-list > li:last-child { border-bottom: 0; }

.acrm-kb-list__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.acrm-kb-list__title a { color: var(--p-ink); text-decoration: none; }
.acrm-kb-list__title a:hover { color: var(--p-primary); }

.acrm-kb-list__desc {
  margin: 0;
  font-size: 13px;
  color: var(--p-muted);
}

.acrm-kb-count {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--p-line-soft);
  color: var(--p-ink-2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.acrm-kb-article {
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: #fff;
  box-shadow: var(--p-shadow);
  padding: 30px 34px;
}

.acrm-kb-article h1 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p-ink);
}

.acrm-kb-article .tc-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--p-ink-2);
}

.acrm-kb-empty {
  padding: 40px 24px;
  border: 1px dashed var(--p-line);
  border-radius: var(--p-radius-md);
  background: #fbfcfe;
  text-align: center;
  color: var(--p-muted);
}

.acrm-kb-empty strong { display: block; margin-bottom: 6px; color: var(--p-ink); font-size: 15px; }

.acrm-kb-search__icon {
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--p-faint);
  font-size: 15px;
}

.acrm-kb-date {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--p-faint);
  white-space: nowrap;
}

.acrm-kb-results-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--p-ink);
}

.acrm-kb-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--p-primary-soft);
  color: var(--p-primary);
  font-size: 18px;
}

.acrm-kb-empty > span:last-child { display: block; font-size: 13px; color: var(--p-faint); }

.acrm-kb-list--compact > li { padding: 12px 0; }

.acrm-kb-list__title--sm { font-size: 14px; }

.acrm-kb-related-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
}

.acrm-kb-card--related { padding: 22px 22px 12px; }

.acrm-kb-useful {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--p-line-soft);
}

.acrm-kb-useful__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
}

.acrm-kb-useful .answer_response { font-size: 13px; color: var(--p-muted); margin-bottom: 10px; }

/* help-centre section heading */
.acrm-kb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 18px;
}

.acrm-kb-section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p-ink);
}

.acrm-kb-section-sub { font-size: 13px; color: var(--p-muted); }

.acrm-kb-tile__arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--p-faint);
  transition: transform .18s ease, color .18s ease;
}

.acrm-kb-tile:hover .acrm-kb-tile__arrow { transform: translateX(3px); color: #ff0081; }

/* support CTA */
.acrm-kb-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--p-radius);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 0, 129, .10), rgba(255, 0, 129, 0) 62%),
    radial-gradient(80% 140% at 100% 100%, rgba(37, 99, 235, .10), rgba(37, 99, 235, 0) 62%),
    #fff;
  box-shadow: 0 24px 60px -40px rgba(15, 23, 42, .5);
}

.acrm-kb-help__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p-ink);
}

.acrm-kb-help__sub { margin: 0; font-size: 13.5px; color: var(--p-muted); }

.acrm-kb-help__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff0081, #ff3d95 52%, #ff7ab8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 34px -18px rgba(255, 0, 129, .85);
  transition: transform .18s ease, filter .18s ease;
}

.acrm-kb-help__cta:hover { transform: translateY(-1px); filter: brightness(.97); color: #fff; text-decoration: none; }
.acrm-kb-help__cta i { font-size: 12px; transition: transform .18s ease; }
.acrm-kb-help__cta:hover i { transform: translateX(3px); }

/* ==========================================================================
   6b. Customer portal home
   ========================================================================== */
.acrm-portal-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 26px 30px;
  border: 1px solid #eef1f7;
  border-radius: var(--p-radius);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 0, 129, .09), rgba(255, 0, 129, 0) 62%),
    radial-gradient(70% 120% at 100% 100%, rgba(37, 99, 235, .09), rgba(37, 99, 235, 0) 62%),
    #fff;
  box-shadow: 0 20px 50px -38px rgba(15, 23, 42, .45);
}

.acrm-portal-hero__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--p-faint);
}

.acrm-portal-hero__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--p-ink);
}

.acrm-portal-hero__sub { margin: 0; font-size: 13.5px; color: var(--p-muted); }
.acrm-portal-hero__dot { margin: 0 6px; color: #cbd5e1; }

.acrm-portal-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.acrm-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 11px;
  background: #fff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.acrm-portal-btn:hover { transform: translateY(-1px); border-color: #cbd5e1; color: #0b1220; text-decoration: none; }

.acrm-portal-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff0081, #ff3d95 52%, #ff7ab8);
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(255, 0, 129, .85);
}

.acrm-portal-btn--primary:hover { color: #fff; filter: brightness(.97); }

.acrm-portal-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.acrm-portal-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, .6);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.acrm-portal-tile:hover {
  transform: translateY(-2px);
  border-color: #dbe3ee;
  box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .5);
  text-decoration: none;
}

.acrm-portal-tile__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f1f5f9;
  color: #475569;
}

.acrm-portal-tile.is-pink .acrm-portal-tile__icon    { background: #fff0f7; color: #e60073; }
.acrm-portal-tile.is-blue .acrm-portal-tile__icon    { background: #eff6ff; color: #1d4ed8; }
.acrm-portal-tile.is-violet .acrm-portal-tile__icon  { background: #f5f3ff; color: #6d28d9; }
.acrm-portal-tile.is-emerald .acrm-portal-tile__icon { background: #ecfdf5; color: #047857; }
.acrm-portal-tile.is-amber .acrm-portal-tile__icon   { background: #fffbeb; color: #b45309; }
.acrm-portal-tile.is-slate .acrm-portal-tile__icon   { background: #f1f5f9; color: #334155; }

.acrm-portal-tile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acrm-portal-tile__body strong { font-size: 14.5px; font-weight: 700; color: var(--p-ink); }
.acrm-portal-tile__body span { font-size: 12.5px; color: var(--p-muted); }

.acrm-portal-tile__arrow {
  margin-left: auto;
  font-size: 11px;
  color: #cbd5e1;
  transition: transform .16s ease, color .16s ease;
}

.acrm-portal-tile:hover .acrm-portal-tile__arrow { transform: translateX(3px); color: #ff0081; }

.acrm-portal-panel {
  margin-bottom: 22px;
  border: 1px solid #eef1f7;
  border-radius: var(--p-radius);
  background: #fff;
  box-shadow: 0 20px 50px -40px rgba(15, 23, 42, .5);
  overflow: hidden;
}

.acrm-portal-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.acrm-portal-panel__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--p-ink); }

.acrm-portal-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #e60073;
  text-decoration: none;
}

.acrm-portal-panel__link i { font-size: 10px; transition: transform .16s ease; }
.acrm-portal-panel__link:hover { color: #b8005c; text-decoration: none; }
.acrm-portal-panel__link:hover i { transform: translateX(2px); }

.acrm-portal-panel__body { padding: 20px 22px; }
.acrm-portal-panel__body .panel_s { border: 0; box-shadow: none; margin-bottom: 0; }
.acrm-portal-panel__body .panel-body { padding: 0; }

.acrm-portal-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 340px;
  margin: 4px 0 16px;
}

.acrm-portal-chart { max-height: 400px; }

@media (max-width: 767px) {
  .acrm-portal-hero { padding: 22px 20px; }
  .acrm-portal-hero__title { font-size: 23px; }
  .acrm-portal-hero__actions { width: 100%; }
  .acrm-portal-btn { flex: 1 1 auto; justify-content: center; }
  .acrm-portal-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .acrm-auth-stage { justify-content: flex-start; padding: 34px 18px 40px; }
  .acrm-auth__card { padding: 28px 22px 24px; }
  .acrm-auth__title { font-size: 21px; }
  .acrm-auth-bg__orb { filter: blur(70px); }
  .acrm-kb-hero { padding: 40px 18px 38px; border-radius: 0 0 20px 20px; }
  .acrm-kb-hero__title { font-size: 24px; }
  .acrm-kb-article { padding: 22px 20px; }
}

@media (max-width: 767px) {
  body.customers #content { padding-top: 18px; }
  body.customers .acrm-portal-auth { margin-top: 18px; }
  body.customers .acrm-portal-auth__card { padding: 26px 20px 22px; }
  .acrm-kb-search .input-group { border-radius: 16px; }
  .acrm-kb-search .form-control { border-radius: 16px !important; }
  .acrm-kb-search .btn { border-radius: 12px; }
}
