/* MicroLens global page-loading veil — MicroLens Ghana blue + gold */
:root {
  --ml-load-blue: #006B3F;
  --ml-load-blue-2: #005533;
  --ml-load-gold: #FCD116;
}

.ml-loading-host {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.ml-loading-host.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ml-loading-host[hidden] {
  display: none !important;
}

.ml-loading-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(27, 94, 191, .20), transparent 70%),
    rgba(21, 74, 150, .42);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}

.ml-loading-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 26px 22px;
  border-radius: 18px;
  text-align: center;
  color: #0f172a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 24px 60px rgba(21, 74, 150, .28),
    0 4px 16px rgba(15, 23, 42, .12);
  animation: mlLoadCardIn .35s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes mlLoadCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.ml-loading-ring {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--ml-load-blue) 0deg, var(--ml-load-gold) 120deg, transparent 120deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  animation: mlLoadSpin .85s linear infinite;
}
@keyframes mlLoadSpin {
  to { transform: rotate(360deg); }
}

.ml-loading-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ml-load-blue);
  margin-bottom: 6px;
  opacity: .75;
}

.ml-loading-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ml-load-blue);
  line-height: 1.35;
}

.ml-loading-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.ml-loading-actions {
  display: none;
  margin-top: 16px;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ml-loading-host.is-stuck .ml-loading-actions {
  display: flex;
}
.ml-loading-actions button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
}
.ml-loading-actions button.primary {
  background: var(--ml-load-blue);
  border-color: var(--ml-load-blue);
  color: #fff;
}
.ml-loading-actions button:hover {
  filter: brightness(1.03);
}

.ml-loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 2px;
  vertical-align: middle;
}
.ml-loading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ml-load-gold);
  opacity: .35;
  animation: mlLoadDot 1.2s ease-in-out infinite;
}
.ml-loading-dots i:nth-child(2) { animation-delay: .15s; }
.ml-loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mlLoadDot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ml-loading-ring,
  .ml-loading-dots i,
  .ml-loading-card {
    animation: none !important;
  }
  .ml-loading-host { transition: none; }
}

@media print {
  .ml-loading-host { display: none !important; }
}
