/* Saflio Counter — global loading surface (2026-10-24)
   One deliberate state for every boot/load: the whole interface dims, a card
   centred on the viewport carries the brand mark, a spinner and a message.
   Mirrors Saflio Collect's loading experience. */

.app-busy {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(12, 16, 22, 0.38);
  -webkit-backdrop-filter: blur(3px) saturate(0.9);
  backdrop-filter: blur(3px) saturate(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.app-busy.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.app-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  min-width: 230px;
  max-width: min(360px, 92vw);
  padding: 1.5rem 2rem 1.35rem;
  background: var(--bg-card, var(--surface-card, #17171d));
  color: var(--text, #f5f5f7);
  border: 1px solid var(--border, #30303a);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  transform: translateY(4px) scale(.985);
  transition: transform .18s ease;
}
.app-busy.is-visible .app-busy-card { transform: translateY(0) scale(1); }
.app-busy-mark { color: var(--accent, #f97316); opacity: .9; }
.app-busy-spinner {
  width: 30px;
  height: 30px;
  margin-top: .15rem;
  border-radius: 50%;
  border: 3px solid var(--accent-lighter, rgba(249, 115, 22, .2));
  border-top-color: var(--accent, #f97316);
  animation: app-busy-spin .8s linear infinite;
}
.app-busy-label {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.app-busy-sub {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted, #8b8b98);
}
@keyframes app-busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .app-busy, .app-busy-card { transition: none; }
  .app-busy-spinner { animation-duration: 1.8s; }
}
