.community-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4a5eff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s;
}

.community-button:hover {
  transform: scale(1.1);
}

.small-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.community-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 2000;
  display: flex;
}

.community-sidebar {
  width: 300px;
  background: #2d2d2d;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3d3d3d;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.user-info h3 {
  margin: 0 0 5px 0;
  color: #fff;
}

.credits {
  color: #4a5eff;
  font-weight: bold;
}

.credits-timer {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 3px;
}

.create-model-btn {
  padding: 12px;
  background: #4a5eff;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plus {
  font-size: 20px;
  font-weight: bold;
}

.community-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.section-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  background: #2d2d2d;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}

.tab.active {
  background: #4a5eff;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.model-card {
  background: #2d2d2d;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

.model-card:hover {
  transform: translateY(-5px);
}

.model-avatar {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #3d3d3d;
}

.model-info {
  padding: 15px;
}

.model-name {
  font-size: 1.2em;
  margin: 0 0 5px 0;
}

.model-description {
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.model-price {
  color: #4a5eff;
  font-weight: bold;
}

.create-model-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2d2d2d;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  color: #aaa;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  background: #3d3d3d;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-preview img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.price-note {
  font-size: 0.8em;
  color: #aaa;
}

.publish-btn {
  background: #4a5eff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.publish-btn:disabled {
  background: #3d3d3d;
  cursor: not-allowed;
}