.community-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.community-popup[hidden] {
  display: none !important;
}

.community-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.community-content {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 38px 30px 28px;
  border: 1px solid #343b4b;
  border-radius: 22px;
  background: radial-gradient(ellipse at top, #18334d 0%, #12151d 66%);
  color: #f4f4f6;
  text-align: center;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  animation: communityFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes communityFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.community-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: #229ed9;
  box-shadow: 0 8px 34px rgba(34, 158, 217, 0.35);
}

.community-icon svg {
  width: 38px;
  height: 38px;
  fill: white;
  stroke: none;
}

.community-content .section-kicker {
  color: #79d3ff;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

.community-content h2 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
  color: #fff;
  font-family: inherit;
}

.community-description {
  color: #b8c0cd;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 24px;
}

.community-content .community-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  background: #229ed9;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(34, 158, 217, 0.3);
}

.community-content .community-join:hover {
  background: #2cb5f6;
  transform: translateY(-2px);
}

.community-join svg {
  width: 18px;
  height: 18px;
}

.community-later {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  color: #bac3d1;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.community-later:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 480px) {
  .community-content {
    padding: 30px 20px 20px;
  }
  .community-content h2 {
    font-size: 22px;
  }
}
