/* Star Savior Community Page */

.community-page {
  margin-bottom: 60px;
}

.community-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-beta-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  background: #7a5af8a1;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.community-intro {
  color: hsla(0, 0%, 100%, 0.75);
  font-size: 1rem;
  margin: 0 0 24px;
}

.community-tabs {
  margin-top: 20px;
}

.community-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #33343a;
  padding-bottom: 12px;
}

.community-tab-btn {
  background: transparent;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.75);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.community-tab-btn:hover {
  background-color: #2c2d33;
  color: #fff;
}

.community-tab-btn.active {
  background-color: #7a5af8a1;
  border-color: #7a5af8a1;
  color: #fff;
}

.community-tab-panel {
  min-height: 200px;
}

.community-create-btn {
  background-color: #7a5af8a1;
  border: none;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 20px;
  margin-bottom: 20px;
  transition: background-color 0.2s;
}

.community-create-btn:hover {
  background-color: #8b6cf9;
}

/* Community Filter Bar (Sort + Search) */
.community-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.community-filter-search {
  flex: 1;
  min-width: 120px;
  max-width: 500px;
  margin-bottom: 0 !important;
}

.community-filter-sort {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.community-filter-sort-btn {
  background: #2c2d33;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.75);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 14px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.community-filter-sort-btn:hover {
  background: #36373d;
  color: #fff;
}

.community-filter-sort-btn.active {
  background: #7a5af8a1;
  border-color: #7a5af8a1;
  color: #fff;
}

a.community-create-btn {
  text-decoration: none;
  display: inline-block;
}

.community-load-more-btn {
  background: transparent;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.75);
  cursor: pointer;
  font-size: 14px;
  padding: 10px 24px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.community-load-more-btn:hover:not(:disabled) {
  background-color: #2c2d33;
  border-color: #7a5af8a1;
  color: #fff;
}

.community-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.community-loading,
.community-empty,
.community-coming-soon {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 15px;
}

.community-coming-soon {
  font-style: italic;
}

.community-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-card {
  background-color: #1c1d21;
  border: 1px solid #33343a;
  border-radius: 2px;
  padding: 16px 20px;
}

.community-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.community-card-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.community-author {
  align-items: center;
  display: flex;
  gap: 12px;
}

.community-author-clickable {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-author-clickable:hover {
  opacity: 0.9;
}

.community-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.community-author span {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 16px;
  font-weight: 500;
}

.author-with-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-title-badge {
  font-size: 11px;
  font-weight: 600;
  color: #7a5af8a1;
  background: rgba(122, 90, 248, 0.2);
  padding: 2px 8px;
  border-radius: 2px;
}

.community-card-header time {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 13px;
}

.community-edit-btn {
  background: transparent;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.85);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.community-edit-btn:hover {
  background-color: #2c2d33;
  border-color: #7a5af8a1;
  color: #fff;
}

.community-delete-btn {
  background: transparent;
  border: 1px solid #a32f2f;
  border-radius: 2px;
  color: #e57373;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.community-delete-btn:hover {
  background-color: rgba(163, 47, 47, 0.2);
  border-color: #e57373;
  color: #ff8a80;
}

.community-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.community-title-row h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.community-card h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-title-row .community-tags {
  margin-bottom: 0;
}

/* Guild card: desktop layout */
.guild-card-title-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.guild-card-title-section .community-title-row {
  margin-bottom: 0;
}

/* Guild card: mobile layout */
@media (max-width: 768px) {
  .author-title-badge {
    font-size: 8px;
    padding: 1px 4px;
  }

  .guild-card {
    position: relative;
    padding-bottom: 56px;
  }

  .friend-card {
    position: relative;
    padding-bottom: 56px;
  }

  .guild-card .guild-card-header {
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .guild-card .guild-card-header .community-author {
    flex: 1;
    min-width: 0;
  }

  .guild-card .community-author .author-with-title {
    flex-wrap: nowrap;
    align-items: center;
  }

  .guild-card .guild-card-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin-left: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .friend-card .community-card-header-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin-left: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .guild-card .guild-card-actions time {
    font-size: 11px;
  }

  .guild-card .guild-card-actions .community-edit-btn,
  .guild-card .guild-card-actions .community-delete-btn {
    padding: 3px 8px;
    font-size: 11px;
  }

  .guild-card-title-section {
    flex-direction: column;
    align-items: flex-start;
    order: 1;
  }

  .guild-card-title-section .community-title-row {
    order: 1;
  }

  .guild-card-title-section .guild-card-tags {
    order: 2;
    margin-top: 6px;
    margin-bottom: 0;
  }
}

.community-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background-color: #7a5af8a1;
  color: #fff;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
}

.community-tags-editor .community-tag {
  padding-right: 4px;
}

.community-tag-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

.community-tag-remove:hover {
  color: #fff;
}

.community-tag-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.community-tag-input-wrap .auth-modal-input {
  flex: 1;
}

.community-tag-add-btn {
  padding: 10px 14px;
  min-height: 40px;
  box-sizing: border-box;
  background-color: #7a5af8a1;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.community-tag-add-btn:hover {
  background-color: #8a6af9;
}

/* Guild card: click to expand content */
.guild-card {
  cursor: pointer;
}

.guild-card .community-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-in-out;
}

.guild-card.expanded .community-card-body {
  grid-template-rows: 1fr;
}

.guild-card .community-card-body-inner {
  min-height: 0;
  overflow: hidden;
}

.guild-card .community-card-body .community-content {
  margin-top: 12px;
  margin-bottom: 0;
}

.guild-card .community-card-body .community-discord-btn {
  margin-top: 12px;
}

.community-card-expand-hint {
  display: block;
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.5);
  margin-top: 6px;
  margin-bottom: 0;
}

