#popup,
#overlay_a,
.modal-overlay,
.install_m,
.install_web_app,
.fx_telegram,
.support-contact,
#support-window {
  display: none !important;
}

.sw-page-loading[hidden] {
  display: none !important;
}

.sw-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(24,51,76, 0.5);
}

.sw-page-loading::before {
  content: '';
  position: fixed;
  inset: 0 auto auto 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, #355a76, #a8c5e4, #f0f7ff);
  animation: sw-page-progress 0.9s ease-in-out infinite alternate;
}

.sw-page-loading span,
.sw-loading-skeleton {
  padding: 0.65rem 1.15rem;
  border: 1.65px solid rgba(168,197,228, 0.55);
  border-radius: 10px;
  background: linear-gradient(145deg, #2d506b, #18334c);
  color: #f0f7ff;
  font: 600 14px/1.35 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.sw-loading-skeleton {
  position: fixed;
  z-index: 9000;
  inset: 18% auto auto 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.newca-member-loading {
  min-height: 7.5rem;
  margin: 0.75rem 0;
  padding: 1.5rem 1.2rem;
  border: 1.65px solid rgba(168,197,228, 0.34);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #223f56, #18334c);
  color: #a8c5e4;
  font: 600 15px/1.4 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

@keyframes sw-page-progress {
  to { transform: translateX(165%); }
}

@media (prefers-reduced-motion: reduce) {
  .sw-page-loading::before { animation: none; }
}
