/* WGroups V7 UI/UX enhancements: Join elevation + Chrome-like pull refresh */
#wg-pull-refresh {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  transform: translate(-50%, -76px);
  z-index: 999999;
  min-width: 168px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #057a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 120, 60, 0.20), 0 2px 8px rgba(15, 23, 42, 0.10);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}
#wg-pull-refresh.wg-visible {
  opacity: 1;
}
#wg-pull-refresh.wg-ready {
  color: #ffffff;
  background: linear-gradient(135deg, #00d66b, #009846);
}
#wg-pull-refresh.wg-refreshing {
  opacity: 1;
  transform: translate(-50%, 18px);
  color: #ffffff;
  background: linear-gradient(135deg, #00d66b, #008f44);
}
#wg-pull-refresh .wg-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  box-sizing: border-box;
}
#wg-pull-refresh.wg-refreshing .wg-spinner {
  animation: wg-spin 0.75s linear infinite;
}
@keyframes wg-spin { to { transform: rotate(360deg); } }

.wag-join-elevated {
  min-width: 108px !important;
  min-height: 44px !important;
  border-radius: 15px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #00d96b, #009846) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: .1px !important;
  box-shadow: 0 10px 22px rgba(0, 160, 82, 0.30), 0 3px 8px rgba(0, 80, 40, 0.18) !important;
  transform: translateZ(0);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease !important;
}
.wag-join-elevated:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow: 0 5px 12px rgba(0, 130, 65, 0.26) !important;
  filter: brightness(0.98);
}