.guild-card.expanded .community-card-expand-hint {
  margin-bottom: 8px;
}

/* Team card: click to expand description + formation (wie Guild Recruitments) */
.team-expandable-card {
  cursor: pointer;
}

.team-expandable-card .community-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-in-out;
}

.team-expandable-card.expanded .community-card-body {
  grid-template-rows: 1fr;
}

.team-expandable-card .community-card-body-inner {
  min-height: 0;
  overflow: hidden;
}

.team-expandable-card .community-card-body .community-team-description {
  margin-top: 12px;
  margin-bottom: 0;
}

.team-expandable-card .community-card-body .community-team-formation {
  margin-top: 12px;
}

.team-expandable-card.expanded .community-card-expand-hint {
  margin-bottom: 8px;
}

.community-content {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.community-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  background: #7a5af8a1;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(122, 90, 248, 0.3);
}

.community-discord-btn:hover {
  background: #8a6af9;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 90, 248, 0.4);
}

.community-discord-btn i {
  font-size: 16px;
}

.forum-card .community-tags {
  margin-bottom: 12px;
}

.forum-post-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-expandable-card .forum-post-content {
  display: none;
}

.forum-expandable-card.expanded .forum-post-content {
  display: flex;
}

.forum-post-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Forum expandable comments */
.forum-expandable-card {
  cursor: pointer;
}

.forum-expandable-card .forum-comments-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-in-out;
}

.forum-expandable-card.expanded .forum-comments-wrapper {
  grid-template-rows: 1fr;
}

.forum-comments-wrapper-inner {
  min-height: 0;
  overflow: hidden;
}

.forum-card-expand-hint {
  display: block;
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.5);
  margin-top: 6px;
  margin-bottom: 0;
}

.forum-expandable-card.expanded .forum-card-expand-hint {
  margin-bottom: 8px;
}

.forum-comments-count {
  margin-left: 4px;
}

/* Forum Comments */
.forum-comments-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #33343a;
}

.forum-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.forum-comment {
  background: rgba(42, 43, 50, 0.6);
  border-radius: 4px;
  padding: 10px 12px;
  border: 1px solid #2c2d33;
}

.forum-comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.forum-comment-author-name {
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.9);
}

.forum-comment-author-name .author-title-badge {
  color: rgb(230, 230, 230) !important;
}

.forum-comment-time {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.5);
}

.forum-comment-delete {
  font-size: 11px;
  padding: 2px 8px;
}

