/* Живой QR: при обновлении — только белый лоадер, старый QR полностью скрыт */
.auth--qr-code .qr {
  position: relative;
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

/* Снимок Max: статичный SVG и их blur-оверлей никогда не показываем */
.auth--qr-code .qr > svg,
.auth--qr-code .qr .qrBlur,
.auth--qr-code .qrBlur {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.auth--qr-code .qr img.max-live-qr {
  width: 220px;
  height: 220px;
  display: none;
  margin: 0;
  border-radius: 4px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.auth--qr-code .qr img.max-live-qr.is-ready {
  display: block;
}

/* Пока грузим — прячем ВСЁ кроме нашего лоадера */
.auth--qr-code .qr.is-loading > :not(.max-qr-loader) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.auth--qr-code .qr .max-qr-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  background: #ffffff;
  pointer-events: none;
}

.auth--qr-code .qr.is-loading .max-qr-loader {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth--qr-code .qr .max-qr-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(17, 24, 39, 0.1);
  border-top-color: #3b82f6;
  border-right-color: #8b5cf6;
  animation: max-qr-spin 0.8s linear infinite;
  box-sizing: border-box;
}

.auth--qr-code .qr .max-qr-loader-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(17, 24, 39, 0.55);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@keyframes max-qr-spin {
  to {
    transform: rotate(360deg);
  }
}

#boot-loader {
  display: none !important;
}
