
/* —— Nova versão: toast + órbita circular moderna —— */
.prox-sw-update {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px) + 72px);
  transform: translateX(-50%) translateY(20px);
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  max-width: min(420px, calc(100vw - 24px));
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--gold, #D4AF37) 40%, transparent);
  background: color-mix(in srgb, var(--surface, #0e1016) 92%, #000);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  color: var(--text, #f1f5f9);
  opacity: 0;
  transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.prox-sw-update.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.prox-sw-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.prox-sw-svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.prox-sw-track {
  fill: none;
  stroke: rgba(255,255,255,.1);
  stroke-width: 3;
}
.prox-sw-arc {
  fill: none;
  stroke: var(--gold, #D4AF37);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163;
  stroke-dashoffset: 40;
  animation: proxSwArc 1.6s ease-in-out infinite;
}
.prox-sw-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold, #D4AF37);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold, #D4AF37) 70%, transparent);
  animation: proxSwPulse 1.6s ease-in-out infinite;
}
.prox-sw-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.prox-sw-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prox-sw-copy span {
  font-size: 0.72rem;
  color: #9aa3b2;
  line-height: 1.3;
}
.prox-sw-update-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--gold, #D4AF37);
  color: #111;
  transition: transform .15s, opacity .15s, filter .15s;
}
.prox-sw-update-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.prox-sw-update-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}
.prox-sw-update.is-updating .prox-sw-arc {
  animation: proxSwSpin 0.85s linear infinite;
  stroke-dashoffset: 50;
}

/* Overlay fullscreen ao atualizar */
.prox-sw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: all;
}
.prox-sw-overlay.is-on { opacity: 1; }
.prox-sw-overlay-core {
  text-align: center;
  color: #f1f5f9;
}
.prox-sw-orbit {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}
.prox-sw-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--gold, #D4AF37) 35%, transparent);
  animation: proxSwOrbit 2.4s cubic-bezier(.4,0,.2,1) infinite;
}
.prox-sw-orbit-ring.r2 {
  inset: 12px;
  border-color: color-mix(in srgb, var(--gold, #D4AF37) 55%, transparent);
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.prox-sw-orbit-ring.r3 {
  inset: 24px;
  border-color: color-mix(in srgb, var(--gold, #D4AF37) 80%, transparent);
  animation-duration: 1.3s;
}
.prox-sw-orbit-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold, #D4AF37);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--gold, #D4AF37) 80%, transparent),
    0 0 40px color-mix(in srgb, var(--gold, #D4AF37) 40%, transparent);
  animation: proxSwPulse 1.2s ease-in-out infinite;
}
.prox-sw-overlay-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prox-sw-overlay-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #9aa3b2;
}

@keyframes proxSwArc {
  0%, 100% { stroke-dashoffset: 120; }
  50% { stroke-dashoffset: 30; }
}
@keyframes proxSwSpin {
  to { transform: rotate(360deg); }
}
@keyframes proxSwPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}
@keyframes proxSwOrbit {
  0% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .prox-sw-arc,
  .prox-sw-dot,
  .prox-sw-orbit-ring,
  .prox-sw-orbit-core {
    animation: none !important;
  }
}


.prox-sw-update-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
  animation: proxSwBtnPulse 0.9s ease-in-out infinite;
}
@keyframes proxSwBtnPulse {
  50% { filter: brightness(1.15); }
}
.prox-pwa-boot {
  pointer-events: none;
}