.forum-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.forum-comment-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 8px;
  min-height: auto;
}

.forum-comment-vote.voted {
  color: #7a5af8a1;
}

.forum-comment-reply-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}

.forum-comment-reply-btn:hover {
  color: hsla(0, 0%, 100%, 0.9);
  background: transparent !important;
  border: none !important;
}

.forum-comment-replies {
  margin-top: 12px;
  padding-left: 16px;
}

.forum-comment-reply {
  margin-bottom: 8px;
  background: none !important;
  border: none !important;
}

.forum-reply-input {
  margin-top: 8px;
}

.forum-comment-content {
  font-size: 14px;
  color: hsla(0, 0%, 100%, 0.85);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-comment-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.forum-comment-input-row .forum-comment-input.auth-modal-input {
  margin-bottom: 0;
  min-height: 40px;
  padding: 10px 14px;
}

.forum-comment-input-row .community-vote-btn {
  min-height: 40px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.forum-comment-input {
  flex: 1;
  min-width: 0;
}

.forum-content-textarea {
  min-height: 220px;
}

.forum-format-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  background: #23242a;
  border: 1px solid #33343a;
  border-radius: 4px;
  padding: 8px;
}

.forum-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #3a3b42;
  border-radius: 3px;
  background: #2b2c33;
  color: #e8e8ec;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s, border-color 0.2s;
}

.forum-toolbar-btn:hover {
  background: #343640;
  border-color: #7a5af8a1;
}

.forum-color-input {
  width: 36px;
  height: 30px;
  border: 1px solid #33343a;
  border-radius: 2px;
  background: #23242a;
  padding: 0;
  cursor: pointer;
}

.forum-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.forum-color-presets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forum-color-preset {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #4a4b56;
  cursor: pointer;
  padding: 0;
}

.forum-editor-help {
  margin: 0 0 8px;
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.55);
}

.friend-post-info {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.friend-id {
  color: #7a5af8a1;
  font-weight: 500;
}

.friend-server {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 13px;
}

.tierlist-list .community-card {
  cursor: pointer;
}

.tierlist-list .community-card:hover {
  border-color: #7a5af8a1;
  background-color: #23242a;
}

.community-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.65);
}

.tierlist-detail {
  margin-bottom: 24px;
}

.community-back-btn {
  background: transparent;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.75);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  margin-bottom: 16px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.community-back-btn:hover {
  background-color: #2c2d33;
  color: #fff;
}

.tierlist-detail h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.tierlist-detail-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background-color: #1a1a1d;
  border-radius: 2px;
}

.tierlist-detail-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.tierlist-votes {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 13px;
}

.community-vote-btn {
  background-color: #2c2d33;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.85);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
  transition: background-color 0.2s;
}

.community-vote-btn:hover {
  background-color: #36373d;
}

.community-vote-btn.voted {
  background-color: #7a5af8a1;
  border-color: #7a5af8a1;
}

.tierlist-grid {
  margin-top: 20px;
}

.tierlist-tier-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tierlist-tier-label {
  background-color: #2c2d33;
  border-radius: 2px;
  color: #fff;
  font-weight: 600;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
}

