/* GramAds live data — premium async loader */
.ga-live-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(20, 108, 168, 0.16), transparent 55%),
    rgba(8, 18, 32, 0.42);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ga-live-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ga-live-loader {
  width: min(100%, 22rem);
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 253, 0.9));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 24px 48px rgba(8, 28, 48, 0.28);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ga-live-overlay.is-active .ga-live-loader {
  transform: translateY(0) scale(1);
}

.ga-live-loader__orbit {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.95rem;
}

.ga-live-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(20, 108, 168, 0.14);
  border-top-color: #146ca8;
  border-right-color: rgba(36, 159, 229, 0.85);
  animation: ga-live-spin 0.9s linear infinite;
}

.ga-live-loader__ring--soft {
  inset: 0.42rem;
  border-width: 1.5px;
  border-color: rgba(20, 108, 168, 0.1);
  border-bottom-color: #249fe5;
  animation-duration: 1.35s;
  animation-direction: reverse;
}

.ga-live-loader__core {
  position: absolute;
  inset: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a7fbf, #146ca8);
  box-shadow: 0 0 0 4px rgba(20, 108, 168, 0.12);
  animation: ga-live-pulse 1.4s ease-in-out infinite;
}

.ga-live-loader__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #10263a;
  letter-spacing: -0.01em;
}

.ga-live-loader__text {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #5a738a;
}

.ga-live-loader__bars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
}

.ga-live-loader__bars span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #146ca8;
  opacity: 0.35;
  animation: ga-live-dot 1.1s ease-in-out infinite;
}

.ga-live-loader__bars span:nth-child(2) { animation-delay: 0.15s; }
.ga-live-loader__bars span:nth-child(3) { animation-delay: 0.3s; }

.ga-live-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(20, 108, 168, 0.06) 0%,
    rgba(36, 159, 229, 0.14) 45%,
    rgba(20, 108, 168, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: ga-live-shimmer 1.25s ease-in-out infinite;
  min-height: 1.1em;
}

.ga-live-panel.is-syncing {
  position: relative;
}

.ga-live-panel.is-syncing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes ga-live-spin {
  to { transform: rotate(360deg); }
}

@keyframes ga-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.75; }
}

@keyframes ga-live-dot {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes ga-live-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ga-live-overlay,
  .ga-live-loader {
    transition: none;
  }
  .ga-live-loader__ring,
  .ga-live-loader__ring--soft,
  .ga-live-loader__core,
  .ga-live-loader__bars span,
  .ga-live-skeleton {
    animation: none;
  }
}
