@keyframes lds-pacman-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@-webkit-keyframes lds-pacman-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@keyframes lds-pacman-2 {
  0% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  50% {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }
  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
@-webkit-keyframes lds-pacman-2 {
  0% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  50% {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }
  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
@keyframes lds-pacman-3 {
  0% {
    -webkit-transform: translate(190px, 0);
    transform: translate(190px, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(70px, 0);
    transform: translate(70px, 0);
    opacity: 1;
  }
}
@-webkit-keyframes lds-pacman-3 {
  0% {
    -webkit-transform: translate(190px, 0);
    transform: translate(190px, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(70px, 0);
    transform: translate(70px, 0);
    opacity: 1;
  }
}

.app-loading {
  font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f8ff;
  z-index: 9999;
}
.app-loading p {
  display: block;
  font-size: 1.17em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: normal;
}

.app-loading .lds-pacman {
  position: relative;
  margin: auto;
  width: 200px !important;
  height: 200px !important;
  -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
  transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}
.app-loading .lds-pacman > div:nth-child(2) div {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 60px;
  border-radius: 120px 120px 0 0;
  background: #bbcedd;
  -webkit-animation: lds-pacman-1 1s linear infinite;
  animation: lds-pacman-1 1s linear infinite;
  -webkit-transform-origin: 60px 60px;
  transform-origin: 60px 60px;
}
.app-loading .lds-pacman > div:nth-child(2) div:nth-child(2) {
  -webkit-animation: lds-pacman-2 1s linear infinite;
  animation: lds-pacman-2 1s linear infinite;
}
.app-loading .lds-pacman > div:nth-child(1) div {
  position: absolute;
  top: 97px;
  left: -8px;
  width: 24px;
  height: 10px;
  background-image: url('../images/loading-dot.svg');
  background-size: contain;
  -webkit-animation: lds-pacman-3 1s linear infinite;
  animation: lds-pacman-3 1.5s linear infinite;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(1) {
  -webkit-animation-delay: -0.67s;
  animation-delay: -1s;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(2) {
  -webkit-animation-delay: -0.33s;
  animation-delay: -0.5s;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(3) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

/* Figma-styled loader */
.prosp-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.prosp-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e0def7;
  border-top-color: #7065f0;
  border-radius: 50%;
  animation: prosp-spin 1s linear infinite;
}

.prosp-loader-text {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1b175e;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Logo version */
.prosp-logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prosp-logo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid #e0def7;
  border-top-color: #7065f0;
  border-radius: 50%;
  animation: prosp-spin 1s linear infinite;
}

.prosp-logo {
  /* offera lockup is a wide mark (~3.1:1) — size by width, let the height follow. */
  width: 200px;
  height: auto;
  object-fit: contain;
}

/* keyframes */
@keyframes prosp-spin {
  to { transform: rotate(360deg); }
}

/* ---- Pre-bootstrap frame (index.html .boot-frame) ---------------------------------------------------------------- */
.app-loading.boot-frame { flex-direction: row; align-items: stretch; justify-content: flex-start; background: #f9fafb; }
.boot-sidebar { display: none; }
.boot-operator .boot-sidebar {
  width: 256px; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 18px;
  background: linear-gradient(180deg, #061848 0%, #0a2255 60%, #04102f 100%);
}
.boot-sidebar-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.boot-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.boot-header {
  height: 64px; flex-shrink: 0; display: flex; align-items: center; padding: 0 24px;
  border-bottom: 1px solid #dde3ea; background: rgba(249, 250, 251, 0.85);
}
.boot-header-logo { height: 26px; width: auto; }
.boot-operator .boot-header-logo { display: none; }
.boot-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.boot-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #e3e8ef; border-top-color: #061848;
  animation: boot-spin 0.8s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (max-width: 767.98px) {
  .boot-operator .boot-sidebar { display: none; }
  .boot-operator .boot-header-logo { display: block; }
}
.boot-error { position: fixed; inset: auto 0 0 0; z-index: 1; }
.boot-error #default-error { padding: 24px; background: #fff; border-top: 1px solid #dde3ea; }
