.appearance-card-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-fog);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
}

.profile-banner-preview {
  height: 140px;
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--border-light);
}

.avatar-preview-wrapper {
  position: absolute;
  bottom: -24px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bg-warm);
  background: var(--bg-warm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.avatar-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.appearance-editor-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.large-modal {
  max-width: 900px !important;
}

.avatar-builder-workspace {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  min-height: 400px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .avatar-builder-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.builder-preview-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-fog);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
}

.builder-preview-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--bg-warm);
  background: var(--bg-warm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 12px;
}

.builder-preview-help {
  font-size: 11px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.builder-control-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.select-category-dropdown {
  width: 100%;
}

.builder-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  padding-bottom: 16px;
}

.option-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 80px;
}

.option-card:hover {
  border-color: var(--accent-moss);
  transform: translateY(-2px);
}

.option-card.active {
  border-color: var(--accent-moss);
  background: rgba(61, 90, 69, 0.05);
  box-shadow: 0 0 0 2px var(--accent-moss);
}

.option-card.locked {
  opacity: 0.6;
}

.option-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
}

.option-preview-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: inline-block;
}

.option-card.locked .option-preview-badge {
  background: var(--border-light);
  color: var(--text-charcoal);
}

.option-card.unlocked .option-preview-badge {
  background: rgba(61, 90, 69, 0.1);
  color: var(--accent-moss);
}

.option-item-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-charcoal);
}

.banner-picker-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.banner-picker-preview {
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  width: 100%;
}

.banner-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-bottom: 16px;
}

.banner-option-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.banner-option-card:hover {
  border-color: var(--accent-moss);
  transform: translateY(-2px);
}

.banner-option-card.active {
  border-color: var(--accent-moss);
  box-shadow: 0 0 0 2px var(--accent-moss);
}

.banner-option-card.locked {
  opacity: 0.65;
}

.banner-preview-box {
  height: 60px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.banner-option-info {
  padding: 10px;
}

.banner-option-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-charcoal);
}

.banner-option-locked-msg {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 2px;
}

.rarity-common .option-preview-badge { background: #e2e8f0; color: #475569; }
.rarity-uncommon .option-preview-badge { background: #dbeafe; color: #1d4ed8; }
.rarity-rare .option-preview-badge { background: #dcfce7; color: #15803d; }
.rarity-epic .option-preview-badge { background: #f3e8ff; color: #7e22ce; }
.rarity-legendary .option-preview-badge { background: #fef9c3; color: #a16207; }
.rarity-mythic .option-preview-badge { background: #ffe4e6; color: #be123c; }
