
.chat-message-default {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.chat-message-admin {
  padding: 8px;
  margin: 4px 0;
  border-radius: 8px;
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  position: relative;
}

.chat-message-moderator {
  padding: 8px;
  margin: 4px 0;
  border-radius: 8px;
  border: 2px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  position: relative;
}

.chat-message-arcane_supporter {
  padding: 8px;
  margin: 4px 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: 
              linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.2) 50%, rgba(245, 158, 11, 0.3) 100%) padding-box padding-box,
              linear-gradient(rgb(31, 41, 55), rgb(31, 41, 55)) padding-box padding-box,
              linear-gradient(135deg, rgb(168, 85, 247) 0%, rgb(236, 72, 153) 50%, rgb(245, 158, 11) 100%) border-box border-box;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
  position: relative;
}

.chat-message-exotic_supporter {
  padding: 8px;
  margin: 4px 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) padding-box padding-box,
              linear-gradient(rgb(3, 7, 18), rgb(3, 7, 18)) padding-box padding-box,
              linear-gradient(135deg, rgb(6, 182, 212) 0%, rgb(139, 92, 246) 100%) border-box border-box;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  position: relative;
}

.chat-message-mythic_supporter {
  padding: 8px;
  margin: 4px 0;
  border-radius: 8px;
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  position: relative;
}

.badge-icon {
  display: inline-block;
  vertical-align: middle;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.profile-username {
  font-weight: 600;
  transition: color 0.2s ease;
}

.guild-tag {
  color: #9ca3af;
  font-size: 0.9em;
  margin-right: 4px;
}

.equipped-title {
  color: #9ca3af;
  font-style: italic;
  font-size: 0.9em;
  margin-left: 4px;
}

.chat-message-admin:hover,
.chat-message-moderator:hover,
.chat-message-arcane_supporter:hover,
.chat-message-exotic_supporter:hover,
.chat-message-mythic_supporter:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.color-picker-preview {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(31, 41, 55, 0.8);
  transition: all 0.3s ease;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.color-palette-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-palette-item:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.color-palette-item.selected {
  border-color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.leaderboard-badge {
  margin-right: 6px;
}

.profile-header-badge {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.topbar-badge {
  margin-right: 4px;
  width: 14px;
  height: 14px;
}

.global-catch-badge {
  margin-right: 6px;
  width: 18px;
  height: 18px;
}

.guild-member-badge {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .chat-message-admin,
  .chat-message-moderator,
  .chat-message-arcane_supporter,
  .chat-message-exotic_supporter,
  .chat-message-mythic_supporter {
    padding: 6px;
    font-size: 0.9em;
  }

  .badge-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .color-palette {
    grid-template-columns: repeat(4, 1fr);
  }
}