.tierlist-tier-row .tierlist-tier-label.tier-t0 { background-color: #9d4edd; }
.tierlist-tier-row .tierlist-tier-label.tier-ss { background-color: #f72585; }
.tierlist-tier-row .tierlist-tier-label.tier-s { background-color: #4361ee; }
.tierlist-tier-row .tierlist-tier-label.tier-a { background-color: #4cc9f0; }
.tierlist-tier-row .tierlist-tier-label.tier-b { background-color: #6c757d; }

.tierlist-tier-chars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.tierlist-char-card {
  align-items: center;
  background-color: #23242a;
  border: 1px solid #33343a;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
  width: 70px;
}

.tierlist-char-card:hover {
  border-color: #7a5af8a1;
  background-color: #2c2d33;
}

.tierlist-char-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.tierlist-char-card span {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tierlist-editor {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.tierlist-editor-row {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #2c2d33;
}

.tierlist-editor-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.tierlist-editor-name {
  color: #fff;
  flex: 1;
  font-size: 14px;
}

.tierlist-editor-select {
  min-width: 80px;
}

.auth-modal-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Achievements & Points */
.community-achievements-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: hsla(0, 0%, 100%, 0.85);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;
  margin-right: auto;
  transition: background-color 0.2s, border-color 0.2s;
}

.community-achievements-btn:hover {
  background-color: #2c2d33;
  border-color: #7a5af8a1;
}

.community-points-badge {
  color: #7a5af8a1;
  font-weight: 600;
}

.community-equipped-title {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 12px;
}

.achievements-modal-body {
  padding: 0;
}

.achievements-points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.achievements-points-label {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 14px;
}

.achievements-points-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7a5af8a1;
}

.achievements-points-hint {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.5);
  margin: 0 0 20px;
}

.achievements-section-title {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
}

.achievements-section-desc {
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 0 0 12px;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: #23242a;
  border-radius: 2px;
  border: 1px solid #33343a;
}

.achievement-item.unlocked {
  border-color: #7a5af8a1;
}

.achievement-item.locked {
  opacity: 0.6;
}

.achievement-item.equipped {
  background-color: rgba(122, 90, 248, 0.15);
}

.achievement-title {
  font-weight: 500;
  color: #fff;
}

.achievement-item.locked .achievement-title {
  color: hsla(0, 0%, 100%, 0.6);
}

/* Team Builder in Modal - match standalone page */
.ssavtb-form-post {
  margin: 0;
  padding: 0;
}
.ssavtb-form-post .ssavtb-team-management .auth-modal-label {
  margin-top: 14px;
}

/* Community Teams */
.auth-modal-content-team {
  max-width: min(95vw, 920px);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-form-team {
  padding: 0;
}

.auth-modal-form-team .auth-modal-error {
  margin: 0 20px 16px;
}

.ssavtb-layout-modal {
  margin: 0;
}

.ssavtb-layout-modal .auth-modal-label {
  margin-top: 14px;
}

.ssavtb-layout-modal .auth-modal-label:first-of-type {
  margin-top: 0;
}

.community-team-picker-hint {
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.7);
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(122, 90, 248, 0.15);
  border-radius: 2px;
}

.ssavtb-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.ssavtb-char-pickable {
  cursor: pointer;
}

.ssavtb-char-pickable:hover {
  opacity: 0.9;
}

.ssavtb-slot-selected {
  box-shadow: 0 0 0 2px rgba(122, 90, 248, 0.8);
}

.community-teams-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-team-card {
  padding: 16px;
}

.community-team-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.community-team-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-team-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.community-team-description {
  font-size: 14px;
  color: hsla(0, 0%, 100%, 0.8);
  margin: 0 0 16px;
  line-height: 1.5;
}

.community-team-formation {
  margin-top: 12px;
  padding: 16px !important;
  background: rgba(48, 48, 55, 0.4);
  border-radius: 4px;
}

/* Community Profile Modal */
.auth-modal-content.community-profile-modal {
  max-width: 400px;
}

.community-profile-modal-body {
  padding: 0 20px 20px;
}

.community-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.community-profile-avatar-wrap {
  flex-shrink: 0;
}

.community-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.community-profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(48, 48, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 28px;
}

.community-profile-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.community-profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.community-profile-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-profile-points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.community-profile-points .achievements-points-label {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 14px;
}

.community-profile-points .achievements-points-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #7a5af8a1;
}

.community-profile-section {
  margin-bottom: 16px;
}

.community-profile-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 0 0 8px;
}

.community-profile-about {
  font-size: 14px;
  color: hsla(0, 0%, 100%, 0.9);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.community-profile-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-profile-game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(48, 48, 55, 0.4);
  border-radius: 2px;
  border: 1px solid #33343a;
}

.community-profile-game-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.community-profile-game-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.community-profile-game-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.community-profile-game-meta {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.6);
}

.community-profile-empty {
  font-size: 14px;
  color: hsla(0, 0%, 100%, 0.5);
  margin: 0;
}

.forum-comment-author-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
