
/*--------------------------------------------------------------
# Unique Join Overlay
--------------------------------------------------------------*/
.join-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.join-card {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.join-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-icon-main {
  font-size: 2.5rem;
  color: var(--accent-color);
  position: relative;
  z-index: 2;
}

.join-icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  animation: pulse 2s infinite;
}

.join-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.join-loader span {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.join-loader span:nth-child(1) { animation-delay: -0.32s; }
.join-loader span:nth-child(2) { animation-delay: -0.16s; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 20px rgba(var(--accent-color-rgb), 0); }
  100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0); }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Success State */
.join-card.success .join-icon-main {
  color: #198754;
}
.join-card.success .join-icon-pulse {
  background: rgba(25, 135, 84, 0.15);
}

/* Error State */
.join-card.error .join-icon-main {
  color: #dc3545;
}
.join-card.error .join-icon-pulse {
  background: rgba(220, 53, 69, 0.15);
  animation: none;
}
